1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
-
- #ifndef UA_JOB_H_
- #define UA_JOB_H_
- #ifdef __cplusplus
- extern "C" {
- #endif
- struct UA_Connection;
- typedef struct UA_Connection UA_Connection;
- struct UA_Server;
- typedef struct UA_Server UA_Server;
- typedef void (*UA_ServerCallback)(UA_Server *server, void *data);
- typedef struct {
- enum {
- UA_JOBTYPE_NOTHING,
- UA_JOBTYPE_DETACHCONNECTION,
- UA_JOBTYPE_BINARYMESSAGE_NETWORKLAYER,
- UA_JOBTYPE_BINARYMESSAGE_ALLOCATED,
- UA_JOBTYPE_METHODCALL,
- UA_JOBTYPE_METHODCALL_DELAYED,
- } type;
- union {
- UA_Connection *closeConnection;
- struct {
- UA_Connection *connection;
- UA_ByteString message;
- } binaryMessage;
- struct {
- void *data;
- UA_ServerCallback method;
- } methodCall;
- } job;
- } UA_Job;
- #ifdef __cplusplus
- }
- #endif
- #endif
|