summaryrefslogtreecommitdiff
path: root/include/octtypevx.h
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-06-19 14:34:05 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-06-19 14:34:05 +0000
commit6446efb93dc10bb2d42fd664480fc1c8b8b0e456 (patch)
tree422ddc80377b61d6b7e3107c376d5d7e82b3de01 /include/octtypevx.h
parent790db3fbe391a9147a1de81e9877c8a8640bd4f6 (diff)
Merge the giant mess that is the Octasic API
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1117 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'include/octtypevx.h')
-rw-r--r--include/octtypevx.h120
1 files changed, 120 insertions, 0 deletions
diff --git a/include/octtypevx.h b/include/octtypevx.h
new file mode 100644
index 0000000..e4c79dd
--- /dev/null
+++ b/include/octtypevx.h
@@ -0,0 +1,120 @@
+/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
+
+File: octtypevx.h
+
+Copyright (c) 2001 Octasic Inc. All rights reserved.
+
+Description: This file defines the base storage types for the VxWorks
+ environment.
+
+This source code is Octasic Confidential. Use of and access to this code
+is covered by the Octasic Device Enabling Software License Agreement.
+Acknowledgement of the Octasic Device Enabling Software License was
+required for access to this code. A copy was also provided with the release.
+
+
+$Octasic_Release: OCT610xAPI-01.00-PR37 $
+
+$Octasic_Revision: 5 $
+
+\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
+
+#ifndef __OCTTYPEVX_H__
+#define __OCTTYPEVX_H__
+
+/*--------------------------------------------------------------------------
+ C language
+----------------------------------------------------------------------------*/
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "vxWorks.h"
+
+/* 16-bit pointer integer */
+typedef unsigned short *PUINT16;
+typedef signed short *PINT16;
+
+/* 8-bit integer pointer */
+typedef unsigned char *PUINT8;
+typedef signed char *PINT8;
+
+/* 32-bit integer pointer */
+typedef INT32 * PINT32;
+typedef UINT32 * PUINT32;
+
+/* Long integer pointer */
+#ifndef DATATYPE_H /*Intel library for file system definition*/
+typedef long LONG;
+#endif
+typedef long * PLONG;
+typedef unsigned long * PULONG;
+
+/* Short integer pointer */
+typedef short SHORT;
+typedef short * PSHORT;
+typedef unsigned short *PUSHORT;
+
+/* 8-bit integer*/
+#if (CPU!=SIMNT) && !defined(DATATYPE_H)
+typedef char BYTE;
+#endif
+
+
+typedef BYTE * PBYTE;
+
+/* Character and strings */
+#ifndef DATATYPE_H /*Intel library for file system definition*/
+typedef char CHAR;
+#endif
+typedef char * PCHAR;
+typedef CHAR SZ;
+typedef CHAR * PSZ;
+
+/* Double integers */
+typedef double DOUBLE;
+typedef double * PDOUBLE;
+typedef float FLOAT;
+typedef float * PFLOAT;
+
+typedef void * PVOID;
+
+/* Booleans */
+typedef BOOL * PBOOL;
+
+/* Integers */
+typedef int INT;
+typedef int * PINT;
+typedef unsigned int PUINT;
+
+/* Define pseudo-keywords IN and OUT if not defined yet */
+#ifndef IN
+#define IN /* IN param */
+#endif
+
+#ifndef OUT
+#define OUT /* OUT param */
+#endif
+
+/* LONG LONG */
+#define LLONG signed long long
+#define PLLONG signed long long *
+#define ULLONG unsigned long long
+#define PULLONG unsigned long long *
+
+#ifndef OPT
+#define OPT /* OPT param */
+#endif
+
+typedef PSZ * PPSZ;
+
+
+/*--------------------------------------------------------------------------
+ C language
+----------------------------------------------------------------------------*/
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __OCTTYPEVX_H__ */