Forgot to take out the 'flush' calls in version document I used as an example
[awesomized/libmemcached] / tests / test.h
1 /*
2 Structures for generic tests.
3 */
4 #ifdef __cplusplus
5 extern "C" {
6
7 #endif
8 #include <memcached.h>
9 #include "../lib/common.h"
10
11 typedef struct collection_st collection_st;
12 typedef struct test_st test_st;
13
14 struct test_st {
15 char *name;
16 unsigned int requires_flush;
17 uint8_t (*function)(memcached_st *memc);
18 };
19
20 struct collection_st {
21 char *name;
22 memcached_return (*pre)(memcached_st *memc);
23 memcached_return (*post)(memcached_st *memc);
24 test_st *tests;
25 };
26
27 /* How we make all of this work :) */
28 collection_st *gets_collections(void);
29
30 #ifdef __cplusplus
31 }
32 #endif