Initial Commit
This commit is contained in:
21
list.h
Normal file
21
list.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef LIST_H
|
||||
#define LIST_H
|
||||
|
||||
#include "uthash.h"
|
||||
|
||||
#define DEFAULT_LISTFILE "/etc/blocklist.txt"
|
||||
|
||||
typedef struct entry entry;
|
||||
|
||||
struct entry {
|
||||
unsigned long hash;
|
||||
char* str;
|
||||
UT_hash_handle hh;
|
||||
};
|
||||
|
||||
int main(int argc, char* argv[]);
|
||||
unsigned long hashstr(char *str);
|
||||
void add_entry(char* str);
|
||||
unsigned char find_entry(char* str);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user