mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-17 23:59:44 +00:00
Initial commit of Seafile server core.
This commit is contained in:
23
server/chunkserv-mgr.h
Normal file
23
server/chunkserv-mgr.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#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
|
Reference in New Issue
Block a user