summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2004-02-25 20:30:26 -0800
committerDavid S. Miller <davem@nuts.davemloft.net>2004-02-25 20:30:26 -0800
commit230f720b7fc505c7f047385eb8b3543c52bb38d0 (patch)
tree906c3dccc5c36bd439b3272df0f9c11e6eec0655 /include/net
parent055162dcc3202ea09d1497a53010260097d87135 (diff)
[IRDA]: Hashbin cleanups, remove unused code and add const where needed.
Diffstat (limited to 'include/net')
-rw-r--r--include/net/irda/irqueue.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/net/irda/irqueue.h b/include/net/irda/irqueue.h
index 066b5377fc8f..335b0ace9665 100644
--- a/include/net/irda/irqueue.h
+++ b/include/net/irda/irqueue.h
@@ -41,7 +41,6 @@
*/
#define HB_NOLOCK 0 /* No concurent access prevention */
#define HB_LOCK 1 /* Prevent concurent write with global lock */
-#define HB_SORTED 4 /* Not yet supported */
/*
* Hash defines
@@ -81,13 +80,13 @@ hashbin_t *hashbin_new(int type);
int hashbin_delete(hashbin_t* hashbin, FREE_FUNC func);
int hashbin_clear(hashbin_t* hashbin, FREE_FUNC free_func);
void hashbin_insert(hashbin_t* hashbin, irda_queue_t* entry, long hashv,
- char* name);
-void* hashbin_remove(hashbin_t* hashbin, long hashv, char* name);
+ const char* name);
+void* hashbin_remove(hashbin_t* hashbin, long hashv, const char* name);
void* hashbin_remove_first(hashbin_t *hashbin);
void* hashbin_remove_this( hashbin_t* hashbin, irda_queue_t* entry);
-void* hashbin_find(hashbin_t* hashbin, long hashv, char* name);
-void* hashbin_lock_find(hashbin_t* hashbin, long hashv, char* name);
-void* hashbin_find_next(hashbin_t* hashbin, long hashv, char* name,
+void* hashbin_find(hashbin_t* hashbin, long hashv, const char* name);
+void* hashbin_lock_find(hashbin_t* hashbin, long hashv, const char* name);
+void* hashbin_find_next(hashbin_t* hashbin, long hashv, const char* name,
void ** pnext);
irda_queue_t *hashbin_get_first(hashbin_t *hashbin);
irda_queue_t *hashbin_get_next(hashbin_t *hashbin);