|
@@ -8,8 +8,9 @@
|
|
#define UA_CLIENT_HIGHLEVEL_ASYNC_H_
|
|
#define UA_CLIENT_HIGHLEVEL_ASYNC_H_
|
|
#include "ua_client.h"
|
|
#include "ua_client.h"
|
|
|
|
|
|
-/*Raw Services
|
|
|
|
- * ^^^^^^^^^^^^^^ */
|
|
|
|
|
|
+/**
|
|
|
|
+ * Raw Services
|
|
|
|
+ * ^^^^^^^^^^^^ */
|
|
typedef void (*UA_ClientAsyncReadCallback)(UA_Client *client, void *userdata,
|
|
typedef void (*UA_ClientAsyncReadCallback)(UA_Client *client, void *userdata,
|
|
UA_UInt32 requestId, UA_ReadResponse *rr);
|
|
UA_UInt32 requestId, UA_ReadResponse *rr);
|
|
static UA_INLINE UA_StatusCode UA_Client_sendAsyncReadRequest(UA_Client *client,
|
|
static UA_INLINE UA_StatusCode UA_Client_sendAsyncReadRequest(UA_Client *client,
|
|
@@ -467,7 +468,7 @@ static UA_INLINE UA_StatusCode UA_Client_writeUserExecutableAttribute_async(
|
|
/**
|
|
/**
|
|
* Method Calling
|
|
* Method Calling
|
|
* ^^^^^^^^^^^^^^ */
|
|
* ^^^^^^^^^^^^^^ */
|
|
-
|
|
|
|
|
|
+#ifdef UA_ENABLE_METHODCALLS
|
|
UA_StatusCode UA_EXPORT __UA_Client_call_async(UA_Client *client,
|
|
UA_StatusCode UA_EXPORT __UA_Client_call_async(UA_Client *client,
|
|
const UA_NodeId objectId, const UA_NodeId methodId, size_t inputSize,
|
|
const UA_NodeId objectId, const UA_NodeId methodId, size_t inputSize,
|
|
const UA_Variant *input, UA_ClientAsyncServiceCallback callback,
|
|
const UA_Variant *input, UA_ClientAsyncServiceCallback callback,
|
|
@@ -475,17 +476,19 @@ UA_StatusCode UA_EXPORT __UA_Client_call_async(UA_Client *client,
|
|
|
|
|
|
typedef void (*UA_ClientAsyncCallCallback)(UA_Client *client, void *userdata,
|
|
typedef void (*UA_ClientAsyncCallCallback)(UA_Client *client, void *userdata,
|
|
UA_UInt32 requestId, UA_CallResponse *cr);
|
|
UA_UInt32 requestId, UA_CallResponse *cr);
|
|
|
|
+
|
|
static UA_INLINE UA_StatusCode UA_Client_call_async(UA_Client *client,
|
|
static UA_INLINE UA_StatusCode UA_Client_call_async(UA_Client *client,
|
|
const UA_NodeId objectId, const UA_NodeId methodId, size_t inputSize,
|
|
const UA_NodeId objectId, const UA_NodeId methodId, size_t inputSize,
|
|
const UA_Variant *input, UA_ClientAsyncCallCallback callback,
|
|
const UA_Variant *input, UA_ClientAsyncCallCallback callback,
|
|
void *userdata, UA_UInt32 *reqId) {
|
|
void *userdata, UA_UInt32 *reqId) {
|
|
-
|
|
|
|
return __UA_Client_call_async(client, objectId, methodId, inputSize, input,
|
|
return __UA_Client_call_async(client, objectId, methodId, inputSize, input,
|
|
(UA_ClientAsyncServiceCallback) callback, userdata, reqId);
|
|
(UA_ClientAsyncServiceCallback) callback, userdata, reqId);
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
-/*Node Management
|
|
|
|
- * ^^^^^^^^^^^^^*/
|
|
|
|
|
|
+/**
|
|
|
|
+ * Node Management
|
|
|
|
+ * ^^^^^^^^^^^^^^^ */
|
|
typedef void (*UA_ClientAsyncAddNodesCallback)(UA_Client *client,
|
|
typedef void (*UA_ClientAsyncAddNodesCallback)(UA_Client *client,
|
|
void *userdata, UA_UInt32 requestId, UA_AddNodesResponse *ar);
|
|
void *userdata, UA_UInt32 requestId, UA_AddNodesResponse *ar);
|
|
|
|
|