00001 /* 00002 * libsyncml - A syncml protocol implementation 00003 * Copyright (C) 2005 Armin Bauer <armin.bauer@opensync.org> 00004 * Copyright (C) 2007 Michael Bell <michael.bell@opensync.org> 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 * 00020 */ 00021 00041 00042 #ifndef _SYNCML_H 00043 #define _SYNCML_H 00044 00045 #include <unistd.h> 00046 #include <sys/types.h> 00047 00048 #ifdef __cplusplus 00049 extern "C" 00050 { 00051 #endif 00052 00053 /************************************************************** 00054 * Defines 00055 *************************************************************/ 00056 #ifndef TRUE 00057 #define TRUE 1 00058 #endif 00059 00060 #ifndef FALSE 00061 #define FALSE 0 00062 #endif 00063 00064 /************************************************************** 00065 * Structs 00066 *************************************************************/ 00067 typedef struct SmlError SmlError; 00068 typedef struct SmlTransport SmlTransport; 00069 typedef struct SmlParser SmlParser; 00070 typedef struct SmlAssembler SmlAssembler; 00071 typedef struct SmlCommand SmlCommand; 00072 typedef struct SmlLocation SmlLocation; 00073 typedef struct SmlStatus SmlStatus; 00074 typedef struct SmlSession SmlSession; 00075 typedef struct SmlAnchor SmlAnchor; 00076 typedef struct SmlPendingStatus SmlPendingStatus; 00077 typedef struct SmlItem SmlItem; 00078 typedef struct SmlDevInf SmlDevInf; 00079 typedef struct SmlDevInfDataStore SmlDevInfDataStore; 00080 typedef struct SmlDevInfContentType SmlDevInfContentType; 00081 typedef struct SmlDevInfCTCap SmlDevInfCTCap; 00082 typedef struct SmlDevInfProperty SmlDevInfProperty; 00083 typedef struct SmlDevInfPropParam SmlDevInfPropParam; 00084 typedef struct SmlNotification SmlNotification; 00085 typedef struct SmlSanAlert SmlSanAlert; 00086 typedef struct SmlMapItem SmlMapItem; 00087 typedef struct SmlCred SmlCred; 00088 typedef struct SmlChal SmlChal; 00089 typedef struct SmlHeader SmlHeader; 00090 typedef struct SmlTransportData SmlTransportData; 00091 typedef struct SmlObject SmlObject; 00092 typedef struct SmlManager SmlManager; 00093 typedef struct SmlLink SmlLink; 00094 typedef int SmlBool; 00095 00096 #include <libsyncml/sml_defines.h> 00097 #include <libsyncml/sml_error.h> 00098 #include <libsyncml/sml_manager.h> 00099 #include <libsyncml/sml_session.h> 00100 #include <libsyncml/sml_transport.h> 00101 #include <libsyncml/sml_elements.h> 00102 #include <libsyncml/sml_command.h> 00103 #include <libsyncml/sml_devinf.h> 00104 #include <libsyncml/sml_notification.h> 00105 #include <libsyncml/sml_base64.h> 00106 #include <libsyncml/sml_md5.h> 00107 00108 const char *smlGetLibraryVersion(); 00109 const char *smlGetLibrarySoName(); 00110 00111 #ifdef __cplusplus 00112 } 00113 #endif 00114 00115 #endif 00116