~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/hashtab.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-12 11:30:04 UTC
  • mfrom: (0.41.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100312113004-b0fop4bkycszdd0z
Tags: 0.96~rc1+dfsg-0ubuntu1
* New upstream RC - FFE (LP: #537636):
  - Add OfficialDatabaseOnly option to clamav-base.postinst.in
  - Add LocalSocketGroup option to clamav-base.postinst.in
  - Add LocalSocketMode option to clamav-base.postinst.in
  - Add CrossFilesystems option to clamav-base.postinst.in
  - Add ClamukoScannerCount option to clamav-base.postinst.in
  - Add BytecodeSecurity opiton to clamav-base.postinst.in
  - Add DetectionStatsHostID option to clamav-freshclam.postinst.in
  - Add Bytecode option to clamav-freshclam.postinst.in
  - Add MilterSocketGroup option to clamav-milter.postinst.in
  - Add MilterSocketMode option to clamav-milter.postinst.in
  - Add ReportHostname option to clamav-milter.postinst.in
  - Bump libclamav SO version to 6.1.0 in libclamav6.install
  - Drop clamdmon from clamav.examples (no longer shipped by upstream)
  - Drop libclamav.a from libclamav-dev.install (not built by upstream)
  - Update SO version for lintian override for libclamav6
  - Add new Bytecode Testing Tool, usr/bin/clambc, to clamav.install
  - Add build-depends on python and python-setuptools for new test suite
  - Update debian/copyright for the embedded copy of llvm (using the system
    llvm is not currently feasible)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#define _HASHTAB_H
25
25
#include <stdio.h>
26
26
#include <stddef.h>
 
27
#include <sys/types.h>
27
28
#include "cltypes.h"
28
29
typedef long cli_element_data;
29
30
 
103
104
int cli_hashset_clear(struct cli_hashset* hs);
104
105
void cli_hashset_destroy(struct cli_hashset* hs);
105
106
ssize_t cli_hashset_toarray(const struct cli_hashset* hs, uint32_t** array);
 
107
 
 
108
/* Initializes the set without allocating memory, you can do lookups on it
 
109
 * using _contains_maybe_noalloc. You need to initialize it using _init
 
110
 * before using _addkey or _removekey though */
 
111
void cli_hashset_init_noalloc(struct cli_hashset *hs);
 
112
/* this works like its _contains counterpart above, except that the hashset may
 
113
 * have not been initialized by _init, only by _init_noalloc */
 
114
int cli_hashset_contains_maybe_noalloc(const struct cli_hashset *hs, const uint32_t key);
106
115
#endif
107
116