diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-07-27 20:16:07 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-07-27 20:16:07 +0200 |
commit | 88ff17de1673575b247da3374dedf8561716238e (patch) | |
tree | 1302ffb5363724ece99148022fb897a8d65ef5c2 /src/libmdsserver/linked-list.h | |
parent | mark temporary prints (diff) | |
download | mds-88ff17de1673575b247da3374dedf8561716238e.tar.gz mds-88ff17de1673575b247da3374dedf8561716238e.tar.bz2 mds-88ff17de1673575b247da3374dedf8561716238e.tar.xz |
fix multiple clients bug: minor bug in linked_list caused removal of old clients + add dump method for linked list
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/libmdsserver/linked-list.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libmdsserver/linked-list.h b/src/libmdsserver/linked-list.h index 5b1a44d..e2ec884 100644 --- a/src/libmdsserver/linked-list.h +++ b/src/libmdsserver/linked-list.h @@ -39,6 +39,7 @@ #include <stdlib.h> #include <stdint.h> +#include <stdio.h> @@ -276,5 +277,14 @@ int linked_list_unmarshal(linked_list_t* restrict this, char* restrict data); for (node = list.edge; node = list.next[node], node != list.edge;) +/** + * Print the content of the list + * + * @param this The list + * @param output Output file + */ +void linked_list_dump(linked_list_t* restrict this, FILE* output); + + #endif |