summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-08-14 01:25:48 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-08-14 01:25:48 +0200
commita6d8f4bb835dc01344861e26b78867273322cb52 (patch)
tree36c4cea88536c8015563abf2991d8313966af229 /src/log.c
parentb5fc727db22139bb3f28367d1f31f241ccc1e236 (diff)
downloadconnman-a6d8f4bb835dc01344861e26b78867273322cb52.tar.gz
connman-a6d8f4bb835dc01344861e26b78867273322cb52.tar.bz2
connman-a6d8f4bb835dc01344861e26b78867273322cb52.zip
First steps into providing API documentation
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index 93026d53..b195df2f 100644
--- a/src/log.c
+++ b/src/log.c
@@ -30,6 +30,13 @@
static volatile gboolean debug_enabled = FALSE;
+/**
+ * connman_info:
+ * @format: format string
+ * @Varargs: list of arguments
+ *
+ * Output general information
+ */
void connman_info(const char *format, ...)
{
va_list ap;
@@ -41,6 +48,13 @@ void connman_info(const char *format, ...)
va_end(ap);
}
+/**
+ * connman_error:
+ * @format: format string
+ * @varargs: list of arguments
+ *
+ * Output error messages
+ */
void connman_error(const char *format, ...)
{
va_list ap;
@@ -52,6 +66,16 @@ void connman_error(const char *format, ...)
va_end(ap);
}
+/**
+ * connman_debug:
+ * @format: format string
+ * @varargs: list of arguments
+ *
+ * Output debug message
+ *
+ * The actual output of the debug message is controlled via a command line
+ * switch. If not enabled, these messages will be ignored.
+ */
void connman_debug(const char *format, ...)
{
va_list ap;