aqhome-data, aqhome-tool: more work on new protocol.
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
#include <aqhome/ipc2/message.h>
|
||||
|
||||
|
||||
#define AQH_ENDPOINT_FLAGS_WANTUPDATES 0x0001
|
||||
|
||||
|
||||
enum {
|
||||
AQH_ENDPOINT_SIGNAL_CLOSED=AQH_OBJECT_SIGNAL_LAST,
|
||||
|
||||
@@ -209,7 +209,7 @@ void AQH_MsgRequest_SetTimestamps(AQH_MSG_REQUEST *rq, int expiresInSecs)
|
||||
|
||||
|
||||
|
||||
int AQH_MsgRequest_HandleResponse(AQH_MSG_REQUEST *rq, AQH_MESSAGE *msg)
|
||||
int AQH_MsgRequest_HandleResponse(AQH_MSG_REQUEST *rq, const AQH_MESSAGE *msg)
|
||||
{
|
||||
if (rq && rq->handleResponseFn)
|
||||
return (rq->handleResponseFn)(rq, msg);
|
||||
|
||||
@@ -35,7 +35,7 @@ typedef struct AQH_MSG_REQUEST AQH_MSG_REQUEST;
|
||||
GWEN_INHERIT_FUNCTION_LIB_DEFS(AQH_MSG_REQUEST, AQHOME_API)
|
||||
GWEN_TREE2_FUNCTION_LIB_DEFS(AQH_MSG_REQUEST, AQH_MsgRequest, AQHOME_API)
|
||||
|
||||
typedef int (*AQH_MSG_REQUEST_HANDLERESPONSE_FN)(AQH_MSG_REQUEST *rq, AQH_MESSAGE *msg);
|
||||
typedef int (*AQH_MSG_REQUEST_HANDLERESPONSE_FN)(AQH_MSG_REQUEST *rq, const AQH_MESSAGE *msg);
|
||||
typedef void (*AQH_MSG_REQUEST_SUBREQUESTFINISHED_FN)(AQH_MSG_REQUEST *rq, AQH_MSG_REQUEST *subRq, int reason);
|
||||
typedef void (*AQH_MSG_REQUEST_ABORT_FN)(AQH_MSG_REQUEST *rq, int reason);
|
||||
|
||||
@@ -74,7 +74,7 @@ AQHOME_API int AQH_MsgRequest_GetState(const AQH_MSG_REQUEST *rq);
|
||||
AQHOME_API void AQH_MsgRequest_SetState(AQH_MSG_REQUEST *rq, int i);
|
||||
|
||||
|
||||
AQHOME_API int AQH_MsgRequest_HandleResponse(AQH_MSG_REQUEST *rq, AQH_MESSAGE *msg);
|
||||
AQHOME_API int AQH_MsgRequest_HandleResponse(AQH_MSG_REQUEST *rq, const AQH_MESSAGE *msg);
|
||||
AQHOME_API void AQH_MsgRequest_SubRequestFinished(AQH_MSG_REQUEST *rq, AQH_MSG_REQUEST *subRq, int reason);
|
||||
AQHOME_API void AQH_MsgRequest_Abort(AQH_MSG_REQUEST *rq, int reason);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user