defines.h
/*
* libsyncml - A syncml protocol implementation
* Copyright (C) 2008-2009 Michael Bell <michael.bell@opensync.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef _SML_DATA_SYNC_API_CONFIG_H_
#define _SML_DATA_SYNC_API_CONFIG_H_
#ifdef __cplusplus
extern "C"
{
#endif
#include <libsyncml/sml_defines.h>
/* SyncML default limitations */
#define SML_DEFAULT_MAX_MSG_SIZE 65535
#define SML_DEFAULT_MAX_OBJ_SIZE 1024000
/* Data Synchronization config API defines */
#define SML_DATA_SYNC_CONFIG_CONNECTION_TYPE "CONNECTION_TYPE"
#define SML_DATA_SYNC_CONFIG_CONNECTION_SERIAL "SERIAL"
#define SML_DATA_SYNC_CONFIG_CONNECTION_BLUETOOTH "BLUETOOTH"
#define SML_DATA_SYNC_CONFIG_CONNECTION_IRDA "IRDA"
#define SML_DATA_SYNC_CONFIG_CONNECTION_NET "NET"
#define SML_DATA_SYNC_CONFIG_CONNECTION_USB "USB"
#define SML_DATA_SYNC_CONFIG_AUTH_USERNAME SML_TRANSPORT_CONFIG_USERNAME
#define SML_DATA_SYNC_CONFIG_AUTH_PASSWORD SML_TRANSPORT_CONFIG_PASSWORD
#define SML_DATA_SYNC_CONFIG_AUTH_TYPE "AUTH_TYPE"
#define SML_DATA_SYNC_CONFIG_AUTH_BASIC "AUTH_BASIC"
#define SML_DATA_SYNC_CONFIG_AUTH_NONE "AUTH_NONE"
#define SML_DATA_SYNC_CONFIG_AUTH_MD5 "AUTH_MD5"
#define SML_DATA_SYNC_CONFIG_VERSION "VERSION"
#define SML_DATA_SYNC_CONFIG_IDENTIFIER "IDENTIFIER"
#define SML_DATA_SYNC_CONFIG_TARGET "TARGET"
#define SML_DATA_SYNC_CONFIG_USE_WBXML "USE_WBXML"
#define SML_DATA_SYNC_CONFIG_USE_STRING_TABLE "USE_STRING_TABLE"
#define SML_DATA_SYNC_CONFIG_USE_TIMESTAMP_ANCHOR "USE_TIMESTAMP_ANCHOR"
#define SML_DATA_SYNC_CONFIG_USE_NUMBER_OF_CHANGES "USE_NUMBER_OF_CHANGES"
#define SML_DATA_SYNC_CONFIG_USE_LOCALTIME "USE_LOCALTIME"
#define SML_DATA_SYNC_CONFIG_ONLY_REPLACE "ONLY_REPLACE"
#define SML_DATA_SYNC_CONFIG_MAX_MSG_SIZE "MAX_MSG_SIZE"
#define SML_DATA_SYNC_CONFIG_MAX_OBJ_SIZE "MAX_OBJ_SIZE"
#define SML_DATA_SYNC_CONFIG_FAKE_DEVICE "FAKE_DEVICE"
#define SML_DATA_SYNC_CONFIG_FAKE_MANUFACTURER "FAKE_MANUFACTURER"
#define SML_DATA_SYNC_CONFIG_FAKE_MODEL "FAKE_MODEL"
#define SML_DATA_SYNC_CONFIG_FAKE_SOFTWARE_VERSION "FAKE_SOFTWARE_VERSION"
#define SML_CONTENT_TYPE_APPLICATION "application"
#define SML_CONTENT_TYPE_AUDIO "audio"
#define SML_CONTENT_TYPE_IMAGE "image"
#define SML_CONTENT_TYPE_MESSAGE "message"
#define SML_CONTENT_TYPE_VIDEO "video"
#ifdef __cplusplus
}
#endif
#endif /* _SML_DATA_SYNC_API_CONFIG_H_ */