mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-06-26 15:11:34 +00:00
24 lines
679 B
C
24 lines
679 B
C
#ifndef CHUNKSERV_MGR_H
|
|
#define CHUNKSERV_MGR_H
|
|
|
|
#include <glib.h>
|
|
#include <db.h>
|
|
|
|
struct _SeafileSession;
|
|
|
|
struct _SeafCSManager {
|
|
struct _SeafileSession *seaf;
|
|
GHashTable *chunk_servers;
|
|
sqlite3 *db;
|
|
};
|
|
typedef struct _SeafCSManager SeafCSManager;
|
|
|
|
SeafCSManager* seaf_cs_manager_new (struct _SeafileSession *seaf);
|
|
int seaf_cs_manager_start (SeafCSManager *mgr);
|
|
|
|
int seaf_cs_manager_add_chunk_server (SeafCSManager *mgr, const char *cs_id);
|
|
int seaf_cs_manager_del_chunk_server (SeafCSManager *mgr, const char *cs_id);
|
|
GList* seaf_cs_manager_get_chunk_servers (SeafCSManager *mgr);
|
|
|
|
#endif
|