~ubuntu-branches/ubuntu/dapper/clamav/dapper-security

« back to all changes in this revision

Viewing changes to libclamav/uniq.h

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2009-04-29 17:17:14 UTC
  • mfrom: (1.1.8 upstream) (0.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090429171714-9rb08pcxwl02e0bq
Tags: 0.94.dfsg.2-1ubuntu0.3~dapper2
No change rebuild from backports

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  md5 based hashtab
 
3
 *
 
4
 *  Copyright (C) 2008 Sourcefire, Inc.
 
5
 *
 
6
 *  Authors: aCaB <acab@clamav.net>
 
7
 *
 
8
 *  This program is free software; you can redistribute it and/or modify
 
9
 *  it under the terms of the GNU General Public License version 2 as
 
10
 *  published by the Free Software Foundation.
 
11
 *
 
12
 *  This program is distributed in the hope that it will be useful,
 
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 *  GNU General Public License for more details.
 
16
 *
 
17
 *  You should have received a copy of the GNU General Public License
 
18
 *  along with this program; if not, write to the Free Software
 
19
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 
20
 *  MA 02110-1301, USA.
 
21
 */
 
22
 
 
23
#ifndef _UNIQ_H
 
24
#define _UNIQ_H
 
25
 
 
26
#include "cltypes.h"
 
27
 
 
28
struct UNIQMD5 {
 
29
  struct UNIQMD5 *next;
 
30
  uint32_t count;
 
31
  uint8_t md5[16];
 
32
  char name[33];
 
33
};
 
34
 
 
35
struct uniq {
 
36
  struct UNIQMD5 *md5s;
 
37
  uint32_t items;
 
38
  uint32_t idx[256];
 
39
};
 
40
 
 
41
struct uniq *uniq_init(uint32_t);
 
42
void uniq_free(struct uniq *);
 
43
uint32_t uniq_add(struct uniq *, const char *, uint32_t, char **);
 
44
uint32_t uniq_get(struct uniq *, const char *, uint32_t, char **);
 
45
 
 
46
 
 
47
#endif