summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/mountP.h
diff options
context:
space:
mode:
authorKarel Zak2009-11-26 17:45:01 +0100
committerKarel Zak2010-06-03 15:20:10 +0200
commit69b7e41e999bbe8ac7402cd958bb3d4ba1d2e6fb (patch)
treebde5b2a6508c2570ad7b69d2b2bf43fbc072b175 /shlibs/mount/src/mountP.h
parentlibmount: add version.c (diff)
downloadkernel-qcow2-util-linux-69b7e41e999bbe8ac7402cd958bb3d4ba1d2e6fb.tar.gz
kernel-qcow2-util-linux-69b7e41e999bbe8ac7402cd958bb3d4ba1d2e6fb.tar.xz
kernel-qcow2-util-linux-69b7e41e999bbe8ac7402cd958bb3d4ba1d2e6fb.zip
libmount: add basic utils
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/mountP.h')
-rw-r--r--shlibs/mount/src/mountP.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/shlibs/mount/src/mountP.h b/shlibs/mount/src/mountP.h
index 2a486f02a..172341349 100644
--- a/shlibs/mount/src/mountP.h
+++ b/shlibs/mount/src/mountP.h
@@ -10,12 +10,29 @@
#ifndef _LIBMOUNT_PRIVATE_H
#define _LIBMOUNT_PRIVATE_H
+#include <sys/types.h>
+#include "mount.h"
+
/* features */
+#define CONFIG_CDROM_NOMEDIUM_RETRIES 5
#define CONFIG_LIBMOUNT_ASSERT
#ifdef CONFIG_LIBMOUNT_ASSERT
#include <assert.h>
#endif
-#include "mount.h"
+/* utils.c */
+extern char *mnt_getenv_safe(const char *arg);
+#ifndef HAVE_STRNLEN
+extern size_t strnlen(const char *s, size_t maxlen);
+#endif
+#ifndef HAVE_STRNDUP
+extern char *strndup(const char *s, size_t n);
+#endif
+#ifndef HAVE_STRNCHR
+extern char *strnchr(const char *s, size_t maxlen, int c);
+#endif
+extern char *mnt_get_username(const uid_t uid);
+extern char *mnt_strconcat3(char *s, const char *t, const char *u);
+
#endif