Updating for 1.0.2 release
[awesomized/libmemcached] / clients / generator.h
1 /* LibMemcached
2 * Copyright (C) 2006-2009 Brian Aker
3 * All rights reserved.
4 *
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
7 *
8 * Summary:
9 *
10 */
11
12 /*
13 Code to generate data to be pushed into memcached
14 */
15
16 #pragma once
17
18 typedef struct pairs_st pairs_st;
19
20 struct pairs_st {
21 char *key;
22 size_t key_length;
23 char *value;
24 size_t value_length;
25 };
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 pairs_st *pairs_generate(uint64_t number_of, size_t value_length);
32 void pairs_free(pairs_st *pairs);
33
34 #ifdef __cplusplus
35 } // extern "C"
36 #endif