Webcom C SDK
include
webcom-c
webcom-parser.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
23
#ifndef INCLUDE_WEBCOM_PARSER_H_
24
#define INCLUDE_WEBCOM_PARSER_H_
25
26
#include <stddef.h>
27
28
#include "
webcom-msg.h
"
29
30
31
typedef
struct
wc_parser
wc_parser_t
;
32
38
typedef
enum
{
39
WC_PARSER_OK
= 0,
40
WC_PARSER_CONTINUE
,
41
WC_PARSER_ERROR
42
}
wc_parser_result_t
;
43
44
50
wc_parser_t
*
wc_datasync_parser_new
();
51
69
wc_parser_result_t
wc_datasync_parse_msg_ex
(
wc_parser_t
*parser,
char
*buf,
size_t
len,
wc_msg_t
*res);
70
76
const
char
*
wc_datasync_parser_get_error
(
wc_parser_t
*parser);
77
89
int
wc_datasync_parse_msg
(
char
*str,
wc_msg_t
*res);
90
96
void
wc_datasync_parser_free
(
wc_parser_t
*parser);
97
110
int
wc_datasync_key_cmp
(
const
char
*sa,
const
char
*sb);
111
116
#endif
/* INCLUDE_WEBCOM_PARSER_H_ */
WC_PARSER_CONTINUE
Definition:
webcom-parser.h:40
wc_parser_t
struct wc_parser wc_parser_t
Definition:
webcom-parser.h:31
wc_datasync_parse_msg_ex
wc_parser_result_t wc_datasync_parse_msg_ex(wc_parser_t *parser, char *buf, size_t len, wc_msg_t *res)
WC_PARSER_ERROR
Definition:
webcom-parser.h:41
wc_parser_result_t
wc_parser_result_t
Definition:
webcom-parser.h:38
wc_msg_t
Definition:
webcom-msg.h:187
WC_PARSER_OK
Definition:
webcom-parser.h:39
wc_datasync_parser_new
wc_parser_t * wc_datasync_parser_new()
wc_datasync_parser_free
void wc_datasync_parser_free(wc_parser_t *parser)
wc_datasync_parser_get_error
const char * wc_datasync_parser_get_error(wc_parser_t *parser)
wc_datasync_key_cmp
int wc_datasync_key_cmp(const char *sa, const char *sb)
webcom-msg.h
wc_datasync_parse_msg
int wc_datasync_parse_msg(char *str, wc_msg_t *res)
Generated on Thu Oct 18 2018 09:31:46 for Webcom C SDK by
1.8.13