ThingWorx C SDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
thirdParty
libcfu
src
cfu.h
1
/*
2
* cfu.h - This file is part of the libcfu library
3
*
4
* Copyright (c) 2005 Don Owens. All rights reserved.
5
*
6
* This code is released under the BSD license:
7
*
8
* Redistribution and use in source and binary forms, with or without
9
* modification, are permitted provided that the following conditions
10
* are met:
11
*
12
* * Redistributions of source code must retain the above copyright
13
* notice, this list of conditions and the following disclaimer.
14
*
15
* * Redistributions in binary form must reproduce the above
16
* copyright notice, this list of conditions and the following
17
* disclaimer in the documentation and/or other materials provided
18
* with the distribution.
19
*
20
* * Neither the name of the author nor the names of its
21
* contributors may be used to endorse or promote products derived
22
* from this software without specific prior written permission.
23
*
24
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
27
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
28
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
29
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
30
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
31
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
33
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
35
* OF THE POSSIBILITY OF SUCH DAMAGE.
36
*/
37
38
#ifndef LIBCFU_H_
39
#define LIBCFU_H_
40
41
#ifdef __cplusplus
42
# define CFU_BEGIN_DECLS extern "C" {
43
# define CFU_END_DECLS }
44
# define CFU_INLINE inline
45
#else
46
# define CFU_BEGIN_DECLS
47
# define CFU_END_DECLS
48
# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
49
# define CFU_INLINE inline
50
# elif defined(__GNUC__)
51
# define CFU_INLINE __inline__
52
# else
53
# define CFU_INLINE
54
# endif
55
#endif
56
57
CFU_BEGIN_DECLS
58
59
#define LIBCFU_VERSION "0.04"
60
61
typedef
enum
{ libcfu_t_none = 0, libcfu_t_hash_table, libcfu_t_list, libcfu_t_string,
62
libcfu_t_time, libcfu_t_timer, libcfu_t_conf } libcfu_type;
63
64
typedef
struct
libcfu_item
libcfu_item_t
;
65
66
libcfu_type cfu_get_type(
void
*item);
67
int
cfu_is_hash(
void
*item);
68
int
cfu_is_list(
void
*item);
69
int
cfu_is_string(
void
*item);
70
int
cfu_is_time(
void
*item);
71
int
cfu_is_timer(
void
*item);
72
int
cfu_is_conf(
void
*item);
73
74
CFU_END_DECLS
75
76
#endif
libcfu_item
Definition:
cfu.c:40
Generated on Wed Feb 27 2019 14:44:38 for ThingWorx C SDK by
1.8.9.1