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_ENTRY_H_ 00022 #define OPENSYNC_MAPPING_ENTRY_H_ 00023 00038 00044 OSYNC_EXPORT OSyncMappingEntry *osync_mapping_entry_new(OSyncError **error); 00045 00050 OSYNC_EXPORT OSyncMappingEntry *osync_mapping_entry_ref(OSyncMappingEntry *entry); 00051 00057 OSYNC_EXPORT void osync_mapping_entry_unref(OSyncMappingEntry *entry); 00058 00059 00066 OSYNC_EXPORT osync_bool osync_mapping_entry_matches(OSyncMappingEntry *entry, OSyncChange *change); 00067 00068 /* 00069 OSYNC_EXPORT void osync_mapping_entry_update(OSyncMappingEntry *entry, OSyncChange *change); 00070 OSYNC_EXPORT OSyncChange *osync_mapping_entry_get_change(OSyncMappingEntry *entry); 00071 00072 OSYNC_EXPORT osync_bool osync_mapping_entry_is_dirty(OSyncMappingEntry *entry); 00073 OSYNC_EXPORT void osync_mapping_entry_set_dirty(OSyncMappingEntry *entry, osync_bool dirty); 00074 */ 00075 00084 OSYNC_EXPORT void osync_mapping_entry_set_uid(OSyncMappingEntry *entry, const char *uid); 00085 00094 OSYNC_EXPORT const char *osync_mapping_entry_get_uid(OSyncMappingEntry *entry); 00095 00101 OSYNC_EXPORT long long int osync_mapping_entry_get_member_id(OSyncMappingEntry *entry); 00102 00108 OSYNC_EXPORT void osync_mapping_entry_set_member_id(OSyncMappingEntry *entry, long long int id); 00109 00110 00116 OSYNC_EXPORT long long int osync_mapping_entry_get_id(OSyncMappingEntry *entry); 00117 00123 OSYNC_EXPORT void osync_mapping_entry_set_id(OSyncMappingEntry *entry, long long int id); 00124 00127 #endif /*OPENSYNC_MAPPING_ENTRY_H_*/
1.5.7.1