/usr/include/dovecot/dict-private.h is in dovecot-dev 1:2.2.22-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | #ifndef DICT_PRIVATE_H
#define DICT_PRIVATE_H
#include "dict.h"
struct dict_vfuncs {
int (*init)(struct dict *dict_driver, const char *uri,
const struct dict_settings *set,
struct dict **dict_r, const char **error_r);
void (*deinit)(struct dict *dict);
int (*wait)(struct dict *dict);
int (*lookup)(struct dict *dict, pool_t pool,
const char *key, const char **value_r);
struct dict_iterate_context *
(*iterate_init)(struct dict *dict, const char *const *paths,
enum dict_iterate_flags flags);
bool (*iterate)(struct dict_iterate_context *ctx,
const char **key_r, const char **value_r);
int (*iterate_deinit)(struct dict_iterate_context *ctx);
struct dict_transaction_context *(*transaction_init)(struct dict *dict);
int (*transaction_commit)(struct dict_transaction_context *ctx,
bool async,
dict_transaction_commit_callback_t *callback,
void *context);
void (*transaction_rollback)(struct dict_transaction_context *ctx);
void (*set)(struct dict_transaction_context *ctx,
const char *key, const char *value);
void (*unset)(struct dict_transaction_context *ctx,
const char *key);
void (*append)(struct dict_transaction_context *ctx,
const char *key, const char *value);
void (*atomic_inc)(struct dict_transaction_context *ctx,
const char *key, long long diff);
void (*lookup_async)(struct dict *dict, const char *key,
dict_lookup_callback_t *callback, void *context);
};
struct dict {
const char *name;
struct dict_vfuncs v;
};
struct dict_iterate_context {
struct dict *dict;
dict_iterate_callback_t *async_callback;
void *async_context;
unsigned int has_more:1;
};
struct dict_transaction_context {
struct dict *dict;
unsigned int changed:1;
};
extern struct dict dict_driver_client;
extern struct dict dict_driver_file;
extern struct dict dict_driver_fs;
extern struct dict dict_driver_memcached;
extern struct dict dict_driver_memcached_ascii;
extern struct dict dict_driver_redis;
extern struct dict dict_driver_cdb;
#endif
|