Added OSYNC_TEST_EXPORT to export symbols in test mode - required for windows port
[opensync.git] / opensync / engine / opensync_obj_engine_internals.h
blob9a91ac7c6292b50efd2b78dee160c8452f5e5e5d
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_OBJ_ENGINE_INTERNALS_H_
22 #define OPENSYNC_OBJ_ENGINE_INTERNALS_H_
24 struct OSyncObjEngine {
25 int ref_count;
26 OSyncEngine *parent;
28 /** The object type of this Object Engine **/
29 char *objtype;
31 /** Status of Slow Sync **/
32 osync_bool slowsync;
34 OSyncArchive *archive;
36 OSyncMappingTable *mapping_table;
37 GList *mapping_engines;
39 GList *sink_engines;
40 OSyncError *error;
41 OSyncFormatEnv *formatenv;
43 int sink_errors;
44 int sink_connects;
45 int sink_disconnects;
46 int sink_get_changes;
47 int sink_sync_done;
48 int sink_written;
50 OSyncObjEngineEventCallback callback;
51 void *callback_userdata;
53 GList *conflicts;
55 /** Written status of Object Engine. - TODO: Is this still needed?! **/
56 osync_bool written;
59 OSyncMappingEngine *_osync_obj_engine_create_mapping_engine(OSyncObjEngine *engine, OSyncError **error);
61 #endif /*OPENSYNC_OBJ_ENGINE_INTERNALS_H_*/