File: proplistP.h

package info (click to toggle)
libproplist 0.7.1-4
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 684 kB
  • ctags: 452
  • sloc: ansic: 3,684; sh: 1,856; lex: 181; yacc: 118; makefile: 106; tcl: 40
file content (55 lines) | stat: -rw-r--r-- 907 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* proplistP.h: This is -*- c -*-

   This file contains private definitions for libPropList. DO NOT USE
   THEM YOURSELF! proplist.h should have all that you need.

   */

#ifndef PROPLISTP_H
#define PROPLISTP_H

#include "proplist.h"

typedef struct {
  char *string;
} plString;

typedef struct {
  unsigned char *data;
  unsigned int length;
} plData;

typedef struct {
  proplist_t *elements;
  unsigned int number;
} plArray;

typedef struct {
  proplist_t *keys;  
  proplist_t *values;
  unsigned int number;
} plDictionary;

typedef struct
{
  unsigned char type;
  proplist_t filename;
  proplist_t container;
  BOOL changed;
  unsigned long retain_count;
  union {
    plString str;
    plData data;
    plArray array;
    plDictionary dict;
  } t;
} plint_t, *plptr_t;

#define PLSTRING     0
#define PLDATA       1
#define PLARRAY      2
#define PLDICTIONARY 3

#endif /* !def PROPLISTP_H */