Neonode zForce(TM) SDK

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

zForce.h
Go to the documentation of this file.
1
12 #if !defined(ZFORCE_ZFORCE_H) && !defined(CONTAINS_ZFORCE)
13
14 #ifndef ZFORCECOMMON_H
15 #error Please include "zForceCommon.h" before this file.
16 #endif // ZFORCEOMMON_H
17 #ifndef ZFORCE_OSABSTRACTIONLAYER_H
18 #error Please include "OsAbstractionLayer.h" before this file.
19 #endif // ZFORCE_OSABSTRACTIONLAYER_H
20
24 typedef struct zForce zForce;
28 struct zForce
29 {
30 #endif // !defined(ZFORCE_ZFORCE_H) && !defined(CONTAINS_ZFORCE)
31 #if !defined(ZFORCE_ZFORCE_H) || defined(CONTAINS_ZFORCE)
32 OsAbstractionLayer OsAbstractionLayer;
33
40 void ( * Destructor)(zForce * self);
41 #endif // !defined(ZFORCE_ZFORCE_H) || defined(CONTAINS_ZFORCE)
42 #if !defined(ZFORCE_ZFORCE_H) && !defined(CONTAINS_ZFORCE)
43 };
44
45 #ifdef __cplusplus
46 extern "C"
47 {
48 #endif // __cplusplus
49
63 DLLEXTERNAL zForce * zForce_GetInstance (void);
64
88 DLLEXTERNAL bool zForce_Initialize (OsAbstractionLayer * osAbstractionLayer);
89
102 DLLEXTERNAL void zForce_Uninitialize (void);
103
115 DLLEXTERNAL int * zForce_ErrnoLocation (void);
116
117 #ifdef __cplusplus
118 }
119 #endif // __cplusplus
120
122 #define zForceErrno (*zForce_ErrnoLocation())
123
124 #define ZFORCE_ZFORCE_H
125 #endif // !defined(ZFORCE_ZFORCE_H) && !defined(CONTAINS_ZFORCE)
126
zForce_Initialize
DLLEXTERNAL bool zForce_Initialize(OsAbstractionLayer *osAbstractionLayer)
Initializes zForce.
zForce_ErrnoLocation
DLLEXTERNAL int * zForce_ErrnoLocation(void)
Retrieves a pointer to the zForce errno.
zForce::Destructor
void(* Destructor)(zForce *self)
Destructor frees all resources including itself.
Definition: zForce.h:40
OsAbstractionLayer
Overrides for OS Functions.
Definition: OsAbstractionLayer.h:43
zForce
Main struct.
Definition: zForce.h:28
zForce_Uninitialize
DLLEXTERNAL void zForce_Uninitialize(void)
Uninitializes zForce.
zForce::OsAbstractionLayer
OsAbstractionLayer OsAbstractionLayer
Abstracted OS Functions.
Definition: zForce.h:32
zForce_GetInstance
DLLEXTERNAL zForce * zForce_GetInstance(void)
Get a zForce Instance.