diff options
Diffstat (limited to 'src/include/gnunet_container_lib.h')
-rw-r--r-- | src/include/gnunet_container_lib.h | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/src/include/gnunet_container_lib.h b/src/include/gnunet_container_lib.h index 39176e93b..00540d9ea 100644 --- a/src/include/gnunet_container_lib.h +++ b/src/include/gnunet_container_lib.h | |||
@@ -612,10 +612,10 @@ typedef int (*GNUNET_CONTAINER_HashMapIterator) (void *cls, | |||
612 | * @param len initial size (map will grow as needed) | 612 | * @param len initial size (map will grow as needed) |
613 | * @param do_not_copy_keys #GNUNET_NO is always safe and should be used by default; | 613 | * @param do_not_copy_keys #GNUNET_NO is always safe and should be used by default; |
614 | * #GNUNET_YES means that on 'put', the 'key' does not have | 614 | * #GNUNET_YES means that on 'put', the 'key' does not have |
615 | * to be copied as the destination of the pointer is | 615 | * to be copied as the destination of the pointer is |
616 | * guaranteed to be life as long as the value is stored in | 616 | * guaranteed to be life as long as the value is stored in |
617 | * the hashmap. This can significantly reduce memory | 617 | * the hashmap. This can significantly reduce memory |
618 | * consumption, but of course is also a recipie for | 618 | * consumption, but of course is also a recipie for |
619 | * heap corruption if the assumption is not true. Only | 619 | * heap corruption if the assumption is not true. Only |
620 | * use this if (1) memory use is important in this case and | 620 | * use this if (1) memory use is important in this case and |
621 | * (2) you have triple-checked that the invariant holds | 621 | * (2) you have triple-checked that the invariant holds |
@@ -649,7 +649,7 @@ GNUNET_CONTAINER_multihashmap_destroy (struct GNUNET_CONTAINER_MultiHashMap *map | |||
649 | * key-value pairs with value NULL | 649 | * key-value pairs with value NULL |
650 | */ | 650 | */ |
651 | void * | 651 | void * |
652 | GNUNET_CONTAINER_multihashmap_get (const struct GNUNET_CONTAINER_MultiHashMap *map, | 652 | GNUNET_CONTAINER_multihashmap_get (const struct GNUNET_CONTAINER_MultiHashMap *map, |
653 | const struct GNUNET_HashCode *key); | 653 | const struct GNUNET_HashCode *key); |
654 | 654 | ||
655 | 655 | ||
@@ -667,7 +667,7 @@ GNUNET_CONTAINER_multihashmap_get (const struct GNUNET_CONTAINER_MultiHashMap *m | |||
667 | */ | 667 | */ |
668 | int | 668 | int |
669 | GNUNET_CONTAINER_multihashmap_remove (struct GNUNET_CONTAINER_MultiHashMap *map, | 669 | GNUNET_CONTAINER_multihashmap_remove (struct GNUNET_CONTAINER_MultiHashMap *map, |
670 | const struct GNUNET_HashCode *key, | 670 | const struct GNUNET_HashCode *key, |
671 | const void *value); | 671 | const void *value); |
672 | 672 | ||
673 | /** | 673 | /** |
@@ -680,7 +680,7 @@ GNUNET_CONTAINER_multihashmap_remove (struct GNUNET_CONTAINER_MultiHashMap *map, | |||
680 | * @return number of values removed | 680 | * @return number of values removed |
681 | */ | 681 | */ |
682 | int | 682 | int |
683 | GNUNET_CONTAINER_multihashmap_remove_all (struct GNUNET_CONTAINER_MultiHashMap *map, | 683 | GNUNET_CONTAINER_multihashmap_remove_all (struct GNUNET_CONTAINER_MultiHashMap *map, |
684 | const struct GNUNET_HashCode *key); | 684 | const struct GNUNET_HashCode *key); |
685 | 685 | ||
686 | 686 | ||
@@ -711,7 +711,7 @@ GNUNET_CONTAINER_multihashmap_contains (const struct GNUNET_CONTAINER_MultiHashM | |||
711 | * #GNUNET_NO if not | 711 | * #GNUNET_NO if not |
712 | */ | 712 | */ |
713 | int | 713 | int |
714 | GNUNET_CONTAINER_multihashmap_contains_value (const struct GNUNET_CONTAINER_MultiHashMap *map, | 714 | GNUNET_CONTAINER_multihashmap_contains_value (const struct GNUNET_CONTAINER_MultiHashMap *map, |
715 | const struct GNUNET_HashCode *key, | 715 | const struct GNUNET_HashCode *key, |
716 | const void *value); | 716 | const void *value); |
717 | 717 | ||
@@ -782,7 +782,7 @@ GNUNET_CONTAINER_multihashmap_iterator_create (const struct GNUNET_CONTAINER_Mul | |||
782 | 782 | ||
783 | 783 | ||
784 | /** | 784 | /** |
785 | * @ingroup hashmap | 785 | * @ingroup hashmap |
786 | * Retrieve the next element from the hash map at the iterator's | 786 | * Retrieve the next element from the hash map at the iterator's |
787 | * position. If there are no elements left, #GNUNET_NO is returned, | 787 | * position. If there are no elements left, #GNUNET_NO is returned, |
788 | * and @a key and @a value are not modified. This operation is only | 788 | * and @a key and @a value are not modified. This operation is only |
@@ -798,12 +798,12 @@ GNUNET_CONTAINER_multihashmap_iterator_create (const struct GNUNET_CONTAINER_Mul | |||
798 | */ | 798 | */ |
799 | int | 799 | int |
800 | GNUNET_CONTAINER_multihashmap_iterator_next (struct GNUNET_CONTAINER_MultiHashMapIterator *iter, | 800 | GNUNET_CONTAINER_multihashmap_iterator_next (struct GNUNET_CONTAINER_MultiHashMapIterator *iter, |
801 | struct GNUNET_HashCode *key, | 801 | struct GNUNET_HashCode *key, |
802 | const void **value); | 802 | const void **value); |
803 | 803 | ||
804 | 804 | ||
805 | /** | 805 | /** |
806 | * @ingroup hashmap | 806 | * @ingroup hashmap |
807 | * Destroy a multihashmap iterator. | 807 | * Destroy a multihashmap iterator. |
808 | * | 808 | * |
809 | * @param iter the iterator to destroy | 809 | * @param iter the iterator to destroy |
@@ -813,7 +813,7 @@ GNUNET_CONTAINER_multihashmap_iterator_destroy (struct GNUNET_CONTAINER_MultiHas | |||
813 | 813 | ||
814 | 814 | ||
815 | /** | 815 | /** |
816 | * @ingroup hashmap | 816 | * @ingroup hashmap |
817 | * Iterate over all entries in the map that match a particular key. | 817 | * Iterate over all entries in the map that match a particular key. |
818 | * | 818 | * |
819 | * @param map the map | 819 | * @param map the map |
@@ -856,10 +856,10 @@ typedef int (*GNUNET_CONTAINER_PeerMapIterator) (void *cls, | |||
856 | * @param len initial size (map will grow as needed) | 856 | * @param len initial size (map will grow as needed) |
857 | * @param do_not_copy_keys #GNUNET_NO is always safe and should be used by default; | 857 | * @param do_not_copy_keys #GNUNET_NO is always safe and should be used by default; |
858 | * #GNUNET_YES means that on 'put', the 'key' does not have | 858 | * #GNUNET_YES means that on 'put', the 'key' does not have |
859 | * to be copied as the destination of the pointer is | 859 | * to be copied as the destination of the pointer is |
860 | * guaranteed to be life as long as the value is stored in | 860 | * guaranteed to be life as long as the value is stored in |
861 | * the hashmap. This can significantly reduce memory | 861 | * the hashmap. This can significantly reduce memory |
862 | * consumption, but of course is also a recipie for | 862 | * consumption, but of course is also a recipie for |
863 | * heap corruption if the assumption is not true. Only | 863 | * heap corruption if the assumption is not true. Only |
864 | * use this if (1) memory use is important in this case and | 864 | * use this if (1) memory use is important in this case and |
865 | * (2) you have triple-checked that the invariant holds | 865 | * (2) you have triple-checked that the invariant holds |
@@ -893,7 +893,7 @@ GNUNET_CONTAINER_multipeermap_destroy (struct GNUNET_CONTAINER_MultiPeerMap *map | |||
893 | * key-value pairs with value NULL | 893 | * key-value pairs with value NULL |
894 | */ | 894 | */ |
895 | void * | 895 | void * |
896 | GNUNET_CONTAINER_multipeermap_get (const struct GNUNET_CONTAINER_MultiPeerMap *map, | 896 | GNUNET_CONTAINER_multipeermap_get (const struct GNUNET_CONTAINER_MultiPeerMap *map, |
897 | const struct GNUNET_PeerIdentity *key); | 897 | const struct GNUNET_PeerIdentity *key); |
898 | 898 | ||
899 | 899 | ||
@@ -911,7 +911,7 @@ GNUNET_CONTAINER_multipeermap_get (const struct GNUNET_CONTAINER_MultiPeerMap *m | |||
911 | */ | 911 | */ |
912 | int | 912 | int |
913 | GNUNET_CONTAINER_multipeermap_remove (struct GNUNET_CONTAINER_MultiPeerMap *map, | 913 | GNUNET_CONTAINER_multipeermap_remove (struct GNUNET_CONTAINER_MultiPeerMap *map, |
914 | const struct GNUNET_PeerIdentity * key, | 914 | const struct GNUNET_PeerIdentity * key, |
915 | const void *value); | 915 | const void *value); |
916 | 916 | ||
917 | /** | 917 | /** |
@@ -924,7 +924,7 @@ GNUNET_CONTAINER_multipeermap_remove (struct GNUNET_CONTAINER_MultiPeerMap *map, | |||
924 | * @return number of values removed | 924 | * @return number of values removed |
925 | */ | 925 | */ |
926 | int | 926 | int |
927 | GNUNET_CONTAINER_multipeermap_remove_all (struct GNUNET_CONTAINER_MultiPeerMap *map, | 927 | GNUNET_CONTAINER_multipeermap_remove_all (struct GNUNET_CONTAINER_MultiPeerMap *map, |
928 | const struct GNUNET_PeerIdentity *key); | 928 | const struct GNUNET_PeerIdentity *key); |
929 | 929 | ||
930 | 930 | ||
@@ -955,7 +955,7 @@ GNUNET_CONTAINER_multipeermap_contains (const struct GNUNET_CONTAINER_MultiPeerM | |||
955 | * #GNUNET_NO if not | 955 | * #GNUNET_NO if not |
956 | */ | 956 | */ |
957 | int | 957 | int |
958 | GNUNET_CONTAINER_multipeermap_contains_value (const struct GNUNET_CONTAINER_MultiPeerMap *map, | 958 | GNUNET_CONTAINER_multipeermap_contains_value (const struct GNUNET_CONTAINER_MultiPeerMap *map, |
959 | const struct GNUNET_PeerIdentity * key, | 959 | const struct GNUNET_PeerIdentity * key, |
960 | const void *value); | 960 | const void *value); |
961 | 961 | ||
@@ -975,7 +975,7 @@ GNUNET_CONTAINER_multipeermap_contains_value (const struct GNUNET_CONTAINER_Mult | |||
975 | */ | 975 | */ |
976 | int | 976 | int |
977 | GNUNET_CONTAINER_multipeermap_put (struct GNUNET_CONTAINER_MultiPeerMap *map, | 977 | GNUNET_CONTAINER_multipeermap_put (struct GNUNET_CONTAINER_MultiPeerMap *map, |
978 | const struct GNUNET_PeerIdentity *key, | 978 | const struct GNUNET_PeerIdentity *key, |
979 | void *value, | 979 | void *value, |
980 | enum GNUNET_CONTAINER_MultiHashMapOption opt); | 980 | enum GNUNET_CONTAINER_MultiHashMapOption opt); |
981 | 981 | ||
@@ -1025,7 +1025,7 @@ GNUNET_CONTAINER_multipeermap_iterator_create (const struct GNUNET_CONTAINER_Mul | |||
1025 | 1025 | ||
1026 | 1026 | ||
1027 | /** | 1027 | /** |
1028 | * @ingroup hashmap | 1028 | * @ingroup hashmap |
1029 | * Retrieve the next element from the hash map at the iterator's | 1029 | * Retrieve the next element from the hash map at the iterator's |
1030 | * position. If there are no elements left, #GNUNET_NO is returned, | 1030 | * position. If there are no elements left, #GNUNET_NO is returned, |
1031 | * and @a key and @a value are not modified. This operation is only | 1031 | * and @a key and @a value are not modified. This operation is only |
@@ -1041,12 +1041,12 @@ GNUNET_CONTAINER_multipeermap_iterator_create (const struct GNUNET_CONTAINER_Mul | |||
1041 | */ | 1041 | */ |
1042 | int | 1042 | int |
1043 | GNUNET_CONTAINER_multipeermap_iterator_next (struct GNUNET_CONTAINER_MultiPeerMapIterator *iter, | 1043 | GNUNET_CONTAINER_multipeermap_iterator_next (struct GNUNET_CONTAINER_MultiPeerMapIterator *iter, |
1044 | struct GNUNET_PeerIdentity *key, | 1044 | struct GNUNET_PeerIdentity *key, |
1045 | const void **value); | 1045 | const void **value); |
1046 | 1046 | ||
1047 | 1047 | ||
1048 | /** | 1048 | /** |
1049 | * @ingroup hashmap | 1049 | * @ingroup hashmap |
1050 | * Destroy a multipeermap iterator. | 1050 | * Destroy a multipeermap iterator. |
1051 | * | 1051 | * |
1052 | * @param iter the iterator to destroy | 1052 | * @param iter the iterator to destroy |
@@ -1056,7 +1056,7 @@ GNUNET_CONTAINER_multipeermap_iterator_destroy (struct GNUNET_CONTAINER_MultiPee | |||
1056 | 1056 | ||
1057 | 1057 | ||
1058 | /** | 1058 | /** |
1059 | * @ingroup hashmap | 1059 | * @ingroup hashmap |
1060 | * Iterate over all entries in the map that match a particular key. | 1060 | * Iterate over all entries in the map that match a particular key. |
1061 | * | 1061 | * |
1062 | * @param map the map | 1062 | * @param map the map |
@@ -1077,14 +1077,14 @@ GNUNET_CONTAINER_multipeermap_get_multiple (const struct GNUNET_CONTAINER_MultiP | |||
1077 | /* Version of multihashmap with 32 bit keys */ | 1077 | /* Version of multihashmap with 32 bit keys */ |
1078 | 1078 | ||
1079 | /** | 1079 | /** |
1080 | * @ingroup hashmap | 1080 | * @ingroup hashmap |
1081 | * Opaque handle for the 32-bit key HashMap. | 1081 | * Opaque handle for the 32-bit key HashMap. |
1082 | */ | 1082 | */ |
1083 | struct GNUNET_CONTAINER_MultiHashMap32; | 1083 | struct GNUNET_CONTAINER_MultiHashMap32; |
1084 | 1084 | ||
1085 | 1085 | ||
1086 | /** | 1086 | /** |
1087 | * @ingroup hashmap | 1087 | * @ingroup hashmap |
1088 | * Iterator over hash map entries. | 1088 | * Iterator over hash map entries. |
1089 | * | 1089 | * |
1090 | * @param cls closure | 1090 | * @param cls closure |
@@ -1100,7 +1100,7 @@ typedef int (*GNUNET_CONTAINER_HashMapIterator32) (void *cls, | |||
1100 | 1100 | ||
1101 | 1101 | ||
1102 | /** | 1102 | /** |
1103 | * @ingroup hashmap | 1103 | * @ingroup hashmap |
1104 | * Create a 32-bit key multi hash map. | 1104 | * Create a 32-bit key multi hash map. |
1105 | * | 1105 | * |
1106 | * @param len initial size (map will grow as needed) | 1106 | * @param len initial size (map will grow as needed) |
@@ -1111,7 +1111,7 @@ GNUNET_CONTAINER_multihashmap32_create (unsigned int len); | |||
1111 | 1111 | ||
1112 | 1112 | ||
1113 | /** | 1113 | /** |
1114 | * @ingroup hashmap | 1114 | * @ingroup hashmap |
1115 | * Destroy a 32-bit key hash map. Will not free any values | 1115 | * Destroy a 32-bit key hash map. Will not free any values |
1116 | * stored in the hash map! | 1116 | * stored in the hash map! |
1117 | * | 1117 | * |
@@ -1123,7 +1123,7 @@ GNUNET_CONTAINER_multihashmap32_destroy (struct GNUNET_CONTAINER_MultiHashMap32 | |||
1123 | 1123 | ||
1124 | 1124 | ||
1125 | /** | 1125 | /** |
1126 | * @ingroup hashmap | 1126 | * @ingroup hashmap |
1127 | * Get the number of key-value pairs in the map. | 1127 | * Get the number of key-value pairs in the map. |
1128 | * | 1128 | * |
1129 | * @param map the map | 1129 | * @param map the map |
@@ -1135,7 +1135,7 @@ GNUNET_CONTAINER_multihashmap32_size (const struct | |||
1135 | 1135 | ||
1136 | 1136 | ||
1137 | /** | 1137 | /** |
1138 | * @ingroup hashmap | 1138 | * @ingroup hashmap |
1139 | * Given a key find a value in the map matching the key. | 1139 | * Given a key find a value in the map matching the key. |
1140 | * | 1140 | * |
1141 | * @param map the map | 1141 | * @param map the map |
@@ -1146,13 +1146,13 @@ GNUNET_CONTAINER_multihashmap32_size (const struct | |||
1146 | * key-value pairs with value NULL | 1146 | * key-value pairs with value NULL |
1147 | */ | 1147 | */ |
1148 | void * | 1148 | void * |
1149 | GNUNET_CONTAINER_multihashmap32_get (const struct | 1149 | GNUNET_CONTAINER_multihashmap32_get (const struct |
1150 | GNUNET_CONTAINER_MultiHashMap32 *map, | 1150 | GNUNET_CONTAINER_MultiHashMap32 *map, |
1151 | uint32_t key); | 1151 | uint32_t key); |
1152 | 1152 | ||
1153 | 1153 | ||
1154 | /** | 1154 | /** |
1155 | * @ingroup hashmap | 1155 | * @ingroup hashmap |
1156 | * Iterate over all entries in the map. | 1156 | * Iterate over all entries in the map. |
1157 | * | 1157 | * |
1158 | * @param map the map | 1158 | * @param map the map |
@@ -1169,7 +1169,7 @@ GNUNET_CONTAINER_multihashmap32_iterate (const struct | |||
1169 | 1169 | ||
1170 | 1170 | ||
1171 | /** | 1171 | /** |
1172 | * @ingroup hashmap | 1172 | * @ingroup hashmap |
1173 | * Remove the given key-value pair from the map. Note that if the | 1173 | * Remove the given key-value pair from the map. Note that if the |
1174 | * key-value pair is in the map multiple times, only one of the pairs | 1174 | * key-value pair is in the map multiple times, only one of the pairs |
1175 | * will be removed. | 1175 | * will be removed. |
@@ -1182,12 +1182,12 @@ GNUNET_CONTAINER_multihashmap32_iterate (const struct | |||
1182 | */ | 1182 | */ |
1183 | int | 1183 | int |
1184 | GNUNET_CONTAINER_multihashmap32_remove (struct GNUNET_CONTAINER_MultiHashMap32 *map, | 1184 | GNUNET_CONTAINER_multihashmap32_remove (struct GNUNET_CONTAINER_MultiHashMap32 *map, |
1185 | uint32_t key, | 1185 | uint32_t key, |
1186 | const void *value); | 1186 | const void *value); |
1187 | 1187 | ||
1188 | 1188 | ||
1189 | /** | 1189 | /** |
1190 | * @ingroup hashmap | 1190 | * @ingroup hashmap |
1191 | * Remove all entries for the given key from the map. | 1191 | * Remove all entries for the given key from the map. |
1192 | * Note that the values would not be "freed". | 1192 | * Note that the values would not be "freed". |
1193 | * | 1193 | * |
@@ -1201,7 +1201,7 @@ GNUNET_CONTAINER_multihashmap32_remove_all (struct GNUNET_CONTAINER_MultiHashMap | |||
1201 | 1201 | ||
1202 | 1202 | ||
1203 | /** | 1203 | /** |
1204 | * @ingroup hashmap | 1204 | * @ingroup hashmap |
1205 | * Check if the map contains any value under the given | 1205 | * Check if the map contains any value under the given |
1206 | * key (including values that are NULL). | 1206 | * key (including values that are NULL). |
1207 | * | 1207 | * |
@@ -1216,7 +1216,7 @@ GNUNET_CONTAINER_multihashmap32_contains (const struct GNUNET_CONTAINER_MultiHas | |||
1216 | 1216 | ||
1217 | 1217 | ||
1218 | /** | 1218 | /** |
1219 | * @ingroup hashmap | 1219 | * @ingroup hashmap |
1220 | * Check if the map contains the given value under the given | 1220 | * Check if the map contains the given value under the given |
1221 | * key. | 1221 | * key. |
1222 | * | 1222 | * |
@@ -1227,13 +1227,13 @@ GNUNET_CONTAINER_multihashmap32_contains (const struct GNUNET_CONTAINER_MultiHas | |||
1227 | * #GNUNET_NO if not | 1227 | * #GNUNET_NO if not |
1228 | */ | 1228 | */ |
1229 | int | 1229 | int |
1230 | GNUNET_CONTAINER_multihashmap32_contains_value (const struct GNUNET_CONTAINER_MultiHashMap32 *map, | 1230 | GNUNET_CONTAINER_multihashmap32_contains_value (const struct GNUNET_CONTAINER_MultiHashMap32 *map, |
1231 | uint32_t key, | 1231 | uint32_t key, |
1232 | const void *value); | 1232 | const void *value); |
1233 | 1233 | ||
1234 | 1234 | ||
1235 | /** | 1235 | /** |
1236 | * @ingroup hashmap | 1236 | * @ingroup hashmap |
1237 | * Store a key-value pair in the map. | 1237 | * Store a key-value pair in the map. |
1238 | * | 1238 | * |
1239 | * @param map the map | 1239 | * @param map the map |
@@ -1246,14 +1246,14 @@ GNUNET_CONTAINER_multihashmap32_contains_value (const struct GNUNET_CONTAINER_Mu | |||
1246 | * value already exists | 1246 | * value already exists |
1247 | */ | 1247 | */ |
1248 | int | 1248 | int |
1249 | GNUNET_CONTAINER_multihashmap32_put (struct GNUNET_CONTAINER_MultiHashMap32 *map, | 1249 | GNUNET_CONTAINER_multihashmap32_put (struct GNUNET_CONTAINER_MultiHashMap32 *map, |
1250 | uint32_t key, | 1250 | uint32_t key, |
1251 | void *value, | 1251 | void *value, |
1252 | enum GNUNET_CONTAINER_MultiHashMapOption opt); | 1252 | enum GNUNET_CONTAINER_MultiHashMapOption opt); |
1253 | 1253 | ||
1254 | 1254 | ||
1255 | /** | 1255 | /** |
1256 | * @ingroup hashmap | 1256 | * @ingroup hashmap |
1257 | * Iterate over all entries in the map that match a particular key. | 1257 | * Iterate over all entries in the map that match a particular key. |
1258 | * | 1258 | * |
1259 | * @param map the map | 1259 | * @param map the map |
@@ -1264,7 +1264,7 @@ GNUNET_CONTAINER_multihashmap32_put (struct GNUNET_CONTAINER_MultiHashMap32 *map | |||
1264 | * #GNUNET_SYSERR if it aborted iteration | 1264 | * #GNUNET_SYSERR if it aborted iteration |
1265 | */ | 1265 | */ |
1266 | int | 1266 | int |
1267 | GNUNET_CONTAINER_multihashmap32_get_multiple (const struct GNUNET_CONTAINER_MultiHashMap32 *map, | 1267 | GNUNET_CONTAINER_multihashmap32_get_multiple (const struct GNUNET_CONTAINER_MultiHashMap32 *map, |
1268 | uint32_t key, | 1268 | uint32_t key, |
1269 | GNUNET_CONTAINER_HashMapIterator32 it, | 1269 | GNUNET_CONTAINER_HashMapIterator32 it, |
1270 | void *it_cls); | 1270 | void *it_cls); |
@@ -1276,7 +1276,7 @@ GNUNET_CONTAINER_multihashmap32_get_multiple (const struct GNUNET_CONTAINER_Mult | |||
1276 | /* To avoid mistakes: head->prev == tail->next == NULL */ | 1276 | /* To avoid mistakes: head->prev == tail->next == NULL */ |
1277 | 1277 | ||
1278 | /** | 1278 | /** |
1279 | * @ingroup dll | 1279 | * @ingroup dll |
1280 | * Insert an element at the head of a DLL. Assumes that head, tail and | 1280 | * Insert an element at the head of a DLL. Assumes that head, tail and |
1281 | * element are structs with prev and next fields. | 1281 | * element are structs with prev and next fields. |
1282 | * | 1282 | * |
@@ -1297,7 +1297,7 @@ GNUNET_CONTAINER_multihashmap32_get_multiple (const struct GNUNET_CONTAINER_Mult | |||
1297 | 1297 | ||
1298 | 1298 | ||
1299 | /** | 1299 | /** |
1300 | * @ingroup dll | 1300 | * @ingroup dll |
1301 | * Insert an element at the tail of a DLL. Assumes that head, tail and | 1301 | * Insert an element at the tail of a DLL. Assumes that head, tail and |
1302 | * element are structs with prev and next fields. | 1302 | * element are structs with prev and next fields. |
1303 | * | 1303 | * |
@@ -1318,7 +1318,7 @@ GNUNET_CONTAINER_multihashmap32_get_multiple (const struct GNUNET_CONTAINER_Mult | |||
1318 | 1318 | ||
1319 | 1319 | ||
1320 | /** | 1320 | /** |
1321 | * @ingroup dll | 1321 | * @ingroup dll |
1322 | * Insert an element into a DLL after the given other element. Insert | 1322 | * Insert an element into a DLL after the given other element. Insert |
1323 | * at the head if the other element is NULL. | 1323 | * at the head if the other element is NULL. |
1324 | * | 1324 | * |
@@ -1348,7 +1348,7 @@ GNUNET_CONTAINER_multihashmap32_get_multiple (const struct GNUNET_CONTAINER_Mult | |||
1348 | 1348 | ||
1349 | 1349 | ||
1350 | /** | 1350 | /** |
1351 | * @ingroup dll | 1351 | * @ingroup dll |
1352 | * Insert an element into a DLL before the given other element. Insert | 1352 | * Insert an element into a DLL before the given other element. Insert |
1353 | * at the tail if the other element is NULL. | 1353 | * at the tail if the other element is NULL. |
1354 | * | 1354 | * |
@@ -1378,7 +1378,7 @@ GNUNET_CONTAINER_multihashmap32_get_multiple (const struct GNUNET_CONTAINER_Mult | |||
1378 | 1378 | ||
1379 | 1379 | ||
1380 | /** | 1380 | /** |
1381 | * @ingroup dll | 1381 | * @ingroup dll |
1382 | * Remove an element from a DLL. Assumes that head, tail and | 1382 | * Remove an element from a DLL. Assumes that head, tail and |
1383 | * element point to structs with prev and next fields. | 1383 | * element point to structs with prev and next fields. |
1384 | * | 1384 | * |
@@ -1410,7 +1410,7 @@ GNUNET_CONTAINER_multihashmap32_get_multiple (const struct GNUNET_CONTAINER_Mult | |||
1410 | in multiple lists at the same time *********************** */ | 1410 | in multiple lists at the same time *********************** */ |
1411 | 1411 | ||
1412 | /** | 1412 | /** |
1413 | * @ingroup dll | 1413 | * @ingroup dll |
1414 | * Insert an element at the head of a MDLL. Assumes that head, tail and | 1414 | * Insert an element at the head of a MDLL. Assumes that head, tail and |
1415 | * element are structs with prev and next fields. | 1415 | * element are structs with prev and next fields. |
1416 | * | 1416 | * |
@@ -1432,7 +1432,7 @@ GNUNET_CONTAINER_multihashmap32_get_multiple (const struct GNUNET_CONTAINER_Mult | |||
1432 | 1432 | ||
1433 | 1433 | ||
1434 | /** | 1434 | /** |
1435 | * @ingroup dll | 1435 | * @ingroup dll |
1436 | * Insert an element at the tail of a MDLL. Assumes that head, tail and | 1436 | * Insert an element at the tail of a MDLL. Assumes that head, tail and |
1437 | * element are structs with prev and next fields. | 1437 | * element are structs with prev and next fields. |
1438 | * | 1438 | * |
@@ -1454,7 +1454,7 @@ GNUNET_CONTAINER_multihashmap32_get_multiple (const struct GNUNET_CONTAINER_Mult | |||
1454 | 1454 | ||
1455 | 1455 | ||
1456 | /** | 1456 | /** |
1457 | * @ingroup dll | 1457 | * @ingroup dll |
1458 | * Insert an element into a MDLL after the given other element. Insert | 1458 | * Insert an element into a MDLL after the given other element. Insert |
1459 | * at the head if the other element is NULL. | 1459 | * at the head if the other element is NULL. |
1460 | * | 1460 | * |
@@ -1485,7 +1485,7 @@ GNUNET_CONTAINER_multihashmap32_get_multiple (const struct GNUNET_CONTAINER_Mult | |||
1485 | 1485 | ||
1486 | 1486 | ||
1487 | /** | 1487 | /** |
1488 | * @ingroup dll | 1488 | * @ingroup dll |
1489 | * Insert an element into a MDLL before the given other element. Insert | 1489 | * Insert an element into a MDLL before the given other element. Insert |
1490 | * at the tail if the other element is NULL. | 1490 | * at the tail if the other element is NULL. |
1491 | * | 1491 | * |
@@ -1516,7 +1516,7 @@ GNUNET_CONTAINER_multihashmap32_get_multiple (const struct GNUNET_CONTAINER_Mult | |||
1516 | 1516 | ||
1517 | 1517 | ||
1518 | /** | 1518 | /** |
1519 | * @ingroup dll | 1519 | * @ingroup dll |
1520 | * Remove an element from a MDLL. Assumes | 1520 | * Remove an element from a MDLL. Assumes |
1521 | * that head, tail and element are structs | 1521 | * that head, tail and element are structs |
1522 | * with prev and next fields. | 1522 | * with prev and next fields. |