Plugins of type OSYNC_START_TYPE_EXTERNAL needs to be able to spawn an
external command to run the actual plugin code.
SVN -r 5896 allows a member to set an ExternalCommand in the plugin
configuration file.
This command will be executed by the proxy to start up the external process.
The external_command should be a string in printf format, with one %s.
Before the command is executed, a variant of printf will be called
to replace the %s with the path to the plugin pipe.
Example:
<ExternalPlugin>
<ExternalCommand>thunderbird -mozilla-sync %s</ExternalCommand>
</ExternalPlugin>
Added to public API:
osync_plugin_config_get_externalplugin
osync_plugin_config_set_externalplugin
osync_plugin_externalplugin_new
osync_plugin_externalplugin_unref
osync_plugin_externalplugin_ref
osync_plugin_externalplugin_get_external_command
osync_plugin_externalplugin_set_external_command
(as well as the changed format for the plugin configuration file)
Changed internal interface:
From
osync_bool osync_client_proxy_spawn(OSyncClientProxy *proxy,
OSyncStartType type, const char *path, OSyncError **error)
To
osync_bool osync_client_proxy_spawn(OSyncClientProxy *proxy,
OSyncStartType type, const char *path, const char* external_command,
OSyncError **error)
/Henrik
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel