-
Notifications
You must be signed in to change notification settings - Fork 2k
/
storage_service.h
47 lines (35 loc) · 1.07 KB
/
storage_service.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* Copyright (C) 2008 Happy Fish / YuQing
*
* FastDFS may be copied only under the terms of the GNU General
* Public License V3, which may be found in the FastDFS source kit.
* Please visit the FastDFS Home Page http://www.fastken.com/ for more detail.
**/
//storage_service.h
#ifndef _STORAGE_SERVICE_H_
#define _STORAGE_SERVICE_H_
#define STORAGE_CREATE_FLAG_NONE 0
#define STORAGE_CREATE_FLAG_FILE 1
#define STORAGE_CREATE_FLAG_LINK 2
#define STORAGE_DELETE_FLAG_NONE 0
#define STORAGE_DELETE_FLAG_FILE 1
#define STORAGE_DELETE_FLAG_LINK 2
#include "fastcommon/logger.h"
#include "fastcommon/fast_task_queue.h"
#include "fastcommon/fc_atomic.h"
#include "sf/sf_service.h"
#include "fdfs_define.h"
#include "storage_types.h"
#ifdef __cplusplus
extern "C" {
#endif
int storage_service_init();
void storage_service_destroy();
int fdfs_stat_file_sync_func(void *args);
int storage_get_storage_path_index(int *store_path_index);
void storage_get_store_path(const char *filename, const int filename_len,
int *sub_path_high, int *sub_path_low);
#ifdef __cplusplus
}
#endif
#endif