2019-07-22 03:18:32 +00:00
|
|
|
#ifndef SEAF_MQ_MANAGER_H
|
|
|
|
#define SEAF_MQ_MANAGER_H
|
|
|
|
|
2020-05-09 08:31:47 +00:00
|
|
|
#include <jansson.h>
|
|
|
|
|
2019-07-22 03:18:32 +00:00
|
|
|
#define SEAFILE_SERVER_CHANNEL_EVENT "seaf_server.event"
|
|
|
|
#define SEAFILE_SERVER_CHANNEL_STATS "seaf_server.stats"
|
|
|
|
|
|
|
|
struct SeafMqManagerPriv;
|
|
|
|
|
|
|
|
typedef struct SeafMqManager {
|
|
|
|
struct SeafMqManagerPriv *priv;
|
|
|
|
} SeafMqManager;
|
|
|
|
|
|
|
|
SeafMqManager *
|
|
|
|
seaf_mq_manager_new ();
|
|
|
|
|
|
|
|
int
|
2019-08-05 08:41:31 +00:00
|
|
|
seaf_mq_manager_publish_event (SeafMqManager *mgr, const char *channel, const char *content);
|
2019-07-22 03:18:32 +00:00
|
|
|
|
2019-09-09 04:15:20 +00:00
|
|
|
json_t *
|
2019-08-05 08:41:31 +00:00
|
|
|
seaf_mq_manager_pop_event (SeafMqManager *mgr, const char *channel);
|
2019-07-22 03:18:32 +00:00
|
|
|
|
|
|
|
#endif
|