|
int | status |
|
int | trace_level |
|
int | facility_mask |
|
bool | clear_config |
|
Call this function to cleanup resources allocated in uaapplication_init.
- Parameters
-
app | The uaapplication instance |
- Returns
- Zero on success.
int uaapplication_init |
( |
struct uaapplication * |
app, |
|
|
int |
trace_level, |
|
|
int |
facility_mask, |
|
|
const char * |
config_file |
|
) |
| |
Initializes an UA application.
This initializes the platform layer, trace components, memory and IPC. Use this before creating any client and/or server instance.
- Parameters
-
app | Pointer to application instance. |
trace_level | The trace level used for trace_openlog. |
facility_mask | The facility mask used for trace_openlog. |
config_file | Path to config file or NULL if no config file is used. |
Note that when not using a config file g_appconfig need to be populated properly, before this function is called.
int uaapplication_timed_docom |
( |
struct uaapplication * |
app, |
|
|
int |
timeout_ms |
|
) |
| |
This function must be called from your main loop periodically.
This is the only blocking function call in this single-threaded application. It drives the network, timers and IPC framework for both Client and Server SDK.
- Parameters
-
app | uaapplication instance. |
timeout_ms | Maximum time to block in milliseconds. |
- Returns
- Zero on success. UA_EBAD if the evaluation time has expired.
The documentation for this struct was generated from the following files:
- C:/work/embeddedstack/src/uaapplication/application.h
- C:/work/embeddedstack/src/uaapplication/application.c