OpenSync 0.22
|
00001 #ifndef HAVE_OPENSYNC_H 00002 #define HAVE_OPENSYNC_H 00003 00004 #include <unistd.h> 00005 #include <sys/types.h> 00006 #include <time.h> 00007 #include <fcntl.h> 00008 00009 #ifdef __cplusplus 00010 extern "C" 00011 { 00012 #endif 00013 00014 /************************************************************** 00015 * Defines 00016 *************************************************************/ 00017 #ifndef TRUE 00018 #define TRUE 1 00019 #endif 00020 00021 #ifndef FALSE 00022 #define FALSE 0 00023 #endif 00024 00028 typedef enum { 00030 CHANGE_UNKNOWN = 0, 00032 CHANGE_ADDED = 1, 00034 CHANGE_UNMODIFIED = 2, 00036 CHANGE_DELETED = 3, 00038 CHANGE_MODIFIED = 4 00039 } OSyncChangeType; 00040 00041 /************************************************************** 00042 * Structs 00043 *************************************************************/ 00044 typedef struct OSyncError OSyncError; 00045 typedef struct OSyncEnv OSyncEnv; 00046 typedef struct OSyncPlugin OSyncPlugin; 00047 typedef struct OSyncGroup OSyncGroup; 00048 typedef struct OSyncUserInfo OSyncUserInfo; 00049 typedef struct OSyncMember OSyncMember; 00050 typedef struct OSyncChange OSyncChange; 00051 typedef struct OSyncContext OSyncContext; 00052 typedef struct OSyncHashTable OSyncHashTable; 00053 typedef struct OSyncFormatEnv OSyncFormatEnv; 00054 typedef struct OSyncObjType OSyncObjType; 00055 typedef struct OSyncObjFormat OSyncObjFormat; 00056 typedef struct OSyncFormatConverter OSyncFormatConverter; 00057 typedef struct OSyncFormatProperty OSyncFormatProperty; 00058 typedef struct OSyncFilter OSyncFilter; 00059 typedef struct OSyncCustomFilter OSyncCustomFilter; 00060 typedef struct OSyncMessage OSyncMessage; 00061 typedef struct OSyncQueue OSyncQueue; 00062 typedef int osync_bool; 00063 00064 #include "opensync_debug.h" 00065 #include "opensync_env.h" 00066 #include "opensync_plugin.h" 00067 #include "opensync_group.h" 00068 #include "opensync_member.h" 00069 #include "opensync_error.h" 00070 #include "opensync_hashtable.h" 00071 #include "opensync_change.h" 00072 #include "opensync_context.h" 00073 #include "opensync_filter.h" 00074 #include "opensync_convert.h" 00075 #include "opensync_changecmds.h" 00076 #include "opensync_convreg.h" 00077 #include "opensync_anchor.h" 00078 #include "opensync_time.h" 00079 #include "opensync_serializer.h" 00080 00081 #ifdef __cplusplus 00082 } 00083 #endif 00084 00085 #endif