ubjsc  0.6
Enterprise-grade C library for manipulating UBJSON
ubjs.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016 Tomasz Sieprawski
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in all
12  * copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20  * SOFTWARE.
21  **/
29 #ifndef HAVE_UBJS
30 #define HAVE_UBJS
31 
32 #ifdef __cplusplus
33 extern "C"
34 {
35 #endif
36 
37 #include "ubjs_common.h"
38 #include "ubjs_primitives.h"
39 #include "ubjs_parser.h"
40 #include "ubjs_writer.h"
41 
52 #define UBJS_VERSION 0x000600
53 
62 UBJS_EXPORT void ubjs_get_version(unsigned long *pversion);
63 
88 UBJS_EXPORT void ubjs_is_compatible(unsigned long version, ubjs_bool *pret);
89 
90 #ifdef __cplusplus
91 }
92 #endif
93 
94 #endif
Definitions of common types, ubjson markers and some utilities.
UBJS_EXPORT void ubjs_get_version(unsigned long *pversion)
Gets library runtime version.
Definition: ubjs.c:25
ubjs_bool
Wrapper around regular C-like booleans.
Definition: ubjs_common.h:59
Wrappers over ubjson primitive types.
UBJS_EXPORT void ubjs_is_compatible(unsigned long version, ubjs_bool *pret)
Compares library runtime version with supplied.
Definition: ubjs.c:30
Streaing parser of bytestream to ubjson primitives.
Bytestream writer and pretty-printer of ubjson primitives.