Neonode zForce(TM) SDK

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

zForce.h
Go to the documentation of this file.
1
12 #ifndef ZFORCE_ZFORCE_H
13 #define ZFORCE_ZFORCE_H
14
15 #ifndef ZFORCECOMMON_H
16 #error Please include "zForceCommon.h" before this file.
17 #endif // ZFORCEOMMON_H
18 #ifndef ZFORCE_OSABSTRACTIONLAYER_H
19 #error Please include "OsAbstractionLayer.h" before this file.
20 #endif // ZFORCE_OSABSTRACTIONLAYER_H
21
25 typedef struct zForce zForce;
29 struct zForce
30 {
31 OsAbstractionLayer OsAbstractionLayer;
32
39 void ( * Destructor)(zForce * self);
40 };
41
55 DLLEXTERNAL zForce * zForce_GetInstance (void);
56
80 DLLEXTERNAL bool zForce_Initialize (OsAbstractionLayer * osAbstractionLayer);
81
94 DLLEXTERNAL void zForce_Uninitialize (void);
95
107 DLLEXTERNAL int * zForce_ErrnoLocation (void);
108
110 #define zForceErrno (*zForce_ErrnoLocation())
111
112 #endif // ZFORCE_ZFORCE_H
113
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:39
OsAbstractionLayer
Overrides for OS Functions.
Definition: OsAbstractionLayer.h:44
zForce
Main struct.
Definition: zForce.h:29
zForce_Uninitialize
DLLEXTERNAL void zForce_Uninitialize(void)
Uninitializes zForce.
zForce::OsAbstractionLayer
OsAbstractionLayer OsAbstractionLayer
Abstracted OS Functions.
Definition: zForce.h:31
zForce_GetInstance
DLLEXTERNAL zForce * zForce_GetInstance(void)
Get a zForce Instance.