22 #ifndef osapi_system_h
23 #define osapi_system_h
26 #include "osapi/osapi_dll.h"
34 #ifndef osapi_semaphore_h
43 #define OSAPI_SYSTEM_MAX_HOSTNAME (64)
50 #define OSAPI_SYSTEM_OBJECTID_START 0x01000000
56 #define OSAPI_SYSTEM_OBJECTID_MAX 0x7fffffff
75 FUNCTION_MUST_TYPEDEF(
78 OSAPI_TimerTickHandlerFunction tick_handler)
85 FUNCTION_SHOULD_TYPEDEF(
94 FUNCTION_SHOULD_TYPEDEF(
103 FUNCTION_SHOULD_TYPEDEF(
112 FUNCTION_SHOULD_TYPEDEF(
121 FUNCTION_SHOULD_TYPEDEF(
130 FUNCTION_MUST_TYPEDEF(
137 FUNCTION_MUST_TYPEDEF(
139 (*OSAPI_System_generate_uuid_T)(struct OSAPI_SystemUUID *uuid_out);
142 FUNCTION_MUST_TYPEDEF(
144 (*OSAPI_System_get_ticktime_T)(RTI_INT32 *sec,RTI_UINT32 *nanosec);
222 #define OSAPI_SystemI_INITIALIZER \
235 extern OSAPIDllVariable
struct OSAPI_System *OSAPI_System_gv_System;
248 MUST_CHECK_RETURN OSAPIDllExport RTI_BOOL
261 SHOULD_CHECK_RETURN OSAPIDllExport RTI_BOOL
268 FUNCTION_MUST_TYPEDEF(
274 (*OSAPI_System_on_system_finalize_T)(
void *listener_data,
struct OSAPI_System *system);
284 OSAPI_System_on_system_finalize_T on_system_finalize;
287 #define OSAPI_SystemListener_INITIALIZER \
310 MUST_CHECK_RETURN OSAPIDllExport RTI_BOOL
323 SHOULD_CHECK_RETURN OSAPIDllExport RTI_BOOL
349 #define OSAPI_SystemProperty_INITIALIZER \
351 OSAPI_TimerProperty_INITIALIZER,\
374 MUST_CHECK_RETURN OSAPIDllExport RTI_BOOL
402 MUST_CHECK_RETURN OSAPIDllExport RTI_BOOL
415 OSAPIDllExport RTI_INT32
427 MUST_CHECK_RETURN OSAPIDllExport RTI_BOOL
429 OSAPI_TimerTickHandlerFunction tick_handler);
440 MUST_CHECK_RETURN OSAPIDllExport RTI_BOOL
454 MUST_CHECK_RETURN OSAPIDllExport RTI_BOOL
469 SHOULD_CHECK_RETURN OSAPIDllExport RTI_BOOL
480 MUST_CHECK_RETURN OSAPIDllExport RTI_BOOL
494 MUST_CHECK_RETURN OSAPIDllExport RTI_BOOL
532 OSAPIDllExport RTI_INT32
555 MUST_CHECK_RETURN OSAPIDllExport RTI_BOOL
581 MUST_CHECK_RETURN OSAPIDllExport RTI_BOOL