123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef UA_JOB_H_
- #define UA_JOB_H_
- #include "ua_connection.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- 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
|