seafile/common/mq-mgr.h
2018-06-26 12:23:36 +08:00

25 lines
478 B
C

#ifndef SEAF_MQ_MANAGER_H
#define SEAF_MQ_MANAGER_H
#define SEAFILE_NOTIFY_CHAN "seafile.notification"
struct SeafMqManagerPriv;
typedef struct SeafMqManager {
struct SeafMqManagerPriv *priv;
} SeafMqManager;
SeafMqManager *
seaf_mq_manager_new ();
void
seaf_mq_manager_init (SeafMqManager *mgr);
void
seaf_mq_manager_publish_notification (SeafMqManager *mgr, const char *type, const char *content);
json_t *
seaf_mq_manager_pop_message (SeafMqManager *mgr);
#endif