Neonode zForce(TM) SDK
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)
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 
DLLEXTERNAL bool zForce_Initialize(OsAbstractionLayer *osAbstractionLayer)
Initializes zForce.
DLLEXTERNAL int * zForce_ErrnoLocation(void)
Retrieves a pointer to the zForce errno.
void(* Destructor)(zForce *self)
Destructor frees all resources including itself.
Definition: zForce.h:40
Overrides for OS Functions.
Definition: OsAbstractionLayer.h:43
Main struct.
Definition: zForce.h:28
DLLEXTERNAL void zForce_Uninitialize(void)
Uninitializes zForce.
OsAbstractionLayer OsAbstractionLayer
Abstracted OS Functions.
Definition: zForce.h:32
DLLEXTERNAL zForce * zForce_GetInstance(void)
Get a zForce Instance.