Changeset 1584

Show
Ignore:
Timestamp:
12/29/06 00:59:02 (2 years ago)
Author:
dfriedrich
Message:

send version while discover

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/file-sync-dev/src/file_sync.c

    r1540 r1584  
    2121#include "file_sync.h" 
    2222#include <opensync/file.h> 
     23#include <opensync/opensync-version.h> 
    2324#include <stdlib.h> 
    2425 
     
    630631        } 
    631632         
     633        OSyncVersion *version = osync_version_new(error); 
     634        osync_version_set_plugin(version, "file-sync"); 
     635        //osync_version_set_modelversion(version, "version"); 
     636        //osync_version_set_firmwareversion(version, "firmwareversion"); 
     637        //osync_version_set_softwareversion(version, "softwareversion"); 
     638        //osync_version_set_hardwareversion(version, "hardwareversion"); 
     639        osync_plugin_info_set_version(info, version); 
     640        osync_version_unref(version); 
     641 
     642        /* we can set here the capabilities, but for the file-sync 
     643         * plugin they are static and shipped with opensync */ 
     644 
    632645        osync_trace(TRACE_EXIT, "%s", __func__); 
    633646        return TRUE;