[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Add initial history-tracking backend code for reputation mo...



Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv27475/src/common

Modified Files:
	util.h 
Log Message:
Add initial history-tracking backend code for reputation module. Not called or tested yet.

Index: util.h
===================================================================
RCS file: /home/or/cvsroot/src/common/util.h,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- util.h	19 Mar 2004 22:07:24 -0000	1.37
+++ util.h	20 Mar 2004 01:48:05 -0000	1.38
@@ -41,6 +41,7 @@
 char *tor_strdup(const char *s);
 char *tor_strndup(const char *s, size_t n);
 #define tor_free(p) do {if(p) {free(p); (p)=NULL;}} while(0)
+void tor_strlower(char *s);
 
 typedef struct {
   void **list;
@@ -66,9 +67,11 @@
 void* strmap_set(strmap_t *map, const char *key, void *val);
 void* strmap_get(strmap_t *map, const char *key);
 void* strmap_remove(strmap_t *map, const char *key);
-void strmap_foreach(strmap_t *map,
-		    void* (*fn)(const char *key, void *val, void *data),
-		    void *data);
+void* strmap_set_lc(strmap_t *map, const char *key, void *val);
+void* strmap_get_lc(strmap_t *map, const char *key);
+void* strmap_remove_lc(strmap_t *map, const char *key);
+typedef void* (*strmap_foreach_fn)(const char *key, void *val, void *data);
+void strmap_foreach(strmap_t *map, strmap_foreach_fn fn, void *data);
 void strmap_free(strmap_t *map, void (*free_val)(void*));
 
 strmap_iter_t *strmap_iter_init(strmap_t *map);