From 1477aa78883562b5d5e97e4ec6fa2d23216673c2 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 13 Mar 2006 20:54:47 +0000 Subject: More passkey handler functionality --- common/list.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common/list.h') diff --git a/common/list.h b/common/list.h index b16bf946..1838370c 100644 --- a/common/list.h +++ b/common/list.h @@ -30,10 +30,15 @@ struct slist { struct slist *next; }; +typedef int (*cmp_func_t)(const void *a, const void *b); + struct slist *slist_append(struct slist *list, void *data); struct slist *slist_remove(struct slist *list, void *data); +struct slist *slist_find(struct slist *list, const void *data, + cmp_func_t cmp_func); + void slist_free(struct slist *list); #endif /* __LIST_H */ -- cgit