Added OSYNC_TEST_EXPORT to export symbols in test mode - required for windows port
[opensync.git] / opensync / engine / opensync_mapping_entry_engine_internals.h
blob3e1a1b3611bd6938ea44120a882bc31f5642377e
1 /*
2 * libosengine - A synchronization engine for the opensync framework
3 * Copyright (C) 2004-2005 Armin Bauer <armin.bauer@opensync.org>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef OPENSYNC_MAPPING_ENTRY_ENGINE_INTERNALS_H_
22 #define OPENSYNC_MAPPING_ENTRY_ENGINE_INTERNALS_H_
24 #include "opensync_sink_engine_internals.h"
26 typedef struct OSyncMappingEntryEngine {
27 int ref_count;
28 OSyncSinkEngine *sink_engine;
29 osync_bool dirty;
30 OSyncChange *change;
31 OSyncObjEngine *objengine;
32 OSyncMappingEngine *mapping_engine;
33 OSyncMappingEntry *entry;
34 } OSyncMappingEntryEngine;
36 OSyncMappingEntryEngine *osync_entry_engine_new(OSyncMappingEntry *entry, OSyncMappingEngine *mapping_engine, OSyncSinkEngine *sink_engine, OSyncObjEngine *objengine, OSyncError **error);
37 OSyncMappingEntryEngine *osync_entry_engine_ref(OSyncMappingEntryEngine *engine);
38 void osync_entry_engine_unref(OSyncMappingEntryEngine *engine);
40 osync_bool osync_entry_engine_matches(OSyncMappingEntryEngine *engine, OSyncChange *change);
41 void osync_entry_engine_update(OSyncMappingEntryEngine *engine, OSyncChange *change);
42 OSyncChange *osync_entry_engine_get_change(OSyncMappingEntryEngine *engine);
44 osync_bool osync_entry_engine_is_dirty(OSyncMappingEntryEngine *engine);
45 void osync_entry_engine_set_dirty(OSyncMappingEntryEngine *engine, osync_bool dirty);
47 #endif /*OPENSYNC_MAPPING_ENTRY_ENGINE_INTERNALS_H_*/