summaryrefslogtreecommitdiff
path: root/src/common/db.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-09-28 18:15:23 +0200
committerHaru <haru@dotalux.com>2013-09-29 01:45:34 +0200
commit5697031dce0f02a55044504077775b909a42982d (patch)
treeaef805d4d5f4eb9bc4da0282e84322369c26ed3b /src/common/db.h
parentfe624087b2495fb258afd9177c6299139a1f914d (diff)
downloadhercules-5697031dce0f02a55044504077775b909a42982d.tar.gz
hercules-5697031dce0f02a55044504077775b909a42982d.tar.bz2
hercules-5697031dce0f02a55044504077775b909a42982d.tar.xz
hercules-5697031dce0f02a55044504077775b909a42982d.zip
Provided argument-list equivalent for several variadic functions
This is necessary for the upcoming HPM hooking system
Diffstat (limited to 'src/common/db.h')
-rw-r--r--src/common/db.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/common/db.h b/src/common/db.h
index aa4bfb054..dffd2356d 100644
--- a/src/common/db.h
+++ b/src/common/db.h
@@ -882,12 +882,13 @@ struct linkdb_node {
typedef void (*LinkDBFunc)(void* key, void* data, va_list args);
-void linkdb_insert ( struct linkdb_node** head, void *key, void* data); // 重複を考慮しない
-void linkdb_replace( struct linkdb_node** head, void *key, void* data); // 重複を考慮する
-void* linkdb_search ( struct linkdb_node** head, void *key);
-void* linkdb_erase ( struct linkdb_node** head, void *key);
-void linkdb_final ( struct linkdb_node** head );
-void linkdb_foreach( struct linkdb_node** head, LinkDBFunc func, ... );
+void linkdb_insert (struct linkdb_node** head, void *key, void* data); // 重複を考慮しない
+void linkdb_replace (struct linkdb_node** head, void *key, void* data); // 重複を考慮する
+void* linkdb_search (struct linkdb_node** head, void *key);
+void* linkdb_erase (struct linkdb_node** head, void *key);
+void linkdb_final (struct linkdb_node** head);
+void linkdb_vforeach(struct linkdb_node** head, LinkDBFunc func, va_list ap);
+void linkdb_foreach (struct linkdb_node** head, LinkDBFunc func, ...);