27 char *osync_strreplace(
const char *input,
const char *delimiter,
const char *replacement);
void osync_env_remove_group(OSyncEnv *osstruct, OSyncGroup *group)
Removes the given group from the enviroment.
osync_bool osync_env_finalize(OSyncEnv *env, OSyncError **error)
Finalizes the environment.
osync_bool osync_env_initialize(OSyncEnv *env, OSyncError **error)
Initializes the environment (loads plugins)
void osync_env_export_loaded_modules(OSyncEnv *env)
void osync_env_export_all_options(OSyncEnv *env)
int osync_env_num_groups(OSyncEnv *env)
Counts the groups in the environment.
OSyncGroup * osync_env_find_group(OSyncEnv *env, const char *name)
Finds the group with the given name.
void osync_env_set_option(OSyncEnv *env, const char *name, const char *value)
Sets a options on the environment.
Represent a synchronzation plugin.
void osync_env_append_group(OSyncEnv *os_env, OSyncGroup *group)
Adds the given group to the environment.
Represent a group of members that should be synchronized.
osync_bool osync_file_write(const char *filename, const char *data, int size, int mode, OSyncError **error)
Writes data to a file.
void osync_env_free(OSyncEnv *env)
Frees a osync environment.
osync_bool osync_env_load_plugins(OSyncEnv *env, const char *path, OSyncError **oserror)
Loads the sync modules from a given directory.
osync_bool osync_env_plugin_is_usable(OSyncEnv *env, const char *pluginname, OSyncError **error)
Checks if a plugin is available and usable.
void * osync_try_malloc0(unsigned int size, OSyncError **error)
Safely tries to malloc memory.
int osync_env_num_plugins(OSyncEnv *osstruct)
Returns the number of loaded plugins.
osync_bool osync_file_read(const char *filename, char **data, int *size, OSyncError **error)
Reads a file.
OSyncGroup * osync_env_nth_group(OSyncEnv *osinfo, int nth)
Returns the nth group.
const char * osync_get_version(void)
Returns the version of opensync.
OSyncPlugin * osync_env_find_plugin(OSyncEnv *env, const char *name)
Finds the plugin with the given name.
osync_bool osync_env_load_formats(OSyncEnv *env, const char *path, OSyncError **oserror)
Loads all format and conversion plugins.
osync_bool osync_env_load_groups(OSyncEnv *osyncinfo, const char *path, OSyncError **error)
Loads the plugins from a given directory.
OSyncEnv * osync_env_new(void)
This will create a new opensync environment.
OSyncPlugin * osync_env_nth_plugin(OSyncEnv *osstruct, int nth)
Returns pointer to nth plugin.