OpenSync  0.22
Data Structures | Typedefs
OpenSync Conversion Internals

The private API of opensync. More...

Data Structures

struct  OSyncFormatEnv
 The environment used for conversions. More...
 
struct  OSyncObjType
 Represent a abstract object type (like "contact") More...
 
struct  OSyncObjFormat
 Represent a format for a object type. More...
 
struct  OSyncFormatConverter
 Represent a converter from one format to another. More...
 
struct  OSyncDataDetector
 Represent a detector for a given format. More...
 
struct  OSyncFormatExtension
 An extension to a format. More...
 

Typedefs

typedef struct OSyncDataDetector OSyncDataDetector
 Represent a detector for a given format.
 
typedef struct OSyncFormatExtension OSyncFormatExtension
 An extension to a format.
 
osync_bool osync_converter_invoke (OSyncFormatConverter *converter, OSyncChange *change, void *converter_data, OSyncError **error)
 
OSyncChangeosync_converter_invoke_decap (OSyncFormatConverter *converter, OSyncChange *change, osync_bool *free_output)
 
int compare_vertice_distance (const void *a, const void *b)
 
vertice * get_next_vertice_neighbour (OSyncFormatEnv *env, conv_tree *tree, vertice *ve)
 
osync_bool osync_conv_convert_fn (OSyncFormatEnv *env, OSyncChange *change, OSyncPathTargetFn target_fn, const void *fndata, const char *extension_name, OSyncError **error)
 
osync_bool osync_conv_convert_fmtlist (OSyncFormatEnv *env, OSyncChange *change, GList *targets)
 
osync_bool osync_conv_find_path_fmtlist (OSyncFormatEnv *env, OSyncChange *start, GList *targets, GList **retlist)
 
osync_bool osync_conv_objtype_is_any (const char *objstr)
 

Detailed Description

The private API of opensync.

This gives you an insight in the private API of opensync.

Function Documentation

int compare_vertice_distance ( const void *  a,
const void *  b 
)

Compare the distance of two vertices

First, try to minimize the losses. Then, try to minimize the conversions between different objtypes. Then, try to minimize the total number of conversions.

Definition at line 189 of file opensync_convert.c.

vertice* get_next_vertice_neighbour ( OSyncFormatEnv env,
conv_tree *  tree,
vertice *  ve 
)

Returns a neighbour of the vertice ve

Returns a new reference to te vertice. The reference should be dropped using deref_vertice(), later.

Definition at line 241 of file opensync_convert.c.

osync_bool osync_conv_convert_fmtlist ( OSyncFormatEnv env,
OSyncChange change,
GList *  targets 
)

Convert a change to the nearest format on a list of formats

Definition at line 534 of file opensync_convert.c.