2022-05-10 06:43:27 +00:00
|
|
|
//
|
|
|
|
// Created by xajhu on 2021/7/15 0015.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef DAEMON_AGENT_PROJECT_AGENT_MQ_MSG_QUEUE_H
|
|
|
|
#define DAEMON_AGENT_PROJECT_AGENT_MQ_MSG_QUEUE_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2023-03-17 07:42:15 +00:00
|
|
|
#include "common.h"
|
2022-05-10 06:43:27 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char cmd[MAX_PATH];
|
|
|
|
char key[MAX_PATH];
|
|
|
|
char value[MAX_PATH];
|
|
|
|
} MQ_CMD_MSG, *PMQ_CMD_MSG;
|
|
|
|
|
|
|
|
int mq_init(void);
|
|
|
|
void mq_uninit(void);
|
|
|
|
|
|
|
|
const char *on_msg_cmd(const char *pCmd);
|
2022-06-13 10:49:12 +00:00
|
|
|
int mq_data_init();
|
2022-06-06 03:46:09 +00:00
|
|
|
int mq_data_send_msg(const char *pMsg);
|
|
|
|
void *get_mq_context(void);
|
2022-05-10 06:43:27 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2022-12-02 06:42:37 +00:00
|
|
|
#endif //DAEMON_AGENT_PROJECT_AGENT_MQ_MSG_QUEUE_H
|