~ubuntu-branches/ubuntu/raring/clamav/raring

« back to all changes in this revision

Viewing changes to libclamav/hashtab.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran
  • Date: 2008-09-05 17:25:34 UTC
  • mfrom: (0.35.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080905172534-yi3f8fkye1o7u1r3
* New upstream version (closes: #497662, #497773)
  - lots of new options for clamd.conf
  - fixes CVEs CVE-2008-3912, CVE-2008-3913, CVE-2008-3914, and
    CVE-2008-1389
* No longer supports --unzip option, so typo is gone (closes: #496276)
* Translations:
  - sv (thanks Martin Bagge <brother@bsnet.se>) (closes: #491760)

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
int hashtab_generate_c(const struct hashtable *s,const char* name);
80
80
struct element* hashtab_find(const struct hashtable *s, const char* key, const size_t len);
81
81
int hashtab_init(struct hashtable *s,size_t capacity);
82
 
int hashtab_insert(struct hashtable *s, const char* key, const size_t len, const element_data data);
 
82
const struct element* hashtab_insert(struct hashtable *s, const char* key, const size_t len, const element_data data);
83
83
void hashtab_delete(struct hashtable *s,const char* key,const size_t len);
84
84
void hashtab_clear(struct hashtable *s);
85
 
 
 
85
void hashtab_free(struct hashtable *s);
86
86
int hashtab_load(FILE* in, struct hashtable *s);
87
87
int hashtab_store(const struct hashtable *s,FILE* out);
88
88
 
104
104
int hashset_clear(struct hashset* hs);
105
105
void hashset_destroy(struct hashset* hs);
106
106
ssize_t hashset_toarray(const struct hashset* hs, uint32_t** array);
107
 
 
108
 
 
109
 
/* A basic storage for unique IDs */
110
 
struct uniq {
111
 
        uint32_t count;
112
 
        uint32_t *uniques;
113
 
};
114
 
 
115
 
struct uniq *uniq_init(uint32_t);
116
 
#define uniq_free(X) do { if(X) free(X->uniques); free(X); } while (0)
117
 
uint32_t uniq_add(struct uniq *, const char *, uint32_t, uint32_t *);
118
 
uint32_t uniq_get(struct uniq *, const char *, uint32_t, uint32_t *);
119
 
 
120
107
#endif
121
108