File: proplistP.h

package info (click to toggle)
libproplist 0.9.1-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 772 kB
  • ctags: 381
  • sloc: sh: 8,260; ansic: 2,786; lex: 172; yacc: 139; makefile: 79
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 */