2
* Copyright (C) 2014 Sourcefire, Inc.
4
* Authors: Kevin Lin <klin@sourcefire.com>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 2 as
8
* published by the Free Software Foundation.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21
#ifndef __PRTN_INTXN_H
22
#define __PRTN_INTXN_H
25
#include "clamav-config.h"
31
#define PRTN_INTXN_DETECTION "heuristic.partitionintersection"
33
struct prtn_intxn_node;
34
typedef struct prtn_intxn_node {
37
struct prtn_intxn_node *Next;
40
typedef struct prtn_intxn_list {
41
struct prtn_intxn_node *Head;
42
size_t Size; /* for debug */
45
int prtn_intxn_list_init(prtn_intxn_list_t *list);
46
int prtn_intxn_list_check(prtn_intxn_list_t *list, unsigned *pitxn, off_t start, size_t size);
47
int prtn_intxn_list_free(prtn_intxn_list_t *list);