mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-07-01 09:21:51 +00:00
23 lines
506 B
C
23 lines
506 B
C
#ifndef SEAF_MQ_MANAGER_H
|
|
#define SEAF_MQ_MANAGER_H
|
|
|
|
#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
|
|
seaf_mq_manager_publish_event (SeafMqManager *mgr, const char *channel, const char *content);
|
|
|
|
json_t *
|
|
seaf_mq_manager_pop_event (SeafMqManager *mgr, const char *channel);
|
|
|
|
#endif
|