~ubuntu-branches/debian/sid/kamailio/sid

« back to all changes in this revision

Viewing changes to modules/htable/ht_api.h

  • Committer: Package Import Robot
  • Author(s): Victor Seva
  • Date: 2014-01-06 11:47:13 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140106114713-t8xidp4arzrnyeya
Tags: 4.1.1-1
* New upstream release
* debian/patches:
  - add upstream fixes
* Added tls outbound websocket autheph dnssec modules
  - openssl exception added to their license
* removing sparc and ia64 from supported archs
  for mono module (Closes: #728915)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include "../../locking.h"
30
30
#include "../../pvar.h"
31
31
 
 
32
#define ht_compute_hash(_s)        core_case_hash(_s,0,0)
 
33
#define ht_get_entry(_h,_size)    (_h)&((_size)-1)
 
34
 
32
35
typedef struct _ht_cell
33
36
{
34
37
    unsigned int cellid;
59
62
        int_str initval;
60
63
        int updateexpire;
61
64
        unsigned int htsize;
 
65
        int dmqreplicate;
62
66
        ht_entry_t *entries;
63
67
        struct _ht *next;
64
68
} ht_t;
70
74
} ht_pv_t, *ht_pv_p;
71
75
 
72
76
int ht_add_table(str *name, int autoexp, str *dbtable, int size, int dbmode,
73
 
                int itype, int_str *ival, int updateexpire);
 
77
                int itype, int_str *ival, int updateexpire, int dmqreplicate);
74
78
int ht_init_tables(void);
75
79
int ht_destroy(void);
76
80
int ht_set_cell(ht_t *ht, str *name, int type, int_str *val, int mode);