~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/lib-dict/dict-private.h

  • Committer: Package Import Robot
  • Author(s): Jaldhar H. Vyas
  • Date: 2013-09-09 00:57:32 UTC
  • mfrom: (1.13.11)
  • mto: (4.8.5 experimental) (1.16.1)
  • mto: This revision was merged to the branch mainline in revision 97.
  • Revision ID: package-import@ubuntu.com-20130909005732-dn1eell8srqbhh0e
Tags: upstream-2.2.5
ImportĀ upstreamĀ versionĀ 2.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#include "dict.h"
5
5
 
6
6
struct dict_vfuncs {
7
 
        struct dict *(*init)(struct dict *dict_driver, const char *uri,
8
 
                             enum dict_data_type value_type,
9
 
                             const char *username, const char *base_dir);
 
7
        int (*init)(struct dict *dict_driver, const char *uri,
 
8
                    enum dict_data_type value_type,
 
9
                    const char *username, const char *base_dir,
 
10
                    struct dict **dict_r, const char **error_r);
10
11
        void (*deinit)(struct dict *dict);
11
12
        int (*wait)(struct dict *dict);
12
13
 
31
32
                    const char *key, const char *value);
32
33
        void (*unset)(struct dict_transaction_context *ctx,
33
34
                      const char *key);
 
35
        void (*append)(struct dict_transaction_context *ctx,
 
36
                       const char *key, const char *value);
34
37
        void (*atomic_inc)(struct dict_transaction_context *ctx,
35
38
                           const char *key, long long diff);
36
39
};
54
57
extern struct dict dict_driver_client;
55
58
extern struct dict dict_driver_file;
56
59
extern struct dict dict_driver_memcached;
 
60
extern struct dict dict_driver_memcached_ascii;
57
61
extern struct dict dict_driver_redis;
 
62
extern struct dict dict_driver_cdb;
58
63
 
59
64
#endif