Skip to content

Commit e1ea6f4

Browse files
Fix some warnings from doxygen.
Some trailing-whitespace changes are not documented below. * docs/doxygen.conf (DOT_GRAPH_MAX_NODES): Add option. Doxygen 1.9 default is 50 but some headers need more nodes. * include/apr_general.h, include/apr_random.h (@defgroup apr_random): Unify title to PRNG Functions. * include/apr_ldap.h (apr_ldap_prepare): Remove non-existing @param err. * include/apr_memcache.h (apr_memcache_add_multget_key): Remove empty @return for void function. * include/apr_network_io.h (apr_sockaddr_ip_getbuf): Document @param buf and @param buflen. * include/apr_rmm.h (apr_rmm_init): Use @A to decorate parameters in text. * include/apr_thread_proc.h (apr_child_errfn_t): Rename parameter proc to pool to better reflect content. (apr_thread_current): Change from @param to @return for the return value. (apr_thread_name_get): Use @A to decorate parameters in text. Change the documented name of the third parameter to match declaration. (apr_thread_name_set): Use @A to decorate parameters in text. Change the documented name of the third parameter to match declaration. * include/private/apr_encode_private.h (@defgroup APR_Util_Encode_Private): Add a title to the group. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1927700 13f79535-47bb-0310-9956-ffa450edef68
1 parent 5514c1a commit e1ea6f4

File tree

9 files changed

+42
-44
lines changed

9 files changed

+42
-44
lines changed

docs/doxygen.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ EXCLUDE_PATTERNS="*/acconfig.h" \
4141

4242
GENERATE_TAGFILE=docs/dox/apr.tag
4343

44+
DOT_GRAPH_MAX_NODES=99

include/apr_general.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ APR_DECLARE(void) apr_terminate2(void);
239239
/** @} */
240240

241241
/**
242-
* @defgroup apr_random Random Functions
242+
* @defgroup apr_random PRNG Functions
243243
* @{
244244
*/
245245

