libsyncml  0.5.4
syncml.h
1 /*
2  * libsyncml - A syncml protocol implementation
3  * Copyright (C) 2005 Armin Bauer <armin.bauer@opensync.org>
4  * Copyright (C) 2007 Michael Bell <michael.bell@opensync.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  *
20  */
21 
41 
42 #ifndef _SYNCML_H
43 #define _SYNCML_H
44 
45 #include <unistd.h>
46 #include <sys/types.h>
47 
48 #ifdef __cplusplus
49 extern "C"
50 {
51 #endif
52 
53 /**************************************************************
54  * Defines
55  *************************************************************/
56 #ifndef TRUE
57 #define TRUE 1
58 #endif
59 
60 #ifndef FALSE
61 #define FALSE 0
62 #endif
63 
64 /**************************************************************
65  * Structs
66  *************************************************************/
67 typedef struct SmlError SmlError;
68 typedef struct SmlTransport SmlTransport;
69 typedef struct SmlParser SmlParser;
70 typedef struct SmlAssembler SmlAssembler;
71 typedef struct SmlCommand SmlCommand;
72 typedef struct SmlLocation SmlLocation;
73 typedef struct SmlStatus SmlStatus;
74 typedef struct SmlSession SmlSession;
75 typedef struct SmlAnchor SmlAnchor;
76 typedef struct SmlPendingStatus SmlPendingStatus;
77 typedef struct SmlItem SmlItem;
78 typedef struct SmlDevInf SmlDevInf;
81 typedef struct SmlDevInfCTCap SmlDevInfCTCap;
84 typedef struct SmlNotification SmlNotification;
85 typedef struct SmlSanAlert SmlSanAlert;
86 typedef struct SmlMapItem SmlMapItem;
87 typedef struct SmlCred SmlCred;
88 typedef struct SmlChal SmlChal;
89 typedef struct SmlHeader SmlHeader;
90 typedef struct SmlTransportData SmlTransportData;
91 typedef struct SmlObject SmlObject;
92 typedef struct SmlManager SmlManager;
93 typedef struct SmlLink SmlLink;
94 typedef int SmlBool;
95 
96 #include <libsyncml/sml_defines.h>
97 #include <libsyncml/sml_error.h>
98 #include <libsyncml/sml_manager.h>
99 #include <libsyncml/sml_session.h>
100 #include <libsyncml/sml_transport.h>
101 #include <libsyncml/sml_elements.h>
102 #include <libsyncml/sml_command.h>
103 #include <libsyncml/sml_devinf.h>
104 #include <libsyncml/sml_notification.h>
105 #include <libsyncml/sml_base64.h>
106 #include <libsyncml/sml_md5.h>
107 
108 const char *smlGetLibraryVersion();
109 const char *smlGetLibrarySoName();
110 
111 #ifdef __cplusplus
112 }
113 #endif
114 
115 #endif
116