Changeset 3320

Show
Ignore:
Timestamp:
05/04/08 22:44:55 (4 months ago)
Author:
dgollub
Message:

Removed configuration attribute for OSyncObjFormat. Format specific
configuration parameter for the conversion path is done now via
OSyncObjFormatSink.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/opensync/format/opensync_objformat.c

    r3201 r3320  
    5050        format->name = g_strdup(name); 
    5151        format->objtype_name = g_strdup(objtype_name); 
    52         format->config = NULL; 
    5352        format->ref_count = 1; 
    5453         
     
    8786                        g_free(format->objtype_name); 
    8887 
    89                 if (format->config) 
    90                         g_free(format->config); 
    91                  
    9288                g_free(format); 
    9389        } 
     
    114110        osync_assert(format); 
    115111        return format->objtype_name; 
    116 } 
    117  
    118 /** 
    119  * @brief Returns the conversion path config of an object format 
    120  * @param format Pointer to the object format 
    121  * @return The conversion config of the specified object format's object type 
    122  */ 
    123 const char *osync_objformat_get_config(OSyncObjFormat *format) 
    124 { 
    125         osync_assert(format); 
    126         return format->config; 
    127 } 
    128  
    129 /** 
    130  * @brief Set the conversion path config of an object format 
    131  * @param format Pointer to the object format 
    132  * @param format_config Format specific configuration  
    133  * @return The conversion config of the specified object format's object type 
    134  */ 
    135 void osync_objformat_set_config(OSyncObjFormat *format, const char *format_config) 
    136 { 
    137         osync_assert(format); 
    138  
    139         if (format->config) 
    140                 g_free(format->config); 
    141  
    142         format->config = g_strdup(format_config); 
    143112} 
    144113 
  • trunk/opensync/format/opensync_objformat.h

    r2995 r3320  
    3838OSYNC_EXPORT const char *osync_objformat_get_name(OSyncObjFormat *format); 
    3939OSYNC_EXPORT const char *osync_objformat_get_objtype(OSyncObjFormat *format); 
    40 OSYNC_EXPORT const char *osync_objformat_get_config(OSyncObjFormat *format); 
    41 OSYNC_EXPORT void osync_objformat_set_config(OSyncObjFormat *format, const char *format_config); 
    4240 
    4341OSYNC_EXPORT void osync_objformat_set_compare_func(OSyncObjFormat *format, OSyncFormatCompareFunc cmp_func); 
  • trunk/opensync/format/opensync_objformat_internals.h

    r2995 r3320  
    4343         * would be "contact" */ 
    4444        char *objtype_name; 
    45         /** the config for the conversion path */ 
    46         char *config; 
     45 
    4746        OSyncFormatCompareFunc cmp_func; 
    4847        OSyncFormatDuplicateFunc duplicate_func;