include/apr_ldap.h

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ typedef struct apr_ldap_url_desc_t {
124124
* @see apr_ldap_url_parse()
125125
*/
126126
#define APR_LDAP_URL_ERR_MEM 0x01
127-
/**
127+
/**
128128
* Parameter is bad
129129
* @see apr_ldap_url_parse()
130130
*/
@@ -134,37 +134,37 @@ typedef struct apr_ldap_url_desc_t {
134134
* @see apr_ldap_url_parse()
135135
*/
136136
#define APR_LDAP_URL_ERR_BADSCHEME 0x03
137-
/**
137+
/**
138138
* URL is missing trailing ">"
139139
* @see apr_ldap_url_parse()
140140
*/
141141
#define APR_LDAP_URL_ERR_BADENCLOSURE 0x04
142-
/**
142+
/**
143143
* URL is bad
144144
* @see apr_ldap_url_parse()
145145
*/
146146
#define APR_LDAP_URL_ERR_BADURL 0x05
147-
/**
147+
/**
148148
* Host port is bad
149149
* @see apr_ldap_url_parse()
150150
*/
151151
#define APR_LDAP_URL_ERR_BADHOST 0x06
152-
/**
152+
/**
153153
* Bad (or missing) attributes
154154
* @see apr_ldap_url_parse()
155155
*/
156156
#define APR_LDAP_URL_ERR_BADATTRS 0x07
157-
/**
157+
/**
158158
* Scope string is invalid (or missing)
159159
* @see apr_ldap_url_parse()
160160
*/
161161
#define APR_LDAP_URL_ERR_BADSCOPE 0x08
162-
/**
162+
/**
163163
* Bad or missing filter
164164
* @see apr_ldap_url_parse()
165165
*/
166166
#define APR_LDAP_URL_ERR_BADFILTER 0x09
167-
/**
167+
/**
168168
* Bad or missing extensions
169169
* @see apr_ldap_url_parse()
170170
*/
@@ -459,7 +459,7 @@ typedef enum {
459459

460460
/**
461461
* LDAP deref settings
462-
*
462+
*
463463
* @see apr_ldap_option_set
464464
* @see APR_LDAP_OPT_DEREF
465465
*/
@@ -472,7 +472,7 @@ typedef enum {
472472

473473
/**
474474
* LDAP options on or off
475-
*
475+
*
476476
* @see apr_ldap_option_set
477477
* @see APR_LDAP_OPT_REFERRALS
478478
*/
@@ -808,7 +808,7 @@ typedef union apr_ldap_opt_t {
808808
* Timeouts
809809
*
810810
* @see APR_LDAP_OPT_NETWORK_TIMEOUT
811-
* @see APR_LDAP_OPT_TIMEOUT
811+
* @see APR_LDAP_OPT_TIMEOUT
812812
*/
813813
apr_interval_time_t timeout;
814814
/**
@@ -877,7 +877,7 @@ typedef union apr_ldap_opt_t {
877877
* @see APR_LDAP_OPT_PROTOCOL_VERSION
878878
* @see APR_LDAP_OPT_REFERRALS
879879
* @see APR_LDAP_OPT_REFHOPLIMIT
880-
* @see APR_LDAP_OPT_RESULT_CODE
880+
* @see APR_LDAP_OPT_RESULT_CODE
881881
* @see APR_LDAP_OPT_TIMEOUT
882882
*/
883883
APU_DECLARE_LDAP(apr_status_t) apr_ldap_option_get(apr_pool_t *pool, apr_ldap_t *ldap,
@@ -1183,7 +1183,7 @@ typedef struct apr_ldap_bind_interact_t {
11831183
*
11841184
* @see apr_ldap_bind_interact_t
11851185
* @see apr_ldap_bind
1186-
*/
1186+
*/
11871187
typedef apr_status_t (apr_ldap_bind_interact_cb)(
11881188
apr_ldap_t *ld, unsigned int flags, apr_ldap_bind_interact_t *interact, void *ctx);
11891189

@@ -1208,8 +1208,8 @@ typedef apr_status_t (apr_ldap_rebind_proc)(
12081208

12091209

12101210
/**
1211-
* APR LDAP connect function.
1212-
*
1211+
* APR LDAP connect function.
1212+
*
12131213
* This function makes an attempt to connect to the server initialised
12141214
* by apr_ldap_initialise().
12151215
*
@@ -1245,7 +1245,7 @@ APU_DECLARE_LDAP(apr_status_t) apr_ldap_connect(apr_pool_t *pool,
12451245
*/
12461246
typedef apr_status_t (*apr_ldap_prepare_cb)(apr_ldap_t *ldap, apr_status_t status,
12471247
void *ctx, apu_err_t *err);
1248-
1248+
12491249

12501250
/**
12511251
* APR LDAP prepare function
@@ -1265,7 +1265,6 @@ typedef apr_status_t (*apr_ldap_prepare_cb)(apr_ldap_t *ldap, apr_status_t statu
12651265
* next called this callback will be triggered in the expectation of the next
12661266
* LDAP request.
12671267
* @param prepare_ctx Context passed to the prepare callback.
1268-
* @param err Error structure for reporting detailed results.
12691268
*
12701269
* @return APR_SUCCESS means the callback was successfully prepared. Other error
12711270
* codes indicate that the attept to send the cancellation was not successful.
@@ -1321,7 +1320,7 @@ APU_DECLARE_LDAP(apr_status_t) apr_ldap_process(apr_pool_t *pool,
13211320
* @return APR_WANT_WRITE means that at least one further process is outstanding
13221321
* and a further write callback should be scheduled. APR_WANTS_READ indicates
13231322
* more responses are expected and we're waiting for the response. APR_SUCCESS
1324-
* means that no further processing is needed. Other error codes indicate that
1323+
* means that no further processing is needed. Other error codes indicate that
13251324
* the processing of outstanding conversations was not successful.
13261325
*/
13271326
APU_DECLARE_LDAP(apr_status_t) apr_ldap_result(apr_pool_t *pool,
@@ -1355,7 +1354,7 @@ APU_DECLARE_LDAP(apr_status_t) apr_ldap_poll(apr_pool_t *pool,
13551354
__attribute__((nonnull(1,2,3,5)));
13561355

13571356

1358-
/**
1357+
/**
13591358
* Callback to receive the results of a bind operation.
13601359
*
13611360
* When a bind is successful, this function is called with a status of
@@ -1381,17 +1380,17 @@ APU_DECLARE_LDAP(apr_status_t) apr_ldap_poll(apr_pool_t *pool,
13811380
* @see apr_ldap_bind
13821381
* @see apr_ldap_process
13831382
* @see apr_ldap_result
1384-
*/
1383+
*/
13851384
typedef apr_status_t (*apr_ldap_bind_cb)(apr_ldap_t *ldap, apr_status_t status,
13861385
const char *matcheddn,
13871386
apr_ldap_control_t **serverctrls,
13881387
void *ctx, apu_err_t *err);
13891388

13901389

13911390
#if 0
1392-
/**
1391+
/**
13931392
* Function called to report cancel results.
1394-
*/
1393+
*/
13951394
typedef void (*apr_ldap_cancel_cb)(apr_ldap_t *ldap, apr_ldap_message_t *msg, void *ctx);
13961395

13971396
/**
@@ -1528,7 +1527,7 @@ typedef apr_status_t (*apr_ldap_compare_cb)(apr_ldap_t *ldap, apr_status_t statu
15281527
* apr_ldap_compare_cb provided.
15291528
*
15301529
* @param pool The pool that keeps track of the lifetime of the compare conversation.
1531-
* If this pool is cleaned up, the compare conversation will be gracefully
1530+
* If this pool is cleaned up, the compare conversation will be gracefully
15321531
* abandoned without affecting other LDAP requests in progress. This pool need
15331532
* not have any relationship with the LDAP connection pool.
15341533
* @param ldap The ldap handle
@@ -1538,7 +1537,7 @@ typedef apr_status_t (*apr_ldap_compare_cb)(apr_ldap_t *ldap, apr_status_t statu
15381537
* terminated text, or binary.
15391538
* @param serverctrls NULL terminated array of server controls.
15401539
* @param clientctrls NULL terminated array of client controls.
1541-
* @param timeout The timeout to use for writes.
1540+
* @param timeout The timeout to use for writes.
15421541
* @param compare_cb The compare result callback function. When the compare process has
15431542
* completed the success or failure of the compare is returned here. The callback
15441543
* is triggered from inside apr_ldap_process() so that it is safe to write the
@@ -1646,7 +1645,7 @@ typedef struct apr_ldap_search_entry_t {
16461645
* and then once for each entry to indicate the entry is complete.
16471646
*
16481647
* When complete, return APR_SUCCESS to indicate you want to continue, or
1649-
* a different code if you want the event loop to give up. This code will
1648+
* a different code if you want the event loop to give up. This code will
16501649
* be returned from apr_ldap_result().
16511650
*
16521651
* @see apr_ldap_search
@@ -1660,9 +1659,9 @@ typedef apr_status_t (*apr_ldap_search_entry_cb)(apr_ldap_t *ldap, const char *d
16601659

16611660
/**
16621661
* APR LDAP search function
1663-
*
1662+
*
16641663
* This function searches a previously initialised LDAP connection to the directory.
1665-
*
1664+
*
16661665
* Searches are attempted asynchronously. For non blocking behaviour, this function
16671666
* must be called after the underlying socket has indicated that it is ready to
16681667
* write.
@@ -2235,4 +2234,3 @@ APU_DECLARE_LDAP(apr_status_t) apr_ldap_unbind(apr_ldap_t *ldap,
22352234
#endif /* APU_HAS_LDAP */
22362235
/** @} */
22372236
#endif /* APU_LDAP_H */
2238-

include/apr_memcache.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ APR_DECLARE(apr_status_t) apr_memcache_getp(apr_memcache_t *mc,
288288
* @param data_pool pool from where the hash and their items are created from
289289
* @param key null terminated string containing the key
290290
* @param values hash of keys and values that this key will be added to
291-
* @return
292291
*/
293292
APR_DECLARE(void) apr_memcache_add_multget_key(apr_pool_t *data_pool,
294293
const char* key,

include/apr_network_io.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,9 @@ APR_DECLARE(apr_status_t) apr_sockaddr_ip_get(char **addr,
779779
/**
780780
* Write the IP address (in numeric address string format) of the APR
781781
* socket address @a sockaddr into the buffer @a buf (of size @a buflen).
782+
* @param buf A buffer to store the IP address in.
783+
* @param buflen The length of @a buf. Must be enough to store the IP address,
784+
* otherwise APR_ENOSPC will be returned.
782785
* @param sockaddr The socket address to reference.
783786
*/
784787
APR_DECLARE(apr_status_t) apr_sockaddr_ip_getbuf(char *buf, apr_size_t buflen,
@@ -954,4 +957,3 @@ APR_DECLARE(apr_status_t) apr_mcast_interface(apr_socket_t *sock,
954957
#endif
955958

956959
#endif /* ! APR_NETWORK_IO_H */
957-

include/apr_random.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extern "C" {
3030
#endif /* __cplusplus */
3131

3232
/**
33-
* @defgroup apr_random PRNG Routines
33+
* @defgroup apr_random PRNG Functions
3434
* @ingroup APR
3535
* @{
3636
*/

include/apr_rmm.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ typedef apr_size_t apr_rmm_off_t;
5050
* @param membuf The block of relocatable memory to be managed
5151
* @param memsize The size of relocatable memory block to be managed
5252
* @param cont The pool to use for local storage and management
53-
* @remark Both @param membuf and @param memsize must be aligned
53+
* @remark Both @a membuf and @a memsize must be aligned
5454
* (for instance using APR_ALIGN_DEFAULT).
5555
*/
5656
APR_DECLARE(apr_status_t) apr_rmm_init(apr_rmm_t **rmm, apr_anylock_t *lock,
@@ -134,4 +134,3 @@ APR_DECLARE(apr_size_t) apr_rmm_overhead_get(int n);
134134
#endif
135135
/** @} */
136136
#endif /* ! APR_RMM_H */
137-

include/apr_thread_proc.h

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ typedef struct apr_proc_t {
171171
* @param err APR error code describing the error
172172
* @param description Text description of type of processing which failed
173173
*/
174-
typedef void (apr_child_errfn_t)(apr_pool_t *proc, apr_status_t err,
174+
typedef void (apr_child_errfn_t)(apr_pool_t *pool, apr_status_t err,
175175
const char *description);
176176

177177
/** Opaque Thread structure. */
@@ -281,7 +281,7 @@ APR_DECLARE(apr_status_t) apr_threadattr_guardsize_set(apr_threadattr_t *attr,
281281
* Set the threshold at which the thread pool allocator should start
282282
* giving blocks back to the system.
283283
* @param attr The threadattr to affect
284-
* @param on Non-zero if detached threads should be created.
284+
* @param size Non-zero if detached threads should be created.
285285
*/
286286
APR_DECLARE(apr_status_t) apr_threadattr_max_free_set(apr_threadattr_t *attr,
287287
apr_size_t size);
@@ -318,8 +318,8 @@ APR_DECLARE(void) apr_thread_current_after_fork(void);
318318

319319
/**
320320
* Get the current thread
321-
* @param The current apr_thread, NULL if it is not an apr_thread or if
322-
* it could not be determined.
321+
* @return The current apr_thread, NULL if it is not an apr_thread or if
322+
* it could not be determined.
323323
*/
324324
APR_DECLARE(apr_thread_t *) apr_thread_current(void);
325325

@@ -343,8 +343,8 @@ APR_DECLARE(apr_status_t) apr_thread_join(apr_status_t *retval,
343343
* Get name of thread
344344
* @param name The variable where is will be stored name of thread.
345345
* @param thread The thread that name required to get.
346-
* Current thread will be used if @param thread is NULL.
347-
* @param cont The pool to use
346+
* Current thread will be used if @a thread is NULL.
347+
* @param pool The pool to use
348348
*/
349349
APR_DECLARE(apr_status_t) apr_thread_name_get(char **name,
350350
apr_thread_t *thread,
@@ -355,8 +355,8 @@ APR_DECLARE(apr_status_t) apr_thread_name_get(char **name,
355355
* @param name The name of thread must be setted. If name is to long, then
356356
* name stripped to max length supported by operation system.
357357
* @param thread The thread that name will be changed.
358-
* Current thread will be used if @param thread is NULL.
359-
* @param cont The pool to use for temporary allocations
358+
* Current thread will be used if @a thread is NULL.
359+
* @param pool The pool to use for temporary allocations
360360
*/
361361
APR_DECLARE(apr_status_t) apr_thread_name_set(const char *name,
362362
apr_thread_t *thread,
@@ -919,4 +919,3 @@ APR_POOL_DECLARE_ACCESSOR(thread);
919919
#endif
920920

921921
#endif /* ! APR_THREAD_PROC_H */
922-

include/private/apr_encode_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ extern "C" {
2828
#endif
2929

3030
/**
31-
* @defgroup APR_Util_Encode_Private
31+
* @defgroup APR_Util_Encode_Private Internal APR encoding functions
3232
* @ingroup APR_Util
3333
* @{
3434
*/

0 commit comments

Comments
 (0)