diff options
Diffstat (limited to 'src/include/gnunet_mst_lib.h')
-rw-r--r-- | src/include/gnunet_mst_lib.h | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/include/gnunet_mst_lib.h b/src/include/gnunet_mst_lib.h index 9f3431b98..5b848bbd6 100644 --- a/src/include/gnunet_mst_lib.h +++ b/src/include/gnunet_mst_lib.h | |||
@@ -19,6 +19,13 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @addtogroup libgnunetutil | ||
23 | * Multi-function utilities library for GNUnet programs | ||
24 | * @{ | ||
25 | * | ||
26 | * @addtogroup networking | ||
27 | * @{ | ||
28 | * | ||
22 | * @author Christian Grothoff | 29 | * @author Christian Grothoff |
23 | * | 30 | * |
24 | * @file | 31 | * @file |
@@ -32,6 +39,10 @@ | |||
32 | * @{ | 39 | * @{ |
33 | */ | 40 | */ |
34 | 41 | ||
42 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
43 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
44 | #endif | ||
45 | |||
35 | #ifndef GNUNET_MST_LIB_H | 46 | #ifndef GNUNET_MST_LIB_H |
36 | #define GNUNET_MST_LIB_H | 47 | #define GNUNET_MST_LIB_H |
37 | 48 | ||
@@ -43,8 +54,6 @@ extern "C" | |||
43 | #endif | 54 | #endif |
44 | #endif | 55 | #endif |
45 | 56 | ||
46 | #include "gnunet_common.h" | ||
47 | |||
48 | 57 | ||
49 | /** | 58 | /** |
50 | * Handle to a message stream tokenizer. | 59 | * Handle to a message stream tokenizer. |
@@ -96,7 +105,7 @@ GNUNET_MST_create (GNUNET_MessageTokenizerCallback cb, | |||
96 | * #GNUNET_NO if one_shot was set and we have another message ready | 105 | * #GNUNET_NO if one_shot was set and we have another message ready |
97 | * #GNUNET_SYSERR if the data stream is corrupt | 106 | * #GNUNET_SYSERR if the data stream is corrupt |
98 | */ | 107 | */ |
99 | int | 108 | enum GNUNET_GenericReturnValue |
100 | GNUNET_MST_from_buffer (struct GNUNET_MessageStreamTokenizer *mst, | 109 | GNUNET_MST_from_buffer (struct GNUNET_MessageStreamTokenizer *mst, |
101 | const char *buf, | 110 | const char *buf, |
102 | size_t size, | 111 | size_t size, |
@@ -118,7 +127,7 @@ GNUNET_MST_from_buffer (struct GNUNET_MessageStreamTokenizer *mst, | |||
118 | * #GNUNET_NO if one_shot was set and we have another message ready | 127 | * #GNUNET_NO if one_shot was set and we have another message ready |
119 | * #GNUNET_SYSERR if the data stream is corrupt | 128 | * #GNUNET_SYSERR if the data stream is corrupt |
120 | */ | 129 | */ |
121 | int | 130 | enum GNUNET_GenericReturnValue |
122 | GNUNET_MST_read (struct GNUNET_MessageStreamTokenizer *mst, | 131 | GNUNET_MST_read (struct GNUNET_MessageStreamTokenizer *mst, |
123 | struct GNUNET_NETWORK_Handle *sock, | 132 | struct GNUNET_NETWORK_Handle *sock, |
124 | int purge, | 133 | int purge, |
@@ -136,7 +145,7 @@ GNUNET_MST_read (struct GNUNET_MessageStreamTokenizer *mst, | |||
136 | * #GNUNET_NO if one_shot was set and we have another message ready | 145 | * #GNUNET_NO if one_shot was set and we have another message ready |
137 | * #GNUNET_SYSERR if the data stream is corrupt | 146 | * #GNUNET_SYSERR if the data stream is corrupt |
138 | */ | 147 | */ |
139 | int | 148 | enum GNUNET_GenericReturnValue |
140 | GNUNET_MST_next (struct GNUNET_MessageStreamTokenizer *mst, | 149 | GNUNET_MST_next (struct GNUNET_MessageStreamTokenizer *mst, |
141 | int one_shot); | 150 | int one_shot); |
142 | 151 | ||
@@ -161,4 +170,8 @@ GNUNET_MST_destroy (struct GNUNET_MessageStreamTokenizer *mst); | |||
161 | 170 | ||
162 | /** @} */ /* end of group server */ | 171 | /** @} */ /* end of group server */ |
163 | 172 | ||
173 | /** @} */ /* end of group addition to networking */ | ||
174 | |||
175 | /** @} */ /* end of group addition to libgnunetutil*/ | ||
176 | |||
164 | /* end of gnunet_mst_lib.h */ | 177 | /* end of gnunet_mst_lib.h */ |