chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] add a question/answer about automounting usb devices to the FAQ.
[elogind.git]
/
libsysfs
/
dlist.h
diff --git
a/libsysfs/dlist.h
b/libsysfs/dlist.h
index 5da79f9ba20d8b5b533286abf2482655b974743f..7fc90e5bf5330755f2df27170fc1789d1e82f7d4 100644
(file)
--- a/
libsysfs/dlist.h
+++ b/
libsysfs/dlist.h
@@
-52,7
+52,6
@@
* to think about it.
*/
* to think about it.
*/
-#include <malloc.h>
typedef struct dl_node {
struct dl_node *prev;
struct dl_node *next;
typedef struct dl_node {
struct dl_node *prev;
struct dl_node *next;
@@
-77,13
+76,14
@@
void dlist_end(Dlist *);
void *dlist_insert(Dlist *,void *,int) ;
void *dlist_insert(Dlist *,void *,int) ;
-void *dlist_insert_sorted(struct dlist *list, void *new, int (*sorter)(void *, void *));
+void *dlist_insert_sorted(struct dlist *list, void *new
_elem
, int (*sorter)(void *, void *));
void dlist_delete(Dlist *,int);
void dlist_push(Dlist *,void *);
void dlist_unshift(Dlist *,void *);
void dlist_delete(Dlist *,int);
void dlist_push(Dlist *,void *);
void dlist_unshift(Dlist *,void *);
+void dlist_unshift_sorted(Dlist *,void *,int (*sorter)(void *, void *));
void *dlist_pop(Dlist *);
void *dlist_pop(Dlist *);