mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-07-19 01:27:50 +00:00
23 lines
472 B
C
23 lines
472 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
|
||
|
publish_event (SeafMqManager *mgr, const char *channel, const char *content);
|
||
|
|
||
|
char *
|
||
|
pop_event (SeafMqManager *mgr, const char *channel);
|
||
|
|
||
|
#endif
|