projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.7
[ossec-hids.git]
/
src
/
headers
/
hash_op.h
diff --git
a/src/headers/hash_op.h
b/src/headers/hash_op.h
index
0ea3fe9
..
9b0777a
100755
(executable)
--- a/
src/headers/hash_op.h
+++ b/
src/headers/hash_op.h
@@
-1,4
+1,5
@@
-/* @(#) $Id$ */
+/* @(#) $Id: ./src/headers/hash_op.h, 2011/09/08 dcid Exp $
+ */
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
@@
-11,9
+12,9
@@
* License details at the LICENSE file included with OSSEC or
* online at: http://www.ossec.net/en/licensing.html
*/
* License details at the LICENSE file included with OSSEC or
* online at: http://www.ossec.net/en/licensing.html
*/
-
+
/* Common API for dealing with directory trees */
/* Common API for dealing with directory trees */
-
+
#ifndef _OS_HASHOP
#define _OS_HASHOP
#ifndef _OS_HASHOP
#define _OS_HASHOP
@@
-23,9
+24,9
@@
typedef struct _OSHashNode
{
struct _OSHashNode *next;
typedef struct _OSHashNode
{
struct _OSHashNode *next;
-
+
void *key;
void *key;
- void *data;
+ void *data;
}OSHashNode;
}OSHashNode;
@@
-34,7
+35,7
@@
typedef struct _OSHash
unsigned int rows;
unsigned int initial_seed;
unsigned int constant;
unsigned int rows;
unsigned int initial_seed;
unsigned int constant;
-
+
OSHashNode **table;
}OSHash;
OSHashNode **table;
}OSHash;
@@
-54,7
+55,7
@@
OSHash *OSHash_Create();
* Frees the memory used by the hash.
*/
void *OSHash_Free(OSHash *self);
* Frees the memory used by the hash.
*/
void *OSHash_Free(OSHash *self);
-
+
/** void OSHash_Add(OSHash *hash, char *key, void *data)
/** void OSHash_Add(OSHash *hash, char *key, void *data)
@@
-64,6
+65,7
@@
void *OSHash_Free(OSHash *self);
* Key must not be NULL.
*/
int OSHash_Add(OSHash *hash, char *key, void *data);
* Key must not be NULL.
*/
int OSHash_Add(OSHash *hash, char *key, void *data);
+int OSHash_Update(OSHash *hash, char *key, void *data);
/** void *OSHash_Get(OSHash *self, char *key)
/** void *OSHash_Get(OSHash *self, char *key)