2016-08-10 14:53:33 +08:00
|
|
|
#ifndef SEAF_UTILS_H
|
|
|
|
#define SEAF_UTILS_H
|
|
|
|
|
2019-06-27 22:30:31 -07:00
|
|
|
#include <searpc-client.h>
|
|
|
|
|
2016-08-10 14:53:33 +08:00
|
|
|
struct _SeafileSession;
|
|
|
|
|
|
|
|
char *
|
|
|
|
seafile_session_get_tmp_file_path (struct _SeafileSession *session,
|
|
|
|
const char *basename,
|
|
|
|
char path[]);
|
|
|
|
|
|
|
|
int
|
|
|
|
load_database_config (struct _SeafileSession *session);
|
|
|
|
|
2020-04-15 10:21:04 +08:00
|
|
|
int
|
|
|
|
load_ccnet_database_config (struct _SeafileSession *session);
|
|
|
|
|
2024-07-30 17:58:18 +08:00
|
|
|
#ifdef FULL_FEATURE
|
|
|
|
void
|
|
|
|
load_seahub_private_key (SeafileSession *session, const char *conf_dir);
|
|
|
|
#endif
|
2024-07-10 16:34:33 +08:00
|
|
|
|
2024-07-31 18:03:41 +08:00
|
|
|
char *
|
|
|
|
seaf_gen_notif_server_jwt (const char *repo_id, const char *username);
|
|
|
|
|
2024-08-29 15:28:41 +08:00
|
|
|
char *
|
|
|
|
seaf_parse_auth_token (const char *auth_token);
|
|
|
|
|
2016-08-10 14:53:33 +08:00
|
|
|
#endif
|