Debian Codegraph @

xpp/oct612x/include/octdef.h

raw
1 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
2
3 File: octdef.h
4
5 Copyright (c) 2001-2007 Octasic Inc.
6
7 Description:
8
9 Common system definitions.
10
11 This file is part of the Octasic OCT6100 GPL API . The OCT6100 GPL API is
12 free software; you can redistribute it and/or modify it under the terms of
13 the GNU General Public License as published by the Free Software Foundation;
14 either version 2 of the License, or (at your option) any later version.
15
16 The OCT6100 GPL API is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19 for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with the OCT6100 GPL API; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24
25 $Octasic_Release: OCT612xAPI-01.00-PR49 $
26
27 $Octasic_Revision: 12 $
28
29 \*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
30
31 #ifndef __OCTDEF_H__
32 #define __OCTDEF_H__
33
34 /*--------------------------------------------------------------------------
35 C language
36 ----------------------------------------------------------------------------*/
37
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41
42 #ifndef __KERNEL__
43 #include <stdio.h>
44 #endif
45
46 /***************************** INCLUDE FILES *******************************/
47
48 /*--------------------------------------------------------------------------
49 Get Platform Dependency headers
50 ----------------------------------------------------------------------------*/
51 #include "octosdependant.h"
52
53
54 /*--------------------------------------------------------------------------
55 Common Type definitions
56 ----------------------------------------------------------------------------*/
57 #include "octtype.h"
58
59 /***************************** DEFINES *************************************/
60
61 /* List of functions to skip compiling since we don't use them */
62 #include "digium_unused.h"
63
64
65
66 /*--------------------------------------------------------------------------
67 Miscellaneous constants
68 ----------------------------------------------------------------------------*/
69
70 #ifndef PROTO
71 #define PROTO extern
72 #endif
73
74 /* Generic return codes. */
75 #define cOCTDEF_RC_OK 0 /* Generic Ok */
76 #define cOCTDEF_RC_ERROR 1 /* Generic Error */
77
78 /* Default return values of all OCTAPI functions. */
79 #ifndef GENERIC_OK
80 #define GENERIC_OK 0x00000000
81 #endif
82
83 #ifndef GENERIC_ERROR
84 #define GENERIC_ERROR 0x00000001
85 #endif
86
87 #ifndef GENERIC_BAD_PARAM
88 #define GENERIC_BAD_PARAM 0x00000002
89 #endif
90
91 /* Defines of boolean expressions (TRUE/FALSE) */
92 #ifndef FALSE
93 #define FALSE (BOOL)0
94 #endif
95
96 #ifndef TRUE
97 #define TRUE (BOOL)1
98 #endif
99
100 /*--------------------------------------------------------------------------
101 DLL Import-Export
102 ----------------------------------------------------------------------------*/
103
104 #ifdef OCT_WINENV
105 #define DLLIMP __declspec( dllimport )
106 #define DLLEXP __declspec( dllexport )
107 #else
108 #define DLLIMP
109 #define DLLEXP
110 #endif
111
112 /*--------------------------------------------------------------------------
113 C language
114 ----------------------------------------------------------------------------*/
115
116 #ifdef __cplusplus
117 }
118 #endif
119
120 #endif /* __OCTDEF_H__ */