Changeset 3392

Show
Ignore:
Timestamp:
07/07/08 09:42:50 (2 months ago)
Author:
dgollub
Message:

OSyncPluginRessource is fixed to one single objtype.
Reenable osync_plugin_ressource_(get|set)_objtype() functions.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/opensync/plugin/opensync_plugin_ressource.c

    r3329 r3392  
    5353                if (ressource->name) 
    5454                        g_free(ressource->name); 
     55 
     56                if (ressource->objtype) 
     57                        g_free(ressource->objtype); 
    5558 
    5659                if (ressource->mime) 
     
    141144} 
    142145 
    143 #if 0 /* KILL? */ 
    144146const char *osync_plugin_ressource_get_objtype(OSyncPluginRessource *ressource) 
    145147{ 
     
    156158        ressource->objtype = g_strdup(objtype); 
    157159} 
    158 #endif 
    159160 
    160161const char *osync_plugin_ressource_get_path(OSyncPluginRessource *ressource) 
  • trunk/opensync/plugin/opensync_plugin_ressource.h

    r3329 r3392  
    4444OSYNC_EXPORT void osync_plugin_ressource_remove_objformat_sink(OSyncPluginRessource *ressource, OSyncObjFormatSink *formatsink); 
    4545 
    46 /* TODO: Kill 
    4746OSYNC_EXPORT const char *osync_plugin_ressource_get_objtype(OSyncPluginRessource *ressource); 
    4847OSYNC_EXPORT void osync_plugin_ressource_set_objtype(OSyncPluginRessource *ressource, const char *objtype); 
    49 */ 
    5048 
    5149OSYNC_EXPORT const char *osync_plugin_ressource_get_path(OSyncPluginRessource *ressource); 
  • trunk/opensync/plugin/opensync_plugin_ressource_internals.h

    r3329 r3392  
    3434        char *mime; 
    3535        /** Objtype of the ressource */ 
    36         // KILL?! TODO 
    37         //char *objtype; 
    38         /** ObjFormatSink List of this ressource */ 
     36        char *objtype; 
     37        /** OSyncObjFormatSink List of this ressource */ 
    3938        OSyncList *objformatsinks; 
    4039        /** Filesystem path */