Changeset 3406
- Timestamp:
- 07/07/08 11:19:47 (2 months ago)
- Files:
-
- trunk/opensync/plugin/opensync_plugin_config.c (modified) (2 diffs)
- trunk/opensync/plugin/opensync_plugin_config.h (modified) (1 diff)
- trunk/opensync/plugin/opensync_plugin_config_internals.h (modified) (1 diff)
- trunk/tests/plugin-tests/check_plugin_config.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/opensync/plugin/opensync_plugin_config.c
r3394 r3406 547 547 } 548 548 549 osync_bool _osync_plugin_config_file_load(OSyncPluginConfig *config, const char *path, const char *schemadir, OSyncError **error)549 osync_bool osync_plugin_config_file_load(OSyncPluginConfig *config, const char *path, const char *schemadir, OSyncError **error) 550 550 { 551 551 osync_trace(TRACE_ENTRY, "%s(%p, %s, %s, %p)", __func__, config, __NULLSTR(path), __NULLSTR(schemadir), error); … … 908 908 909 909 return config; 910 }911 912 osync_bool osync_plugin_config_file_load(OSyncPluginConfig *config, const char *path, OSyncError **error)913 {914 return _osync_plugin_config_file_load(config, path, NULL, error);915 910 } 916 911 trunk/opensync/plugin/opensync_plugin_config.h
r3394 r3406 26 26 OSYNC_EXPORT OSyncPluginConfig *osync_plugin_config_ref(OSyncPluginConfig *config); 27 27 28 OSYNC_EXPORT osync_bool osync_plugin_config_file_load(OSyncPluginConfig *config, const char *path, OSyncError **error);28 OSYNC_EXPORT osync_bool osync_plugin_config_file_load(OSyncPluginConfig *config, const char *path, const char *schemadir, OSyncError **error); 29 29 OSYNC_EXPORT osync_bool osync_plugin_config_file_save(OSyncPluginConfig *config, const char *path, OSyncError **error); 30 30 trunk/opensync/plugin/opensync_plugin_config_internals.h
r3311 r3406 42 42 }; 43 43 44 osync_bool _osync_plugin_config_file_load(OSyncPluginConfig *config, const char *path, const char *schemadir, OSyncError **error);45 46 44 #endif /*_OPENSYNC_PLUGIN_CONFIG_INTERNALS_H_*/ 47 45 trunk/tests/plugin-tests/check_plugin_config.c
r3393 r3406 581 581 char *config_file = g_strdup_printf("%s/dummy_config.xml", testbed); 582 582 fail_unless(osync_plugin_config_file_save(config, config_file, &error), "%s", osync_error_print(&error)); 583 fail_unless( _osync_plugin_config_file_load(reloaded_config, config_file, testbed, &error), NULL);583 fail_unless(osync_plugin_config_file_load(reloaded_config, config_file, testbed, &error), NULL); 584 584 g_free(config_file); 585 585 … … 654 654 char *config_file = g_strdup_printf("%s/dummy_config.xml", testbed); 655 655 fail_unless(osync_plugin_config_file_save(config, config_file, &error), "%s", osync_error_print(&error)); 656 fail_unless( _osync_plugin_config_file_load(reloaded_config, config_file, testbed, &error), NULL);656 fail_unless(osync_plugin_config_file_load(reloaded_config, config_file, testbed, &error), NULL); 657 657 g_free(config_file); 658 658 … … 697 697 char *config_file = g_strdup_printf("%s/dummy_config.xml", testbed); 698 698 fail_unless(osync_plugin_config_file_save(config, config_file, &error), "%s", osync_error_print(&error)); 699 fail_unless( _osync_plugin_config_file_load(reloaded_config, config_file, testbed, &error), NULL);699 fail_unless(osync_plugin_config_file_load(reloaded_config, config_file, testbed, &error), NULL); 700 700 g_free(config_file); 701 701 … … 745 745 char *config_file = g_strdup_printf("%s/dummy_config.xml", testbed); 746 746 fail_unless(osync_plugin_config_file_save(config, config_file, &error), "%s", osync_error_print(&error)); 747 fail_unless( _osync_plugin_config_file_load(reloaded_config, config_file, testbed, &error), NULL);747 fail_unless(osync_plugin_config_file_load(reloaded_config, config_file, testbed, &error), NULL); 748 748 g_free(config_file); 749 749 … … 798 798 char *config_file = g_strdup_printf("%s/dummy_config.xml", testbed); 799 799 fail_unless(osync_plugin_config_file_save(config, config_file, &error), "%s", osync_error_print(&error)); 800 fail_unless( _osync_plugin_config_file_load(reloaded_config, config_file, testbed, &error), NULL);800 fail_unless(osync_plugin_config_file_load(reloaded_config, config_file, testbed, &error), NULL); 801 801 g_free(config_file); 802 802 … … 845 845 char *config_file = g_strdup_printf("%s/dummy_config.xml", testbed); 846 846 fail_unless(osync_plugin_config_file_save(config, config_file, &error), "%s", osync_error_print(&error)); 847 fail_unless( _osync_plugin_config_file_load(reloaded_config, config_file, testbed, &error), NULL);847 fail_unless(osync_plugin_config_file_load(reloaded_config, config_file, testbed, &error), NULL); 848 848 g_free(config_file); 849 849
