00001 /* 00002 * libopensync - A synchronization framework 00003 * Copyright (C) 2004-2006 Armin Bauer <armin.bauer@desscon.com> 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_MAPPING_H_ 00022 #define OPENSYNC_MAPPING_H_ 00023 00038 00044 OSYNC_EXPORT OSyncMapping *osync_mapping_new(OSyncError **error); 00045 00050 OSYNC_EXPORT OSyncMapping *osync_mapping_ref(OSyncMapping *mapping); 00051 00057 OSYNC_EXPORT void osync_mapping_unref(OSyncMapping *mapping); 00058 00059 00065 OSYNC_EXPORT long long int osync_mapping_get_id(OSyncMapping *mapping); 00066 00072 OSYNC_EXPORT void osync_mapping_set_id(OSyncMapping *mapping, long long int id); 00073 00074 00080 OSYNC_EXPORT int osync_mapping_num_entries(OSyncMapping *mapping); 00081 00088 OSYNC_EXPORT OSyncMappingEntry *osync_mapping_nth_entry(OSyncMapping *mapping, int nth); 00089 00090 00096 OSYNC_EXPORT void osync_mapping_add_entry(OSyncMapping *mapping, OSyncMappingEntry *entry); 00097 00103 OSYNC_EXPORT void osync_mapping_remove_entry(OSyncMapping *mapping, OSyncMappingEntry *entry); 00104 00105 00112 OSYNC_EXPORT OSyncMappingEntry *osync_mapping_find_entry_by_member_id(OSyncMapping *mapping, long long int memberid); 00113 00116 #endif /*OPENSYNC_MAPPING_H_*/
1.5.7.1