diff options
Diffstat (limited to 'src/set/mq.h')
-rw-r--r-- | src/set/mq.h | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/src/set/mq.h b/src/set/mq.h index 3d8be789d..371bb5846 100644 --- a/src/set/mq.h +++ b/src/set/mq.h | |||
@@ -58,20 +58,7 @@ | |||
58 | */ | 58 | */ |
59 | #define GNUNET_MQ_msg(mvar, type) GNUNET_MQ_msg_extra(mvar, 0, type) | 59 | #define GNUNET_MQ_msg(mvar, type) GNUNET_MQ_msg_extra(mvar, 0, type) |
60 | 60 | ||
61 | /** | 61 | #define GNUNET_MQ_nest(mqm, mh) GNUNET_MQ_nest_ (&mqm, mh) |
62 | * Allocate a GNUNET_MQ_Message, and concatenate another message | ||
63 | * after the space needed by the message struct. | ||
64 | * // nest? | ||
65 | * | ||
66 | * @param mvar variable to store the allocated message in; | ||
67 | * must have a header field | ||
68 | * @param mc message to concatenate, can be NULL | ||
69 | * @param type type of the message | ||
70 | * @return the MQ message, NULL if mc is to large to be concatenated | ||
71 | */ | ||
72 | #define GNUNET_MQ_msg_concat(mvar, mc, t) GNUNET_MQ_msg_concat_(((void) mvar->header, (struct GNUNET_MessageHeader **) &(mvar)), \ | ||
73 | sizeof *mvar, (struct GNUNET_MessageHeader *) mc, t) | ||
74 | |||
75 | 62 | ||
76 | /** | 63 | /** |
77 | * Allocate a GNUNET_MQ_Message, where the message only consists of a header. | 64 | * Allocate a GNUNET_MQ_Message, where the message only consists of a header. |
@@ -157,14 +144,9 @@ struct GNUNET_MQ_Message * | |||
157 | GNUNET_MQ_msg_ (struct GNUNET_MessageHeader **mhp, uint16_t size, uint16_t type); | 144 | GNUNET_MQ_msg_ (struct GNUNET_MessageHeader **mhp, uint16_t size, uint16_t type); |
158 | 145 | ||
159 | 146 | ||
160 | /** | 147 | int |
161 | * Create a new message for MQ, by concatenating another message | 148 | GNUNET_MQ_nest_ (struct GNUNET_MQ_Message **mqmp, |
162 | * after a message of the specified type. | 149 | const struct GNUNET_MessageHeader *m); |
163 | * | ||
164 | * @retrn the allocated MQ message | ||
165 | */ | ||
166 | struct GNUNET_MQ_Message * | ||
167 | GNUNET_MQ_msg_concat_ (struct GNUNET_MessageHeader **mhp, uint16_t base_size, struct GNUNET_MessageHeader *m, uint16_t type); | ||
168 | 150 | ||
169 | 151 | ||
170 | /** | 152 | /** |