diff options
author | Philipp Tölke <toelke@in.tum.de> | 2010-09-08 11:14:29 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2010-09-08 11:14:29 +0000 |
commit | 2fb264b62b94d7999c863672b65af974d9f877e0 (patch) | |
tree | 0abfbc77dbcb573b8921e134f426bba54f6c5f54 /src/include/gnunet_container_lib.h | |
parent | 125ae7244ad0fb46ab1d7cf3dfb04c8d3a8a9f19 (diff) | |
download | gnunet-2fb264b62b94d7999c863672b65af974d9f877e0.tar.gz gnunet-2fb264b62b94d7999c863672b65af974d9f877e0.zip |
implemented a way to add an element to the end of a slist
Diffstat (limited to 'src/include/gnunet_container_lib.h')
-rw-r--r-- | src/include/gnunet_container_lib.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/gnunet_container_lib.h b/src/include/gnunet_container_lib.h index 19946d6f7..b19dd52dc 100644 --- a/src/include/gnunet_container_lib.h +++ b/src/include/gnunet_container_lib.h | |||
@@ -966,6 +966,18 @@ void GNUNET_CONTAINER_slist_add (struct GNUNET_CONTAINER_SList *l, | |||
966 | 966 | ||
967 | 967 | ||
968 | /** | 968 | /** |
969 | * Add a new element to the end of the list | ||
970 | * @param l list | ||
971 | * @param disp memory disposition | ||
972 | * @param buf payload buffer | ||
973 | * @param len length of the buffer | ||
974 | */ | ||
975 | void GNUNET_CONTAINER_slist_add_end (struct GNUNET_CONTAINER_SList *l, | ||
976 | enum GNUNET_CONTAINER_SListDisposition disp, | ||
977 | const void *buf, size_t len); | ||
978 | |||
979 | |||
980 | /** | ||
969 | * Append a singly linked list to another | 981 | * Append a singly linked list to another |
970 | * @param dst list to append to | 982 | * @param dst list to append to |
971 | * @param src source | 983 | * @param src source |