Skip to content
This repository was archived by the owner on Oct 29, 2021. It is now read-only.

Commit 717a198

Browse files
committed
doc: describe parameters to suppress doxygen warnings
1 parent 209f219 commit 717a198

4 files changed

Lines changed: 17 additions & 0 deletions

File tree

src/rand.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@
2222
typedef struct _xmpp_rand_t xmpp_rand_t;
2323

2424
/** Create new xmpp_rand_t object.
25+
*
26+
* @param ctx A Strophe context object
2527
*
2628
* @ingroup Random
2729
*/
2830
xmpp_rand_t *xmpp_rand_new(xmpp_ctx_t *ctx);
2931
/** Destroy an xmpp_rand_t object.
32+
*
33+
* @param ctx A Strophe context object
3034
*
3135
* @ingroup Random
3236
*/
@@ -47,7 +51,10 @@ int xmpp_rand(xmpp_rand_t *rand);
4751
void xmpp_rand_bytes(xmpp_rand_t *rand, unsigned char *output, size_t len);
4852

4953
/** Generate a nonce that is printable randomized string.
54+
* This function doesn't allocate memory and doesn't fail.
5055
*
56+
* @param output A buffer where a NULL-terminated string will be placed.
57+
* The string will contain len-1 printable symbols.
5158
* @param len Number of bytes reserved for the output string, including
5259
* end of line '\0'.
5360
*

src/resolver.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ typedef struct resolver_srv_rr_struc {
3636
/** Perform lookup for RFC1035 message format.
3737
* This function allocates all elements.
3838
*
39+
* @param ctx a Strophe context object
3940
* @param buf message in RFC1035 format
4041
* @param len length of the message
4142
* @param srv_rr_list is the result
@@ -46,6 +47,7 @@ int resolver_srv_lookup_buf(xmpp_ctx_t *ctx, const unsigned char *buf,
4647
size_t len, resolver_srv_rr_t **srv_rr_list);
4748
/** Resolve SRV record.
4849
*
50+
* @param ctx a Strophe context object
4951
* @param service service of the SRV record
5052
* @param proto protocol of the SRV record
5153
* @param domain resolving domain
@@ -59,6 +61,7 @@ int resolver_srv_lookup(xmpp_ctx_t *ctx, const char *service, const char *proto,
5961
/** Release a list returned by resolver_srv_lookup() or
6062
* resolver_srv_lookup_buf().
6163
*
64+
* @param ctx a Strophe context object
6265
* @param srv_rr_list a list allocated by lookup functions
6366
*/
6467
void resolver_srv_free(xmpp_ctx_t *ctx, resolver_srv_rr_t *srv_rr_list);

src/stanza.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,7 @@ _stanza_new_with_attrs(xmpp_ctx_t *ctx, const char * const name,
11011101
/** Create a <message/> stanza object with given attributes.
11021102
* Attributes are optional and may be NULL.
11031103
*
1104+
* @param ctx a Strophe context object
11041105
* @param type attribute 'type'
11051106
* @param to attribute 'to'
11061107
* @param id attribute 'id'
@@ -1187,6 +1188,7 @@ int xmpp_message_set_body(xmpp_stanza_t *msg, const char * const text)
11871188
/** Create an <iq/> stanza object with given attributes.
11881189
* Attributes are optional and may be NULL.
11891190
*
1191+
* @param ctx a Strophe context object
11901192
* @param type attribute 'type'
11911193
* @param id attribute 'id'
11921194
*
@@ -1201,6 +1203,8 @@ xmpp_stanza_t *xmpp_iq_new(xmpp_ctx_t *ctx, const char * const type,
12011203
}
12021204

12031205
/** Create a <presence/> stanza object.
1206+
*
1207+
* @param ctx a Strophe context object
12041208
*
12051209
* @return a new Strophe stanza object
12061210
*

src/uuid.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
/** Generate UUID version 4 in pre-allocated buffer.
2626
*
27+
* @param ctx a Strophe context object
2728
* @param uuid pre-allocated buffer of size (XMPP_UUID_LEN + 1)
2829
*/
2930
static void crypto_uuid_gen(xmpp_ctx_t *ctx, char *uuid)
@@ -56,6 +57,8 @@ static void crypto_uuid_gen(xmpp_ctx_t *ctx, char *uuid)
5657
* This function allocates memory for the resulting string and must be freed
5758
* with xmpp_free().
5859
*
60+
* @param ctx a Strophe context object
61+
*
5962
* @return ASCIIZ string
6063
*/
6164
char *xmpp_uuid_gen(xmpp_ctx_t *ctx)

0 commit comments

Comments
 (0)