Neonode zForce(TM) SDK

zForce.h
Go to the documentation of this file.
1
11 #ifndef ZFORCE_ZFORCE_H
12 #define ZFORCE_ZFORCE_H 1
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 OsAbstractionLayer OsAbstractionLayer;
31
39 void ( * Destructor)(zForce * self);
40 };
41
42 #ifdef __cplusplus
43 extern "C"
44 {
45 #endif // __cplusplus
46
59 DLLEXTERNAL zForce * zForce_GetInstance (void);
60
84 DLLEXTERNAL bool zForce_Initialize (OsAbstractionLayer * osAbstractionLayer);
85
98 DLLEXTERNAL void zForce_Uninitialize (void);
99
111 DLLEXTERNAL int * zForce_ErrnoLocation (void);
112
113 #ifdef __cplusplus
114 }
115 #endif // __cplusplus
116
118 #define zForceErrno (*zForce_ErrnoLocation())
119
120 #endif // ZFORCE_ZFORCE_H
OsAbstractionLayer
Overrides for OS Functions.
Definition: OsAbstractionLayer.h:44
zForce
Main struct.
Definition: zForce.h:29
zForce::OsAbstractionLayer
OsAbstractionLayer OsAbstractionLayer
Abstracted OS Functions.
Definition: zForce.h:30
zForce::Destructor
void(* Destructor)(zForce *self)
Destructor frees all resources including itself.
Definition: zForce.h:39
zForce_Uninitialize
DLLEXTERNAL void zForce_Uninitialize(void)
Uninitializes zForce.
zForce_GetInstance
DLLEXTERNAL zForce * zForce_GetInstance(void)
Get a zForce Instance.
zForce_Initialize
DLLEXTERNAL bool zForce_Initialize(OsAbstractionLayer *osAbstractionLayer)
Initializes zForce.
zForce_ErrnoLocation
DLLEXTERNAL int * zForce_ErrnoLocation(void)
Retrieves a pointer to the zForce errno.