Webcom C SDK
webcom.h
Go to the documentation of this file.
1 /*
2  * Webcom C SDK
3  *
4  * Copyright 2017 Orange
5  * <camille.oudot@orange.com>
6  *
7  * This library is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as published by the
9  * Free Software Foundation; either version 2.1 of the License, or (at your
10  * option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
15  * for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this library; if not, write to the Free Software Foundation,
19  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  *
21  */
22 
150 #ifndef INCLUDE_WEBCOM_C_WEBCOM_H_
151 #define INCLUDE_WEBCOM_C_WEBCOM_H_
152 
153 #include "webcom-config.h"
154 
155 #define WEBCOM_SDK_VERSION ((unsigned)((WEBCOM_SDK_MAJOR<<16)|(WEBCOM_SDK_MINOR<<8)|WEBCOM_SDK_PATCH))
156 
157 #define WC_XSTR(s) WC_STR(s)
158 #define WC_STR(s) #s
159 
160 #ifdef WEBCOM_SDK_EXTRA
161 # define WEBCOM_SDK_VERSION_STR WC_XSTR(WEBCOM_SDK_MAJOR) "." WC_XSTR(WEBCOM_SDK_MINOR) "." WC_XSTR(WEBCOM_SDK_PATCH) "-" WEBCOM_SDK_EXTRA
162 #else
163 # define WEBCOM_SDK_VERSION_STR WC_XSTR(WEBCOM_SDK_MAJOR) "." WC_XSTR(WEBCOM_SDK_MINOR) "." WC_XSTR(WEBCOM_SDK_PATCH)
164 #endif
165 
166 #include "webcom-base.h"
167 #include "webcom-log.h"
168 #include "webcom-utils.h"
169 
170 /* Datasync */
171 #include "webcom-msg.h"
172 #include "webcom-parser.h"
173 #include "webcom-datasync.h"
174 #include "webcom-req.h"
175 #include "webcom-on.h"
176 
177 /* Authentication */
178 #include "webcom-auth.h"
179 
197 
227 void wc_datasync_gen_push_id(wc_context_t *cnx, char *result);
228 
233 const char* wc_version();
234 
239 #endif /* INCLUDE_WEBCOM_C_WEBCOM_H_ */
struct wc_context wc_context_t
Definition: webcom-base.h:27
void wc_datasync_gen_push_id(wc_context_t *cnx, char *result)
int64_t wc_datasync_server_time(wc_context_t *cnx)
const char * wc_version()