summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/init.c
diff options
context:
space:
mode:
authorKarel Zak2010-04-14 14:01:24 +0200
committerKarel Zak2010-06-03 15:20:12 +0200
commit192c6aad9c8e6ae5c4a480f41b9359180a468150 (patch)
tree92b53b67b4f94089b2e2e80c912ad7e9d5a1d722 /shlibs/mount/src/init.c
parentfindmnt: add man page (diff)
downloadkernel-qcow2-util-linux-192c6aad9c8e6ae5c4a480f41b9359180a468150.tar.gz
kernel-qcow2-util-linux-192c6aad9c8e6ae5c4a480f41b9359180a468150.tar.xz
kernel-qcow2-util-linux-192c6aad9c8e6ae5c4a480f41b9359180a468150.zip
libmount: cleanup docs
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/init.c')
-rw-r--r--shlibs/mount/src/init.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/shlibs/mount/src/init.c b/shlibs/mount/src/init.c
index 544361bc7..68c13f949 100644
--- a/shlibs/mount/src/init.c
+++ b/shlibs/mount/src/init.c
@@ -5,12 +5,28 @@
* GNU Lesser General Public License.
*/
+/**
+ * SECTION: init
+ * @title: Library initialization
+ * @short_description: initialize debuging
+ */
+
#include <stdlib.h>
#include "mountP.h"
int libmount_debug_mask;
+/**
+ * mnt_init_debug:
+ * @mask: debug mask (0xffff to enable full debuging)
+ *
+ * If the @mask is not specified then this function reads
+ * LIBMOUNT_DEBUG environment variable to get the mask.
+ *
+ * Already initialized debugging stuff cannot be changed. It does not
+ * have effect to call this function twice.
+ */
void mnt_init_debug(int mask)
{
if (libmount_debug_mask & DEBUG_INIT)