libsyncml 0.5.4

- Main Page
- Modules
- Data Structures
- Files

- File List

defines.h
1 /*
2 * libsyncml - A syncml protocol implementation
3 * Copyright (C) 2008-2009 Michael Bell <michael.bell@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.
14 *
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
18 *
19 */
20
42
43 #ifndef _SML_DATA_SYNC_API_CONFIG_H_
44 #define _SML_DATA_SYNC_API_CONFIG_H_
45
46 #ifdef __cplusplus
47 extern "C"
48 {
49 #endif
50
51 #include <libsyncml/sml_defines.h>
52
53 /* SyncML default limitations */
54
55 #define SML_DEFAULT_MAX_MSG_SIZE 65535
56 #define SML_DEFAULT_MAX_OBJ_SIZE 1024000
57
58 /* Data Synchronization config API defines */
59
60 #define SML_DATA_SYNC_CONFIG_CONNECTION_TYPE "CONNECTION_TYPE"
61 #define SML_DATA_SYNC_CONFIG_CONNECTION_SERIAL "SERIAL"
62 #define SML_DATA_SYNC_CONFIG_CONNECTION_BLUETOOTH "BLUETOOTH"
63 #define SML_DATA_SYNC_CONFIG_CONNECTION_IRDA "IRDA"
64 #define SML_DATA_SYNC_CONFIG_CONNECTION_NET "NET"
65 #define SML_DATA_SYNC_CONFIG_CONNECTION_USB "USB"
66
67 #define SML_DATA_SYNC_CONFIG_AUTH_USERNAME SML_TRANSPORT_CONFIG_USERNAME
68 #define SML_DATA_SYNC_CONFIG_AUTH_PASSWORD SML_TRANSPORT_CONFIG_PASSWORD
69 #define SML_DATA_SYNC_CONFIG_AUTH_TYPE "AUTH_TYPE"
70 #define SML_DATA_SYNC_CONFIG_AUTH_BASIC "AUTH_BASIC"
71 #define SML_DATA_SYNC_CONFIG_AUTH_NONE "AUTH_NONE"
72 #define SML_DATA_SYNC_CONFIG_AUTH_MD5 "AUTH_MD5"
73
74 #define SML_DATA_SYNC_CONFIG_VERSION "VERSION"
75 #define SML_DATA_SYNC_CONFIG_IDENTIFIER "IDENTIFIER"
76 #define SML_DATA_SYNC_CONFIG_TARGET "TARGET"
77
78 #define SML_DATA_SYNC_CONFIG_USE_WBXML "USE_WBXML"
79 #define SML_DATA_SYNC_CONFIG_USE_STRING_TABLE "USE_STRING_TABLE"
80 #define SML_DATA_SYNC_CONFIG_USE_TIMESTAMP_ANCHOR "USE_TIMESTAMP_ANCHOR"
81 #define SML_DATA_SYNC_CONFIG_USE_NUMBER_OF_CHANGES "USE_NUMBER_OF_CHANGES"
82 #define SML_DATA_SYNC_CONFIG_USE_LOCALTIME "USE_LOCALTIME"
83 #define SML_DATA_SYNC_CONFIG_ONLY_REPLACE "ONLY_REPLACE"
84 #define SML_DATA_SYNC_CONFIG_MAX_MSG_SIZE "MAX_MSG_SIZE"
85 #define SML_DATA_SYNC_CONFIG_MAX_OBJ_SIZE "MAX_OBJ_SIZE"
86
87 #define SML_DATA_SYNC_CONFIG_FAKE_DEVICE "FAKE_DEVICE"
88 #define SML_DATA_SYNC_CONFIG_FAKE_MANUFACTURER "FAKE_MANUFACTURER"
89 #define SML_DATA_SYNC_CONFIG_FAKE_MODEL "FAKE_MODEL"
90 #define SML_DATA_SYNC_CONFIG_FAKE_SOFTWARE_VERSION "FAKE_SOFTWARE_VERSION"
91
92 #define SML_CONTENT_TYPE_APPLICATION "application"
93 #define SML_CONTENT_TYPE_AUDIO "audio"
94 #define SML_CONTENT_TYPE_IMAGE "image"
95 #define SML_CONTENT_TYPE_MESSAGE "message"
96 #define SML_CONTENT_TYPE_VIDEO "video"
97
98 #ifdef __cplusplus
99 }
100 #endif
101
102 #endif /* _SML_DATA_SYNC_API_CONFIG_H_ */
103