]> granicus.if.org Git - apache/commitdiff
Document the util_md5.h file using ScanDoc. Also add package directives
authorRyan Bloom <rbb@apache.org>
Tue, 8 Aug 2000 05:57:14 +0000 (05:57 +0000)
committerRyan Bloom <rbb@apache.org>
Tue, 8 Aug 2000 05:57:14 +0000 (05:57 +0000)
to util_xml and util_uri headers

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86024 13f79535-47bb-0310-9956-ffa450edef68

include/util_md5.h
include/util_uri.h
include/util_xml.h

index 94721e86f97dc98b733797d88e10e9fa87d88ed7..71a87a99a2ba879ea2c7e1a51ce653a94282f277 100644 (file)
 extern "C" {
 #endif
 
+/**
+ * @package Apache MD5 library
+ */
+
 #include "apr_md5.h"
 
+/**
+ * Create an MD5 checksum of a given string
+ * @param a Pool to allocate out of
+ * @param string String to get the checksum of
+ * @return The checksum
+ * @deffunc char *ap_md5(apr_pool_t *a, const unsigned char *string)
+ */
 API_EXPORT(char *) ap_md5(apr_pool_t *a, const unsigned char *string);
+
+/**
+ * Create an MD5 checksum of a string of binary data
+ * @param a Pool to allocate out of
+ * @param buf Buffer to generate checksum for
+ * @param len The length of the buffer
+ * @return The checksum
+ * @deffunc char *ap_md5_binary(apr_pool_t *a, const unsigned char *buf, int len)
+ */
 API_EXPORT(char *) ap_md5_binary(apr_pool_t *a, const unsigned char *buf, int len);
+
+/**
+ * Convert an MD5 checksum into a base64 encoding
+ * @param p The pool to allocate out of
+ * @param context The context to convert
+ * @return The converted encoding
+ * @deffunc char *ap_md5contextTo64(apr_pool_t *p, apr_md5_ctx_t *context)
+ */
 API_EXPORT(char *) ap_md5contextTo64(apr_pool_t *p, apr_md5_ctx_t *context);
+
 #ifdef APACHE_XLATE
+/**
+ * Create an MD5 Digest for a given file
+ * @param p The pool to allocate out of
+ * @param infile The file to create the digest for
+ * @param xlate The translation header to use.
+ * @warning The xlate parameter is only available if APACHE_XLATE is defined
+ * @deffunc char *ap_md5digest(apr_pool_t *p, apr_file_t *infile, apr_xlate_t *xlate)
+ */
 API_EXPORT(char *) ap_md5digest(apr_pool_t *p, apr_file_t *infile,
                                 apr_xlate_t *xlate);
 #else
index 47ab91f140514a84ff4a1470300f64164d7baed2..e914ee6c4987390ad77d7a0e60db78f865318a3f 100644 (file)
 extern "C" {
 #endif
 
-typedef struct {
+/**
+ * @package Apache URI library
+ */
+
+typedef struct schemes_t;
+
+/** Structure to store various schemes and their default ports */
+struct schemes_t {
+    /** The name of the scheme */
     const char *name;
+    /** The default port for the scheme */
     unsigned short default_port;
-} schemes_t;
+};
 
 #define        DEFAULT_FTP_DATA_PORT   20
 #define        DEFAULT_FTP_PORT        21
index 6864ffafbf95e7e1260e467f1225638240e6455c..cdab08e8a2e94dc5099a1ceffda3e0a9d3f77f4a 100644 (file)
@@ -62,6 +62,9 @@ extern "C" {
 #include "httpd.h"
 #include "apr_lib.h"
 
+/**
+ * @package Apache XML library
+ */
 
 /* -------------------------------------------------------------------- */