Move logger.h to uapi so it can be exported for userland
software to use.
Change-Id: I64dca69f3442edc246562485b0b29b43615ae881
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
#include <linux/fdtable.h>
#include <linux/file.h>
-#include "logger.h"
+#include <uapi/linux/logger.h>
/**
* struct logger_log - represents a specific log, such as 'main' or 'radio'
__s32 tid;
__s32 sec;
__s32 nsec;
+#ifndef __KERNEL__
+ __s32 euid;
+#else
kuid_t euid;
+#endif
char msg[0];
};
#include <fcntl.h>
#include <getopt.h>
#include <linux/const.h>
+#include <linux/logger.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>
-#define LOGGER_SET_VERSION 44550
-#define LOGGER_SET_TAG 44551
-#define LOGGER_SET_PRIO 44552
-
#define handle_error_en(en, msg) \
do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)