Classes | Defines | Enumerations | Functions

gtk/src/plist.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <glib.h>
#include <glib/gstdio.h>
#include <glib-object.h>
#include "plist.h"
#include "values.h"

Classes

struct  tag_map_t
struct  parse_data_t

Defines

#define BUF_SZ   (128*1024)
#define TAG_MAP_SZ   (sizeof(tag_map)/sizeof(tag_map_t))

Enumerations

enum  {
  P_NONE = 0, P_PLIST, P_KEY, P_ARRAY,
  P_DICT, P_INTEGER, P_REAL, P_STRING,
  P_DATE, P_TRUE, P_FALSE, P_DATA
}

Functions

GValue * ghb_plist_parse (const gchar *buf, gssize len)
GValue * ghb_plist_parse_file (const gchar *filename)
void ghb_plist_write (FILE *file, GValue *gval)
void ghb_plist_write_file (const gchar *filename, GValue *gval)

Define Documentation

#define BUF_SZ   (128*1024)
#define TAG_MAP_SZ   (sizeof(tag_map)/sizeof(tag_map_t))

Enumeration Type Documentation

anonymous enum
Enumerator:
P_NONE 
P_PLIST 
P_KEY 
P_ARRAY 
P_DICT 
P_INTEGER 
P_REAL 
P_STRING 
P_DATE 
P_TRUE 
P_FALSE 
P_DATA 

Function Documentation

GValue* ghb_plist_parse ( const gchar *  buf,
gssize  len 
)
GValue* ghb_plist_parse_file ( const gchar *  filename  ) 
void ghb_plist_write ( FILE *  file,
GValue *  gval 
)
void ghb_plist_write_file ( const gchar *  filename,
GValue *  gval 
)