00001 /* 00002 * libopensync - A synchronization framework 00003 * Copyright (C) 2004-2005 Armin Bauer <armin.bauer@opensync.org> 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this library; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 * 00019 */ 00020 00021 #ifndef _OPENSYNC_GROUP_ENV_H_ 00022 #define _OPENSYNC_GROUP_ENV_H_ 00023 00031 00032 00040 OSYNC_EXPORT OSyncGroupEnv *osync_group_env_new(OSyncError **error); 00041 00050 OSYNC_EXPORT OSyncGroupEnv *osync_group_env_ref(OSyncGroupEnv *env); 00051 00060 OSYNC_EXPORT void osync_group_env_unref(OSyncGroupEnv *env); 00061 00062 00074 OSYNC_EXPORT osync_bool osync_group_env_load_groups(OSyncGroupEnv *env, const char *path, OSyncError **error); 00075 00085 OSYNC_EXPORT OSyncGroup *osync_group_env_find_group(OSyncGroupEnv *env, const char *name); 00086 00097 OSYNC_EXPORT osync_bool osync_group_env_add_group(OSyncGroupEnv *env, OSyncGroup *group, OSyncError **error); 00098 00107 OSYNC_EXPORT void osync_group_env_remove_group(OSyncGroupEnv *env, OSyncGroup *group); 00108 00117 OSYNC_EXPORT int osync_group_env_num_groups(OSyncGroupEnv *env); 00118 00128 OSYNC_EXPORT OSyncGroup *osync_group_env_nth_group(OSyncGroupEnv *env, int nth); 00129 00132 #endif //_OPENSYNC_GROUP_ENV_H_
1.5.7.1