]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Docs: make doxygen happier and fix some comments (#293) M-staged-PR293
authorAmos Jeffries <yadij@users.noreply.github.com>
Fri, 28 Sep 2018 15:33:12 +0000 (15:33 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 28 Sep 2018 20:55:30 +0000 (20:55 +0000)
* Update some code syntax for doxygen's naive parser.

* Fix duplicate section IDs in doxygen comments.

* Fix some doxygen markup typos.

* Remove an unnecessary todo.

No logical changes.

18 files changed:
doc/Programming-Guide/DelayPools.dox
include/rfc1738.h
lib/smblib/smblib-api.c
src/StoreFileSystem.h
src/base/AsyncJobs.dox
src/cbdata.h
src/clientStream.h
src/clients/Client.h
src/errorpage.cc
src/fqdncache.cc
src/fs/rock/RockRebuild.cc
src/http/one/Parser.h
src/http/one/RequestParser.h
src/http/one/ResponseParser.h
src/ipcache.cc
src/security/forward.h
src/ssl/ErrorDetailManager.h
src/ssl/cert_validate_message.h

index ebdc90363ed86f6ec767f9cb29576d1a07d77fcb..2053a493a079e82be96f882845e713633e7c7a83 100644 (file)
@@ -9,7 +9,7 @@
 /**
 \page 10_DelayPools Delay Pools
 
-\section Introduction Introduction
+\section DelayPoolsIntro Introduction
 \par
        A DelayPool is a Composite used to manage bandwidth for any request
        assigned to the pool by an access expression. DelayId's are a used
index 9b55b4db7efdec4b7e7cd9ac870f1f0ee90e8927..e5ec273a06eeedd05fb909a14f5d9c6bd062f71d 100644 (file)
@@ -25,15 +25,15 @@ extern "C" {
 #define RFC1738_ESCAPE_UNESCAPED   (RFC1738_ESCAPE_UNSAFE|RFC1738_ESCAPE_CTRLS|RFC1738_ESCAPE_NOPERCENT)
 
 /**
- * \group rfc1738 RFC 1738 URL-escaping library
+ * RFC 1738 URL-escaping
  *
  * Public API is formed of a triplet of encode functions mapping to the rfc1738_do_encode() engine.
  *
  * ASCII characters are split into four groups:
- * \item SAFE     Characters which are safe to occur in any URL. For example A,B,C
- * \item CTRLS    Binary control codes. Dangerous to include in URLs.
- * \item UNSAFE   Characters which are completely usafe to occur in any URL. For example; backspace, tab, space, newline.
- * \item RESERVED Characters which are reserved for special meaning and may only occur in certain parts of a URL.
+ * \li SAFE     Characters which are safe to occur in any URL. For example A,B,C
+ * \li CTRLS    Binary control codes. Dangerous to include in URLs.
+ * \li UNSAFE   Characters which are completely usafe to occur in any URL. For example; backspace, tab, space, newline.
+ * \li RESERVED Characters which are reserved for special meaning and may only occur in certain parts of a URL.
  *
  * Returns a static buffer containing the RFC 1738 compliant, escaped version of the given url.
  *
index d0ffa333f6dcdd9d0e30296ecaf855e801f93d95..f805392a92c3c60f796d84619aa72a545a9abf21 100644 (file)
@@ -292,7 +292,7 @@ int SMBapi_NetSetUserInfo(SMB_Tree_Handle tree, char *user,
     if (pad_api_name == TRUE)     /* Pad to a word boundary */
         p = p + 1;
 
-    /*  SSVAL(p, 0, 65000);  /* Check the result */
+    /*  SSVAL(p, 0, 65000); */ /* Check the result */
     SSVAL(p, 0, SMB_LMapi_SetUserInfo);  /* The api call */
 
     p = p + 2;
index a55620739bf4eb8238cf7d86c940a9d9bad4ace4..afe7c4e68ab6baaa6a2e173f0ac791c4a1ae8afb 100644 (file)
@@ -17,7 +17,7 @@
 /**
  \defgroup FileSystems  Storage Filesystems
  *
- \section Introduction Introduction
+ \section FileSystemsIntroduction Introduction
  \par
  * Traditionally, Squid has always used the Unix filesystem (\link UFS UFS\endlink)
  * to store cache objects on disk.  Over the years, the
index 57370c9519c0e5b20b579c3991013b2966eb4deb..70bc17c923196b284af65c8a8603571b6b558042 100644 (file)
 \defgroup AsyncJobs Asynchronous Jobs
 \ingroup Components
  
-\section Terminology Terminology
+\section AsyncJobsTerminology Terminology
 
 - \b Job: an AsyncJob object.
 - \b Creator: the code creating the job. Usually the Initiator.
 - \b Start: the act of calling AsyncJob::Start with a job pointer.
 - \b Initiator: the code starting the job. Usually the Creator.
 
-\section Life Typical life cycle
+\section AsyncJobsLifecycle Typical life cycle
 
 -# Creator creates and initializes a job.
 -# If Initiator expects to communicate with the job after start,
@@ -50,7 +50,7 @@ Keep in mind that you have no async debugging, cleanup, and protections until
 you call AsyncJob::Start with a job pointer.
 
 
-\section Rules Basic rules
+\section AsyncJobsBasicRules Basic rules
 
 - To start a job, use AsyncJob::Start.
   Do not start the same job more than once.
index a6ae915b27d5aeffc2c6f1baae63aab3423e50a0..3fee0c7b1b10ce1e0a7d982b2d33fcef0ec0a936 100644 (file)
@@ -12,7 +12,7 @@
 /**
 \page CBDATA Callback Data Allocator API
 
- \section  Introduction
+ \section CbDataIntro Introduction
 
  \par
    Squid's extensive use of callback functions makes it very
index ea2930f543203a74a708e67cd9482fc613ae1ecd..385bfa995058398675b21349cb7610edfa766adb 100644 (file)
@@ -17,7 +17,7 @@
 /**
  \defgroup ClientStreamAPI Client Streams API
  \ingroup Components
- \section Introduction Introduction
+ \section ClientStreamIntroduction Introduction
  \par
  *    A ClientStream implements a unidirectional, non-blocking,
  *    pull pipeline. They allow code to be inserted into the
index 6b8548d3a016aa8ff1870699221d8623f1509c3c..f706e682957fd0a850a642f26eff04b739252673 100644 (file)
@@ -56,7 +56,7 @@ public:
 
     /// abnormal data transfer termination
     /// \retval true the transaction will be terminated (abortAll called)
-    /// \reval false the transaction will survive
+    /// \retval false the transaction will survive
     virtual bool abortOnData(const char *reason);
 
     /// a hack to reach HttpStateData::orignal_request
index c81e0a9c01405c0041cc2f95e55540125b744c1d..17d2ecf9fc1e20ab68ba76909d70247948dc9c3a 100644 (file)
@@ -40,7 +40,7 @@
  \defgroup ErrorPageInternal Error Page Internals
  \ingroup ErrorPageAPI
  *
- \section Abstract Abstract:
+ \section ErrorPagesAbstract Abstract:
  *   These routines are used to generate error messages to be
  *   sent to clients.  The error type is used to select between
  *   the various message formats. (formats are stored in the
index e39f37f4f4d14fd5a6b738168590d405ddad5dec..d54c82fa76443f3c991dfdad6361b7dd45e35251 100644 (file)
@@ -30,7 +30,7 @@
 /**
  \defgroup FQDNCacheAPI FQDN Cache API
  \ingroup Components
- \section Introduction Introduction
+ \section FQDNCacheIntroduction Introduction
  \par
  *  The FQDN cache is a built-in component of squid providing
  *  Hostname to IP-Number translation functionality and managing
@@ -38,8 +38,6 @@
  *  mechanisms that allow non-blocking access to these mappings.
  *  The FQDN cache usually doesn't block on a request except for
  *  special cases where this is desired (see below).
- *
- \todo FQDN Cache should have its own API *.h file.
  */
 
 /**
index 4bb062ed3bfd9e97a4a9b8d712e4e5c4f2c16e52..d34864ba6a714e5c273c4c1a5f3ac8d331c70b52 100644 (file)
@@ -30,7 +30,7 @@ CBDATA_NAMESPACED_CLASS_INIT(Rock, Rebuild);
  \defgroup RockFsRebuild Rock Store Rebuild
  \ingroup Filesystems
  *
- \section Overview Overview
+ \section RockFsRebuildOverview Overview
  *  Several layers of information are manipualted during the rebuild:
  \par
  *  Store Entry: Response message plus all the metainformation associated with
index 0410b290faa4f215fbba6d90d93a29114d0f4365..f1f50215435cce93088e25d71612da7f016cd1d5 100644 (file)
@@ -33,8 +33,8 @@ enum ParseState {
  * Works on a raw character I/O buffer and tokenizes the content into
  * the major CRLF delimited segments of an HTTP/1 procotol message:
  *
- * \item first-line (request-line / simple-request / status-line)
- * \item mime-header 0*( header-name ':' SP field-value CRLF)
+ * \li first-line (request-line / simple-request / status-line)
+ * \li mime-header 0*( header-name ':' SP field-value CRLF)
  */
 class Parser : public RefCountable
 {
index 3ff9df3b82a1545550b038ac45106a8ef8298d48..62c9327faf5e876cc7f3b946714ca7540c47ae26 100644 (file)
@@ -24,8 +24,8 @@ namespace One {
  * Works on a raw character I/O buffer and tokenizes the content into
  * the major CRLF delimited segments of an HTTP/1 request message:
  *
- * \item request-line (method, URL, protocol, version)
- * \item mime-header (set of RFC2616 syntax header fields)
+ * \li request-line (method, URL, protocol, version)
+ * \li mime-header (set of RFC2616 syntax header fields)
  */
 class RequestParser : public Http1::Parser
 {
index d751eedf4eefe249da38932178f951e7e8fbe6f1..92e134919d6b5a1768c764832bf626c752949e08 100644 (file)
@@ -23,8 +23,8 @@ namespace One {
  * Works on a raw character I/O buffer and tokenizes the content into
  * the major CRLF delimited segments of an HTTP/1 respone message:
  *
- * \item status-line (version SP status SP reash-phrase)
- * \item mime-header (set of RFC2616 syntax header fields)
+ * \li status-line (version SP status SP reash-phrase)
+ * \li mime-header (set of RFC2616 syntax header fields)
  */
 class ResponseParser : public Http1::Parser
 {
index 689a57c898870fb49a9243b6f7b947fbace23918..650d5289cfe2bf8d7adb212ec9e8f8c4466578f6 100644 (file)
@@ -33,7 +33,7 @@
 /**
  \defgroup IPCacheAPI IP Cache API
  \ingroup Components
- \section Introduction Introduction
+ \section IpcacheIntroduction Introduction
  \par
  *  The IP cache is a built-in component of squid providing
  *  Hostname to IP-Number translation functionality and managing
index 7bf3f0e194284aa222092fbcfce9020557a76c9b..666c92d8260b05b5e7d24aea0df16e9a84b8d2e7 100644 (file)
@@ -83,7 +83,7 @@ class CertError;
 typedef CbDataList<Security::CertError> CertErrors;
 
 #if USE_OPENSSL
-CtoCpp1(X509_free, X509 *)
+CtoCpp1(X509_free, X509 *);
 typedef Security::LockingPointer<X509, X509_free_cpp, HardFun<int, X509 *, X509_up_ref> > CertPointer;
 #elif USE_GNUTLS
 typedef std::shared_ptr<struct gnutls_x509_crt_int> CertPointer;
@@ -92,10 +92,10 @@ typedef std::shared_ptr<void> CertPointer;
 #endif
 
 #if USE_OPENSSL
-CtoCpp1(X509_CRL_free, X509_CRL *)
+CtoCpp1(X509_CRL_free, X509_CRL *);
 typedef Security::LockingPointer<X509_CRL, X509_CRL_free_cpp, HardFun<int, X509_CRL *, X509_CRL_up_ref> > CrlPointer;
 #elif USE_GNUTLS
-CtoCpp1(gnutls_x509_crl_deinit, gnutls_x509_crl_t)
+CtoCpp1(gnutls_x509_crl_deinit, gnutls_x509_crl_t);
 typedef Security::LockingPointer<struct gnutls_x509_crl_int, gnutls_x509_crl_deinit> CrlPointer;
 #else
 typedef void *CrlPointer;
index 875d42480c7104512ae19c93e08fe88d1920d287..f15b52b8139a546cacf68fe33f54fafc4eead785 100644 (file)
@@ -68,7 +68,7 @@ public:
      * Retrieve error details for an error. This method examine the Accept-Language
      * of the request to retrieve the error details for  requested language else return
      * the default error details.
-     * \param vale the error code
+     * \param value the error code
      * \param request the current HTTP request.
      * \param entry where to store error details
      * \return true on success, false otherwise
index 020f42d58f0e7c1c247f7d4e85cda948847899ea..0bbdb12617a56fb68e3b416577cbd5b57aaac4fc 100644 (file)
@@ -70,9 +70,12 @@ public:
 
 /**
  * This class is responsible for composing or parsing messages destined to
- * or comming from a cert validator helper.
+ * or comming from a certificate validation helper.
  * The messages format is:
- *   response/request-code SP body-length SP [key=value ...] \x01
+\verbatim
+   response/request-code SP body-length SP [key=value ...] EOL
+\endverbatim
+ * \note EOL for this interface is character 0x01
  */
 class CertValidationMsg : public CrtdMessage
 {