]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
export log function so it can be used by library user
authorCedric Le Goater <clg@fr.ibm.com>
Thu, 12 Nov 2009 13:40:14 +0000 (14:40 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Thu, 12 Nov 2009 13:40:14 +0000 (14:40 +0100)
The log api may be used by an external component which needs to
access these functions.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/log.h

index d9c1fb32f9f1148a1adf56e281c6bac74e831320..b11093d1e0731658b809990df0d404bfbd4e1f0f 100644 (file)
@@ -285,6 +285,10 @@ extern struct lxc_log_category lxc_log_category_lxc;
        ERROR("%s - " format, strerror(errno), ##__VA_ARGS__);          \
 } while (0)
 
+extern int lxc_log_fd;
+
 extern int lxc_log_init(const char *file, const char *priority,
                        const char *prefix, int quiet);
+
+extern void lxc_log_setprefix(const char *a_prefix);
 #endif