summaryrefslogtreecommitdiff
path: root/ipc/ipc_hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/ipc_hash.h')
-rw-r--r--ipc/ipc_hash.h44
1 files changed, 23 insertions, 21 deletions
diff --git a/ipc/ipc_hash.h b/ipc/ipc_hash.h
index b5b1ba6..58c56ca 100644
--- a/ipc/ipc_hash.h
+++ b/ipc/ipc_hash.h
@@ -37,27 +37,29 @@
#include <mach/boolean.h>
#include <mach/kern_return.h>
+typedef natural_t ipc_hash_index_t;
+
extern void
-ipc_hash_init();
+ipc_hash_init(void);
#if MACH_IPC_DEBUG
-extern unsigned int
-ipc_hash_info(/* hash_info_bucket_t *, unsigned int */);
+extern ipc_hash_index_t
+ipc_hash_info(hash_info_bucket_t *, mach_msg_type_number_t);
#endif /* MACH_IPC_DEBUG */
extern boolean_t
-ipc_hash_lookup(/* ipc_space_t space, ipc_object_t obj,
- mach_port_t *namep, ipc_entry_t *entryp */);
+ipc_hash_lookup(ipc_space_t space, ipc_object_t obj,
+ mach_port_t *namep, ipc_entry_t *entryp);
extern void
-ipc_hash_insert(/* ipc_space_t space, ipc_object_t obj,
- mach_port_t name, ipc_entry_t entry */);
+ipc_hash_insert(ipc_space_t space, ipc_object_t obj,
+ mach_port_t name, ipc_entry_t entry);
extern void
-ipc_hash_delete(/* ipc_space_t space, ipc_object_t obj,
- mach_port_t name, ipc_entry_t entry */);
+ipc_hash_delete(ipc_space_t space, ipc_object_t obj,
+ mach_port_t name, ipc_entry_t entry);
/*
* For use by functions that know what they're doing:
@@ -66,27 +68,27 @@ ipc_hash_delete(/* ipc_space_t space, ipc_object_t obj,
*/
extern boolean_t
-ipc_hash_global_lookup(/* ipc_space_t space, ipc_object_t obj,
- mach_port_t *namep, ipc_tree_entry_t *entryp */);
+ipc_hash_global_lookup(ipc_space_t space, ipc_object_t obj,
+ mach_port_t *namep, ipc_tree_entry_t *entryp);
extern void
-ipc_hash_global_insert(/* ipc_space_t space, ipc_object_t obj,
- mach_port_t name, ipc_tree_entry_t entry */);
+ipc_hash_global_insert(ipc_space_t space, ipc_object_t obj,
+ mach_port_t name, ipc_tree_entry_t entry);
extern void
-ipc_hash_global_delete(/* ipc_space_t space, ipc_object_t obj,
- mach_port_t name, ipc_tree_entry_t entry */);
+ipc_hash_global_delete(ipc_space_t space, ipc_object_t obj,
+ mach_port_t name, ipc_tree_entry_t entry);
extern boolean_t
-ipc_hash_local_lookup(/* ipc_space_t space, ipc_object_t obj,
- mach_port_t *namep, ipc_entry_t *entryp */);
+ipc_hash_local_lookup(ipc_space_t space, ipc_object_t obj,
+ mach_port_t *namep, ipc_entry_t *entryp);
extern void
-ipc_hash_local_insert(/* ipc_space_t space, ipc_object_t obj,
- mach_port_index_t index, ipc_entry_t entry */);
+ipc_hash_local_insert(ipc_space_t space, ipc_object_t obj,
+ mach_port_index_t index, ipc_entry_t entry);
extern void
-ipc_hash_local_delete(/* ipc_space_t space, ipc_object_t obj,
- mach_port_index_t index, ipc_entry_t entry */);
+ipc_hash_local_delete(ipc_space_t space, ipc_object_t obj,
+ mach_port_index_t index, ipc_entry_t entry);
#endif /* _IPC_IPC_HASH_H_ */