[PVFS2-CVS]
commit by rbross in pvfs2/src/common/gossip: gossip.c gossip.h
CVS commit program
cvs at parl.clemson.edu
Tue Jan 11 09:00:27 EST 2005
Update of /projects/cvsroot/pvfs2/src/common/gossip
In directory parlweb:/tmp/cvs-serv31090/src/common/gossip
Modified Files:
gossip.c gossip.h
Log Message:
doxygen updates.
Index: gossip.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/common/gossip/gossip.c,v
diff -p -u -r1.12 -r1.13
--- gossip.c 29 Sep 2004 21:18:47 -0000 1.12
+++ gossip.c 11 Jan 2005 14:00:27 -0000 1.13
@@ -4,6 +4,12 @@
* See COPYING in top-level directory.
*/
+/** \file
+ * \ingroup gossip
+ *
+ * Implementation of gossip interface.
+ */
+
#include <stdio.h>
#include <stdarg.h>
#include <stdint.h>
@@ -20,10 +26,10 @@
#include "gossip.h"
-/* controls whether debugging is on or off */
+/** controls whether debugging is on or off */
int gossip_debug_on = 0;
-/* controls the mask level for debugging messages */
+/** controls the mask level for debugging messages */
uint64_t gossip_debug_mask = 0;
enum
@@ -38,8 +44,9 @@ enum
GOSSIP_BUF_SIZE = 1024
};
-/* determines which logging facility to use */
-/* default to stderr to begin with */
+/** determines which logging facility to use. Default to stderr to begin
+ * with.
+ */
int gossip_facility = GOSSIP_STDERR;
/* file handle used for file logging */
@@ -69,13 +76,11 @@ static int gossip_disable_syslog(
* visible functions
*/
-/* gossip_enable_syslog()
- *
- * Turns on syslog logging facility. The priority argument is a
- * combination of the facility and level to use, as seen in the
- * syslog(3) man page.
+/** Turns on syslog logging facility. The priority argument is a
+ * combination of the facility and level to use, as seen in the
+ * syslog(3) man page.
*
- * returns 0 on success, -errno on failure
+ * \return 0 on success, -errno on failure.
*/
int gossip_enable_syslog(
int priority)
@@ -98,11 +103,9 @@ int gossip_enable_syslog(
return 0;
}
-/* gossip_enable_stderr()
- *
- * Turns on logging to stderr.
+/** Turns on logging to stderr.
*
- * returns 0 on success, -errno on failure
+ * \return 0 on success, -errno on failure.
*/
int gossip_enable_stderr(
void)
@@ -124,13 +127,11 @@ int gossip_enable_stderr(
return 0;
}
-/* gossip_enable_file()
- *
- * Turns on logging to a file. The filename argument indicates which
- * file to use for logging messages, and the mode indicates whether the
- * file should be truncated or appended (see fopen() man page).
+/** Turns on logging to a file. The filename argument indicates which
+ * file to use for logging messages, and the mode indicates whether the
+ * file should be truncated or appended (see fopen() man page).
*
- * returns 0 on success, -errno on failure
+ * \return 0 on success, -errno on failure.
*/
int gossip_enable_file(
const char *filename,
@@ -159,11 +160,9 @@ int gossip_enable_file(
return 0;
}
-/* gossip_disable()
- *
- * Turns off any active logging facility and disables debugging.
+/** Turns off any active logging facility and disables debugging.
*
- * returns 0 on success, -errno on failure
+ * \return 0 on success, -errno on failure.
*/
int gossip_disable(
void)
@@ -191,12 +190,10 @@ int gossip_disable(
return ret;
}
-/* gossip_get_debug_mask()
- *
- * fills in args indicating whether debugging is on or off, and what the
- * mask level is
+/** Fills in args indicating whether debugging is on or off, and what the
+ * mask level is.
*
- * returns 0 on success, -errno on failure
+ * \return 0 on success, -errno on failure.
*/
int gossip_get_debug_mask(
int *debug_on,
@@ -207,13 +204,11 @@ int gossip_get_debug_mask(
return 0;
}
-/* gossip_set_debug_mask()
- *
- * Determines whether debugging messages are turned on or off. Also
- * specifies the mask that determines which debugging messages are
- * printed.
+/** Determines whether debugging messages are turned on or off. Also
+ * specifies the mask that determines which debugging messages are
+ * printed.
*
- * returns 0 on success, -errno on failure
+ * \return 0 on success, -errno on failure.
*/
int gossip_set_debug_mask(
int debug_on,
@@ -296,13 +291,11 @@ int __gossip_debug(
return ret;
}
-/* gossip_err()
- *
- * Logs a critical error message. This will print regardless of the
- * mask value and whether debugging is turned on or off, as long as some
- * logging facility has been enabled.
+/** Logs a critical error message. This will print regardless of the
+ * mask value and whether debugging is turned on or off, as long as some
+ * logging facility has been enabled.
*
- * returns 0 on success, -errno on failure
+ * \return 0 on success, -errno on failure.
*/
int gossip_err(
const char *format,
@@ -343,12 +336,8 @@ int gossip_err(
#ifndef GOSSIP_BACKTRACE_DEPTH
#define GOSSIP_BACKTRACE_DEPTH 12
#endif
-/* gossip_backtrace()
- *
- * prints out a dump of the current stack (excluding this function)
- * using gossip_err
- *
- * no return value
+/** Prints out a dump of the current stack (excluding this function)
+ * using gossip_err.
*/
void gossip_backtrace(void)
{
Index: gossip.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/common/gossip/gossip.h,v
diff -p -u -r1.8 -r1.9
--- gossip.h 3 Sep 2004 14:57:01 -0000 1.8
+++ gossip.h 11 Jan 2005 14:00:27 -0000 1.9
@@ -4,9 +4,17 @@
* See COPYING in top-level directory.
*/
-/*
+/** \defgroup gossip gossip logging interface
+ *
* This is a basic application logging facility. It uses printf style
* formatting and provides several mechanisms for output.
+ *
+ * @{
+ */
+
+/** \file
+ *
+ * Declarations for the gossip logging interface.
*/
#ifndef __GOSSIP_H
@@ -116,6 +124,8 @@ int gossip_err(
#endif /* __GNUC__ */
#endif /* __GOSSIP_H */
+
+/* @} */
/*
* Local variables:
More information about the PVFS2-CVS
mailing list