diff options
Diffstat (limited to 'src/core/gnunet-service-core_typemap.h')
-rw-r--r-- | src/core/gnunet-service-core_typemap.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/core/gnunet-service-core_typemap.h b/src/core/gnunet-service-core_typemap.h index 7b4f8d0f1..0fdb918f3 100644 --- a/src/core/gnunet-service-core_typemap.h +++ b/src/core/gnunet-service-core_typemap.h | |||
@@ -11,12 +11,12 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file core/gnunet-service-core_typemap.h | 22 | * @file core/gnunet-service-core_typemap.h |
@@ -42,8 +42,8 @@ struct GSC_TypeMap; | |||
42 | * @param tlen number of entries in @a types | 42 | * @param tlen number of entries in @a types |
43 | */ | 43 | */ |
44 | void | 44 | void |
45 | GSC_TYPEMAP_add (const uint16_t *types, | 45 | GSC_TYPEMAP_add(const uint16_t *types, |
46 | unsigned int tlen); | 46 | unsigned int tlen); |
47 | 47 | ||
48 | 48 | ||
49 | /** | 49 | /** |
@@ -53,8 +53,8 @@ GSC_TYPEMAP_add (const uint16_t *types, | |||
53 | * @param tlen number of entries in @a types | 53 | * @param tlen number of entries in @a types |
54 | */ | 54 | */ |
55 | void | 55 | void |
56 | GSC_TYPEMAP_remove (const uint16_t *types, | 56 | GSC_TYPEMAP_remove(const uint16_t *types, |
57 | unsigned int tlen); | 57 | unsigned int tlen); |
58 | 58 | ||
59 | 59 | ||
60 | /** | 60 | /** |
@@ -63,7 +63,7 @@ GSC_TYPEMAP_remove (const uint16_t *types, | |||
63 | * @return this peers current type map message. | 63 | * @return this peers current type map message. |
64 | */ | 64 | */ |
65 | struct GNUNET_MessageHeader * | 65 | struct GNUNET_MessageHeader * |
66 | GSC_TYPEMAP_compute_type_map_message (void); | 66 | GSC_TYPEMAP_compute_type_map_message(void); |
67 | 67 | ||
68 | 68 | ||
69 | /** | 69 | /** |
@@ -73,7 +73,7 @@ GSC_TYPEMAP_compute_type_map_message (void); | |||
73 | * @return #GNUNET_YES if the hash matches, #GNUNET_NO if not | 73 | * @return #GNUNET_YES if the hash matches, #GNUNET_NO if not |
74 | */ | 74 | */ |
75 | int | 75 | int |
76 | GSC_TYPEMAP_check_hash (const struct GNUNET_HashCode *hc); | 76 | GSC_TYPEMAP_check_hash(const struct GNUNET_HashCode *hc); |
77 | 77 | ||
78 | 78 | ||
79 | /** | 79 | /** |
@@ -83,8 +83,8 @@ GSC_TYPEMAP_check_hash (const struct GNUNET_HashCode *hc); | |||
83 | * @param hc where to store the hash code | 83 | * @param hc where to store the hash code |
84 | */ | 84 | */ |
85 | void | 85 | void |
86 | GSC_TYPEMAP_hash (const struct GSC_TypeMap *tm, | 86 | GSC_TYPEMAP_hash(const struct GSC_TypeMap *tm, |
87 | struct GNUNET_HashCode *hc); | 87 | struct GNUNET_HashCode *hc); |
88 | 88 | ||
89 | 89 | ||
90 | /** | 90 | /** |
@@ -96,7 +96,7 @@ GSC_TYPEMAP_hash (const struct GSC_TypeMap *tm, | |||
96 | * @return NULL on error | 96 | * @return NULL on error |
97 | */ | 97 | */ |
98 | struct GSC_TypeMap * | 98 | struct GSC_TypeMap * |
99 | GSC_TYPEMAP_get_from_message (const struct GNUNET_MessageHeader *msg); | 99 | GSC_TYPEMAP_get_from_message(const struct GNUNET_MessageHeader *msg); |
100 | 100 | ||
101 | 101 | ||
102 | /** | 102 | /** |
@@ -109,9 +109,9 @@ GSC_TYPEMAP_get_from_message (const struct GNUNET_MessageHeader *msg); | |||
109 | * @return #GNUNET_YES if a type is in the map, #GNUNET_NO if not | 109 | * @return #GNUNET_YES if a type is in the map, #GNUNET_NO if not |
110 | */ | 110 | */ |
111 | int | 111 | int |
112 | GSC_TYPEMAP_test_match (const struct GSC_TypeMap *tmap, | 112 | GSC_TYPEMAP_test_match(const struct GSC_TypeMap *tmap, |
113 | const uint16_t *types, | 113 | const uint16_t *types, |
114 | unsigned int tcnt); | 114 | unsigned int tcnt); |
115 | 115 | ||
116 | 116 | ||
117 | /** | 117 | /** |
@@ -123,9 +123,9 @@ GSC_TYPEMAP_test_match (const struct GSC_TypeMap *tmap, | |||
123 | * @return updated type map (fresh copy) | 123 | * @return updated type map (fresh copy) |
124 | */ | 124 | */ |
125 | struct GSC_TypeMap * | 125 | struct GSC_TypeMap * |
126 | GSC_TYPEMAP_extend (const struct GSC_TypeMap *tmap, | 126 | GSC_TYPEMAP_extend(const struct GSC_TypeMap *tmap, |
127 | const uint16_t *types, | 127 | const uint16_t *types, |
128 | unsigned int tcnt); | 128 | unsigned int tcnt); |
129 | 129 | ||
130 | 130 | ||
131 | /** | 131 | /** |
@@ -134,7 +134,7 @@ GSC_TYPEMAP_extend (const struct GSC_TypeMap *tmap, | |||
134 | * @return an empty type map | 134 | * @return an empty type map |
135 | */ | 135 | */ |
136 | struct GSC_TypeMap * | 136 | struct GSC_TypeMap * |
137 | GSC_TYPEMAP_create (void); | 137 | GSC_TYPEMAP_create(void); |
138 | 138 | ||
139 | 139 | ||
140 | /** | 140 | /** |
@@ -143,21 +143,21 @@ GSC_TYPEMAP_create (void); | |||
143 | * @param tmap a type map | 143 | * @param tmap a type map |
144 | */ | 144 | */ |
145 | void | 145 | void |
146 | GSC_TYPEMAP_destroy (struct GSC_TypeMap *tmap); | 146 | GSC_TYPEMAP_destroy(struct GSC_TypeMap *tmap); |
147 | 147 | ||
148 | 148 | ||
149 | /** | 149 | /** |
150 | * Initialize typemap subsystem. | 150 | * Initialize typemap subsystem. |
151 | */ | 151 | */ |
152 | void | 152 | void |
153 | GSC_TYPEMAP_init (void); | 153 | GSC_TYPEMAP_init(void); |
154 | 154 | ||
155 | 155 | ||
156 | /** | 156 | /** |
157 | * Shutdown typemap subsystem. | 157 | * Shutdown typemap subsystem. |
158 | */ | 158 | */ |
159 | void | 159 | void |
160 | GSC_TYPEMAP_done (void); | 160 | GSC_TYPEMAP_done(void); |
161 | 161 | ||
162 | #endif | 162 | #endif |
163 | /* end of gnunet-service-core_typemap.h */ | 163 | /* end of gnunet-service-core_typemap.h */ |