Changeset 3395
- Timestamp:
- 07/07/08 09:48:56 (2 months ago)
- Files:
-
- trunk/opensync/client/opensync_client.c (modified) (5 diffs)
- trunk/opensync/client/opensync_client_proxy.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/opensync/client/opensync_client.c
r3348 r3395 464 464 char *configdir = NULL; 465 465 char *formatdir = NULL; 466 int haspluginconfig = 0; 466 467 OSyncPluginConfig *config = NULL; 467 468 OSyncQueue *outgoing = NULL; … … 475 476 osync_message_read_string(message, &groupname); 476 477 osync_message_read_string(message, &configdir); 477 478 if (!osync_demarshal_pluginconfig(message, &config, error)) 478 osync_message_read_int(message, &haspluginconfig); 479 480 if (haspluginconfig && !osync_demarshal_pluginconfig(message, &config, error)) 479 481 goto error; 480 482 … … 526 528 527 529 osync_plugin_info_set_configdir(client->plugin_info, configdir); 528 osync_plugin_info_set_config(client->plugin_info, config);529 530 osync_plugin_info_set_loop(client->plugin_info, client->context); 530 531 osync_plugin_info_set_format_env(client->plugin_info, client->format_env); 531 532 osync_plugin_info_set_groupname(client->plugin_info, groupname); 533 534 if (config) 535 osync_plugin_info_set_config(client->plugin_info, config); 532 536 533 537 #ifdef OPENSYNC_UNITTESTS … … 584 588 g_free(groupname); 585 589 g_free(formatdir); 586 osync_plugin_config_unref(config); 590 591 if (config) 592 osync_plugin_config_unref(config); 587 593 588 594 osync_trace(TRACE_EXIT, "%s", __func__); … … 600 606 g_free(groupname); 601 607 g_free(formatdir); 602 osync_plugin_config_unref(config); 608 609 if (config) 610 osync_plugin_config_unref(config); 611 603 612 osync_trace(TRACE_EXIT_ERROR, "%s: %s", __func__, osync_error_print(error)); 604 613 return FALSE; trunk/opensync/client/opensync_client_proxy.c
r3348 r3395 1004 1004 osync_assert(proxy); 1005 1005 1006 int haspluginconfig = config ? TRUE : FALSE; 1007 1006 1008 callContext *ctx = osync_try_malloc0(sizeof(callContext), error); 1007 1009 if (!ctx) … … 1022 1024 osync_message_write_string(message, groupname); 1023 1025 osync_message_write_string(message, configdir); 1024 1025 if (!osync_marshal_pluginconfig(message, config, error)) 1026 osync_message_write_int(message, haspluginconfig); 1027 1028 if (haspluginconfig && !osync_marshal_pluginconfig(message, config, error)) 1026 1029 goto error; 1027 1030
