diff options
author | ianh <ianh@13f79535-47bb-0310-9956-ffa450edef68> | 2001-08-24 17:15:01 +0000 |
---|---|---|
committer | ianh <ianh@13f79535-47bb-0310-9956-ffa450edef68> | 2001-08-24 17:15:01 +0000 |
commit | 2f8fba1145e7404100830ac32bb192fcd9be7112 (patch) | |
tree | 543dc7e2765b5ea94d45ea82ba511c707351b62c /include/apr_general.h | |
parent | aab29a26164f1e9c025c3ae08f9f8b6ab946d89b (diff) | |
download | libapr-2f8fba1145e7404100830ac32bb192fcd9be7112.tar.gz |
Doxygen updates
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62221 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_general.h')
-rw-r--r-- | include/apr_general.h | 81 |
1 files changed, 47 insertions, 34 deletions
diff --git a/include/apr_general.h b/include/apr_general.h index 0fda82e76..bc1c2b60b 100644 --- a/include/apr_general.h +++ b/include/apr_general.h @@ -54,7 +54,10 @@ #ifndef APR_GENERAL_H #define APR_GENERAL_H - +/** + * @file apr_general.h + * @brief APR Misc routines + */ #include "apr.h" #include "apr_pools.h" #include "apr_errno.h" @@ -67,6 +70,12 @@ extern "C" { #endif /* __cplusplus */ +/** + * @defgroup APR_Misc Misc routines + * @ingroup APR + * @{ + */ + #ifndef FALSE #define FALSE 0 #endif @@ -83,7 +92,8 @@ extern "C" { typedef int apr_signum_t; -/* Finding offsets of elements within structures. +/** + * Finding offsets of elements within structures. * Taken from the X code... they've sweated portability of this stuff * so we don't have to. Sigh... */ @@ -116,7 +126,8 @@ typedef int apr_signum_t; #endif -/* A couple of prototypes for functions in case some platform doesn't +/** + * A couple of prototypes for functions in case some platform doesn't * have it */ #if (!APR_HAVE_STRCASECMP) && (APR_HAVE_STRICMP) @@ -131,7 +142,7 @@ int strcasecmp(const char *a, const char *b); int strncasecmp(const char *a, const char *b, size_t n); #endif -/* +/** * String and memory functions */ @@ -144,24 +155,6 @@ void *memchr(const void *s, int c, size_t n); #endif /** - * @package APR Random Functions - */ - -#if APR_HAS_RANDOM - -/* TODO: I'm not sure this is the best place to put this prototype...*/ -/** - * Generate a string of random bytes. - * @param buf Random bytes go here - * @param length size of the buffer - * @deffunc apr_status_t apr_generate_random_bytes(unsigned char * buf, int length) - */ -APR_DECLARE(apr_status_t) apr_generate_random_bytes(unsigned char * buf, - int length); - -#endif - -/** * Setup any APR internal data structures. This MUST be the first function * called for any APR program. * @deffunc apr_status_t apr_initialize(void) @@ -171,27 +164,47 @@ APR_DECLARE(apr_status_t) apr_initialize(void); /** * Tear down any APR internal data structures which aren't torn down * automatically. - * @tip An APR program must call this function at termination once it - * has stopped using APR services. The APR developers suggest using - * atexit to ensure this is called. When using APR from a language - * other than C that has problems with the calling convention, use - * apr_terminate2() instead. - * @deffunc void apr_terminate(void) + * @remark An APR program must call this function at termination once it + * has stopped using APR services. The APR developers suggest using + * atexit to ensure this is called. When using APR from a language + * other than C that has problems with the calling convention, use + * apr_terminate2() instead. */ APR_DECLARE_NONSTD(void) apr_terminate(void); /** * Tear down any APR internal data structures which aren't torn down * automatically, same as apr_terminate - * @tip An APR program must call either the apr_terminate or apr_terminate2 - * function once it it has finished using APR services. The APR - * developers suggest using atexit(apr_terminate) to ensure this is done. - * apr_terminate2 exists to allow non-c language apps to tear down apr, - * while apr_terminate is recommended from c language applications. - * @deffunc void apr_terminate2(void) + * @remark An APR program must call either the apr_terminate or apr_terminate2 + * function once it it has finished using APR services. The APR + * developers suggest using atexit(apr_terminate) to ensure this is done. + * apr_terminate2 exists to allow non-c language apps to tear down apr, + * while apr_terminate is recommended from c language applications. */ APR_DECLARE(void) apr_terminate2(void); +/** @} */ + +/** + * @defgroup APR_Random Random Functions + * @ingroup APR + * @{ + */ + +#if APR_HAS_RANDOM + +/* TODO: I'm not sure this is the best place to put this prototype...*/ +/** + * Generate a string of random bytes. + * @param buf Random bytes go here + * @param length size of the buffer + */ +APR_DECLARE(apr_status_t) apr_generate_random_bytes(unsigned char * buf, + int length); + +#endif +/** @} */ + #ifdef __cplusplus } #endif |