b6758d5a93871a798c1072fbadaf7a20697682e9
[m6w6/libmemcached] / src / bin / common / generator.h
1 /*
2 +--------------------------------------------------------------------+
3 | libmemcached - C/C++ Client Library for memcached |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted under the terms of the BSD license. |
7 | You should have received a copy of the license in a bundled file |
8 | named LICENSE; in case you did not receive a copy you can review |
9 | the terms online at: https://opensource.org/licenses/BSD-3-Clause |
10 +--------------------------------------------------------------------+
11 | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ |
12 | Copyright (c) 2020 Michael Wallner <mike@php.net> |
13 +--------------------------------------------------------------------+
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