29 #ifndef DOXYGEN_SHOULD_SKIP_THIS 34 osync_bool needs_slow_sync;
42 #ifndef DOXYGEN_SHOULD_SKIP_THIS 47 OSyncFormatCompareFunc cmp_func;
48 OSyncFormatMergeFunc merge_func;
49 OSyncFormatDuplicateFunc duplicate_func;
50 OSyncFormatCopyFunc copy_func;
51 OSyncFormatCreateFunc create_func;
52 OSyncFormatDestroyFunc destroy_func;
53 OSyncFormatPrintFunc print_func;
54 OSyncFormatRevisionFunc revision_func;
55 OSyncFormatMarshallFunc marshall_func;
56 OSyncFormatDemarshallFunc demarshall_func;
63 #ifndef DOXYGEN_SHOULD_SKIP_THIS 66 OSyncFormatConvertFunc convert_func;
67 OSyncFormatDetectDataFunc detect_func;
68 OSyncFormatConverterInitFunc init_func;
69 OSyncFormatConverterFinalizeFunc fin_func;
77 #ifndef DOXYGEN_SHOULD_SKIP_THIS 78 const char *sourceformat;
79 const char *targetformat;
80 OSyncFormatDetectDataFunc detect_func;
87 #ifndef DOXYGEN_SHOULD_SKIP_THIS 91 OSyncFormatConvertFunc conv_func;
92 OSyncFormatExtInitFunc init_func;
96 #ifndef DOXYGEN_SHOULD_SKIP_THIS 98 typedef struct OSyncObjFormatSink {
101 char *extension_name;
102 struct OSyncObjTypeSink *objtype_sink;
103 GList *commit_changes;
104 GList *commit_contexts;
105 } OSyncObjFormatSink;
107 typedef struct OSyncObjTypeSink {
114 OSyncObjFormatSink *selected_format;
118 typedef struct OSyncObjTypeTemplate {
121 } OSyncObjTypeTemplate;
123 typedef struct OSyncObjFormatTemplate {
126 char *extension_name;
127 OSyncFormatCommitFn commit_change;
128 OSyncFormatAccessFn access;
129 OSyncFormatReadFn read;
130 OSyncFormatCommittedAllFn committed_all;
131 OSyncFormatBatchCommitFn batch_commit;
132 OSyncFormatCompareFunc cmp_func;
133 OSyncFormatMergeFunc merge_func;
134 OSyncFormatDuplicateFunc duplicate_func;
135 OSyncFormatCopyFunc copy_func;
136 OSyncFormatCreateFunc create_func;
137 OSyncFormatDestroyFunc destroy_func;
138 OSyncFormatPrintFunc print_func;
139 OSyncFormatRevisionFunc revision_func;
140 OSyncFormatMarshallFunc marshall_func;
141 OSyncFormatDemarshallFunc demarshall_func;
142 } OSyncObjFormatTemplate;
144 typedef struct OSyncConverterTemplate {
145 const char *source_format;
146 const char *target_format;
147 OSyncFormatConvertFunc convert_func;
149 OSyncFormatConverterInitFunc init_func;
150 OSyncFormatConverterFinalizeFunc fin_func;
151 } OSyncConverterTemplate;
153 typedef struct OSyncFormatExtensionTemplate {
154 char *from_formatname;
157 OSyncFormatExtInitFunc init_func;
158 } OSyncFormatExtensionTemplate;
161 typedef osync_bool (*OSyncPathTargetFn)(
const void *data,
OSyncObjFormat *fmt);
165 osync_bool osync_conv_convert_fn(
OSyncFormatEnv *env,
OSyncChange *change, OSyncPathTargetFn target_fn,
const void *fndata,
const char *extension_name,
OSyncError **error);
167 OSyncDataDetector *osync_env_find_detector(OSyncEnv *env,
const char *sourcename,
const char *targetname);
168 osync_bool osync_conv_objtype_is_any(
const char *objstr);
169 OSyncFormatExtensionTemplate *osync_env_find_extension_template(OSyncEnv *env,
const char *formatname);
OSyncFormatExtension * osync_conv_find_extension(OSyncFormatEnv *env, OSyncObjFormat *from_format, OSyncObjFormat *to_format, const char *extension_name)
Finds the extension that will be invoked when going from the given source to the target format with t...
An extension to a format.
A member of a group which represent a single device.
osync_bool osync_conv_convert_fmtlist(OSyncFormatEnv *env, OSyncChange *change, GList *targets)
struct OSyncFormatExtension OSyncFormatExtension
An extension to a format.
Represent a detector for a given format.
Represent a abstract object type (like "contact")
struct OSyncDataDetector OSyncDataDetector
Represent a detector for a given format.