summaryrefslogtreecommitdiff
path: root/test/list.h
diff options
context:
space:
mode:
authorRob Kendrick <rjek@netsurf-browser.org>2007-09-22 12:37:27 +0000
committerRob Kendrick <rjek@netsurf-browser.org>2007-09-22 12:37:27 +0000
commit17975b688c0fdc69b23d63ac286b11ef61f295b4 (patch)
tree192b7d4ea28667b4c750993d2373faf77e3826c8 /test/list.h
parent1a81ac77b1b9fd38a5f3ea7bd2125fdcd9b953dd (diff)
downloadlibdom-17975b688c0fdc69b23d63ac286b11ef61f295b4.tar.gz
libdom-17975b688c0fdc69b23d63ac286b11ef61f295b4.tar.bz2
Use a typedef for the function pointers to comparison functions, add newline at end of file
svn path=/trunk/dom/; revision=3564
Diffstat (limited to 'test/list.h')
-rw-r--r--test/list.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/list.h b/test/list.h
index 7b5bcc0..a0a6c6a 100644
--- a/test/list.h
+++ b/test/list.h
@@ -22,6 +22,8 @@ struct list {
struct list* list_new(void);
void list_destroy(struct list* list);
+typedef int (*list_compare_func)(const void* a, const void* b);
+
/**
* Add data to the tail of the list.
*/
@@ -37,6 +39,6 @@ bool list_contains(struct list* list, void* data,
* Tests if superlist contains all elements in sublist. Order is not important.
*/
bool list_contains_all(struct list* superList, struct list* subList,
- int (*comparator)(const void* a, const void* b));
+ list_compare_func comparator);
#endif