/[zanavi_public1]/navit/navit/maptool/cfu.h
ZANavi

Contents of /navit/navit/maptool/cfu.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Mon Feb 4 17:41:59 2013 UTC (11 years, 1 month ago) by zoff99
File MIME type: text/plain
File size: 2578 byte(s)
new map version, lots of fixes and experimental new features
1 /* Creation date: 2005-07-06 07:34:51
2 * Authors: Don
3 * Change log:
4 */
5
6 /* Copyright (c) 2005 Don Owens
7 All rights reserved.
8
9 This code is released under the BSD license:
10
11 Redistribution and use in source and binary forms, with or without
12 modification, are permitted provided that the following conditions
13 are met:
14
15 * Redistributions of source code must retain the above copyright
16 notice, this list of conditions and the following disclaimer.
17
18 * Redistributions in binary form must reproduce the above
19 copyright notice, this list of conditions and the following
20 disclaimer in the documentation and/or other materials provided
21 with the distribution.
22
23 * Neither the name of the author nor the names of its
24 contributors may be used to endorse or promote products derived
25 from this software without specific prior written permission.
26
27 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
29 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
30 FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
31 COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
32 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
33 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
34 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
36 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
37 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
38 OF THE POSSIBILITY OF SUCH DAMAGE.
39 */
40
41 #ifndef _LIBCFU_H_
42 #define _LIBCFU_H_
43
44 #include <stdio.h>
45 #include <cfutypes.h>
46
47 #ifdef __cplusplus
48 #define CFU_BEGIN_DECLS extern "C" {
49 #define CFU_END_DECLS }
50 #else
51 #define CFU_BEGIN_DECLS
52 #define CFU_END_DECLS
53 #endif
54
55 CFU_BEGIN_DECLS
56
57 /* define this to get thread-safe versions of functions */
58 #ifndef _REENTRANT
59 #define _REENTRANT 1
60 #endif
61 #ifndef _THREAD_SAFE
62 #define _THREAD_SAFE 1
63 #endif
64
65 #define LIBCFU_VERSION "0.03"
66
67 typedef enum { libcfu_t_none = 0, libcfu_t_hash_table, libcfu_t_list, libcfu_t_string,
68 libcfu_t_time, libcfu_t_conf } libcfu_type;
69
70 struct libcfu_item;
71 typedef struct libcfu_item libcfu_item_t;
72
73 extern libcfu_type cfu_get_type(void *item);
74 extern int cfu_is_hash(void *item);
75 extern int cfu_is_list(void *item);
76 extern int cfu_is_string(void *item);
77 extern int cfu_is_time(void *item);
78 extern int cfu_is_conf(void *item);
79
80 CFU_END_DECLS
81
82 #endif

   
Visit the ZANavi Wiki