"Fossies" - the Fresh Open Source Software Archive 
Member "memcached-1.6.15/storage.h" (21 Feb 2022, 1232 Bytes) of package /linux/www/memcached-1.6.15.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "storage.h" see the
Fossies "Dox" file reference documentation and the last
Fossies "Diffs" side-by-side code changes report:
1.6.10_vs_1.6.11.
1 #ifndef STORAGE_H
2 #define STORAGE_H
3
4 void storage_delete(void *e, item *it);
5 #ifdef EXTSTORE
6 #define STORAGE_delete(e, it) \
7 do { \
8 storage_delete(e, it); \
9 } while (0)
10 #else
11 #define STORAGE_delete(...)
12 #endif
13
14 // API.
15 void storage_stats(ADD_STAT add_stats, conn *c);
16 void process_extstore_stats(ADD_STAT add_stats, conn *c);
17 bool storage_validate_item(void *e, item *it);
18 int storage_get_item(conn *c, item *it, mc_resp *resp);
19
20 // callbacks for the IO queue subsystem.
21 void storage_submit_cb(io_queue_t *q);
22 void storage_complete_cb(io_queue_t *q);
23 void storage_finalize_cb(io_pending_t *pending);
24
25 // Thread functions.
26 int start_storage_write_thread(void *arg);
27 void storage_write_pause(void);
28 void storage_write_resume(void);
29 int start_storage_compact_thread(void *arg);
30 void storage_compact_pause(void);
31 void storage_compact_resume(void);
32
33 // Init functions.
34 struct extstore_conf_file *storage_conf_parse(char *arg, unsigned int page_size);
35 void *storage_init_config(struct settings *s);
36 int storage_read_config(void *conf, char **subopt);
37 int storage_check_config(void *conf);
38 void *storage_init(void *conf);
39
40 // Ignore pointers and header bits from the CRC
41 #define STORE_OFFSET offsetof(item, nbytes)
42
43 #endif