summaryrefslogtreecommitdiffstats
path: root/src/plist.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plist.h')
-rw-r--r--src/plist.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/plist.h b/src/plist.h
index 2a9a3b5..822144d 100644
--- a/src/plist.h
+++ b/src/plist.h
@@ -22,8 +22,11 @@
22#ifndef PLIST_H 22#ifndef PLIST_H
23#define PLIST_H 23#define PLIST_H
24 24
25#ifdef HAVE_CONFIG_H
26#include <config.h>
27#endif
28
25#include "plist/plist.h" 29#include "plist/plist.h"
26#include "common.h"
27 30
28#include <sys/types.h> 31#include <sys/types.h>
29#include <sys/stat.h> 32#include <sys/stat.h>
@@ -34,6 +37,15 @@
34#pragma warning(disable:4244) 37#pragma warning(disable:4244)
35#endif 38#endif
36 39
40#ifdef WIN32
41 #define PLIST_API __declspec( dllexport )
42#else
43 #ifdef HAVE_FVISIBILITY
44 #define PLIST_API __attribute__((visibility("default")))
45 #else
46 #define PLIST_API
47 #endif
48#endif
37 49
38struct plist_data_s 50struct plist_data_s
39{ 51{
@@ -52,10 +64,10 @@ struct plist_data_s
52 64
53typedef struct plist_data_s *plist_data_t; 65typedef struct plist_data_s *plist_data_t;
54 66
55_PLIST_INTERNAL plist_t plist_new_node(plist_data_t data); 67plist_t plist_new_node(plist_data_t data);
56_PLIST_INTERNAL plist_data_t plist_get_data(const plist_t node); 68plist_data_t plist_get_data(const plist_t node);
57_PLIST_INTERNAL plist_data_t plist_new_plist_data(void); 69plist_data_t plist_new_plist_data(void);
58_PLIST_INTERNAL int plist_data_compare(const void *a, const void *b); 70int plist_data_compare(const void *a, const void *b);
59 71
60 72
61#endif 73#endif