seafile/daemon/notif-mgr.h
feiniks 20d5947916
Disable notification on linux (#2659)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-03-25 14:57:38 +08:00

36 lines
887 B
C

/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#if defined WIN32 || defined __APPLE__
#ifndef NOTIF_MGR_H
#define NOTIF_MGR_H
typedef struct _SeafNotifManager SeafNotifManager;
typedef struct _SeafNotifManagerPriv SeafNotifManagerPriv;
struct _SeafileSession;
struct _SeafNotifManager {
struct _SeafileSession *seaf;
SeafNotifManagerPriv *priv;
};
SeafNotifManager *
seaf_notif_manager_new (struct _SeafileSession *seaf);
void
seaf_notif_manager_connect_server (SeafNotifManager *mgr, const char *host,
gboolean use_notif_server_port);
void
seaf_notif_manager_subscribe_repo (SeafNotifManager *mgr, SeafRepo *repo);
void
seaf_notif_manager_unsubscribe_repo (SeafNotifManager *mgr, SeafRepo *repo);
gboolean
seaf_notif_manager_is_repo_subscribed (SeafNotifManager *mgr, SeafRepo *repo);
#endif
#endif