Move to linux-tizen-modules-headers 77/269477/1
authorMateusz Majewski <m.majewski2@samsung.com>
Fri, 14 Jan 2022 18:49:41 +0000 (19:49 +0100)
committerMateusz Majewski <m.majewski2@samsung.com>
Fri, 14 Jan 2022 18:49:41 +0000 (19:49 +0100)
Change-Id: I8a981836b29ddf2c1935a7b8a2b650a71db7ab96

include/dlog_ioctl.h [deleted file]
packaging/dlog.spec
src/libdlogutil/fdi_logger.c
src/log-redirect-stdout/internal.c
src/shared/backend_androidlogger.c
src/shared/logcommon.c
src/tests/fdi_logger_wrap.c
src/tests/libdlogutil_neg.c
tests/test_libdlogutil.c

diff --git a/include/dlog_ioctl.h b/include/dlog_ioctl.h
deleted file mode 100644 (file)
index 1e42787..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#ifndef _DLOG_IOCTL_H_
-#define _DLOG_IOCTL_H_
-
-#include <sys/ioctl.h>
-#include <stdint.h>
-
-// These are taken from the kernel: ./drivers/staging/android/logger.h
-#define __LOGGERIO     0xAE
-#define LOGGER_GET_LOG_BUF_SIZE        _IO(__LOGGERIO, 1) /* size of log */
-#define LOGGER_GET_LOG_LEN             _IO(__LOGGERIO, 2) /* used log len */
-#define LOGGER_GET_NEXT_ENTRY_LEN      _IO(__LOGGERIO, 3) /* next entry len */
-#define LOGGER_FLUSH_LOG               _IO(__LOGGERIO, 4) /* flush log */
-#define LOGGER_GET_VERSION             _IO(__LOGGERIO, 5) /* get abi version */
-#define LOGGER_SET_VERSION             _IO(__LOGGERIO, 6) /* set abi version */
-#define LOGGER_SET_TAG                 _IO(__LOGGERIO, 7) /* set flow mode tag */
-#define LOGGER_SET_PRIO                _IO(__LOGGERIO, 8) /* set flow mode prio */
-
-/**
- * struct logger_set_tag
- * @len:       Length of a NULL-terminated tag including '\0'
- * @msg:       Pointer to a user buffer containing the tag
- */
-struct logger_set_tag {
-       uint64_t len;
-       uint64_t ptr;
-};
-
-#endif
index db2e72e..c766091 100644 (file)
@@ -22,6 +22,7 @@ BuildRequires: automake
 BuildRequires: libtool
 BuildRequires: pkgconfig(capi-base-common)
 BuildRequires: pkgconfig(libtzplatform-config)
+BuildRequires: linux-tizen-modules-headers
 %if 0%{?gcov:1}
 BuildRequires: lcov
 BuildRequires: zip
index 7e41b6a..57dd2ad 100644 (file)
@@ -29,7 +29,7 @@
 
 // DLog
 #include <backend_androidlogger.h>
-#include <dlog_ioctl.h>
+#include <linux/logger.h>
 #include <logconfig.h>
 #include <queued_entry_timestamp.h>
 
index 203b7d1..3810662 100644 (file)
@@ -23,7 +23,8 @@
 #include "internal.h"
 
 #include <backend_androidlogger.h>
-#include <dlog_ioctl.h>
+#include <sys/ioctl.h>
+#include <linux/logger.h>
 #include <logconfig.h>
 #include <logpipe.h>
 
index f9b534d..7b5b871 100644 (file)
@@ -33,7 +33,7 @@
 // DLog
 #include <backend_androidlogger.h>
 #include <dlog.h>
-#include <dlog_ioctl.h>
+#include <linux/logger.h>
 #include <logcommon.h>
 #include <logconfig.h>
 
index 298bcd6..df5a277 100644 (file)
@@ -34,7 +34,7 @@
 #include <logpipe.h>
 #include <assert.h>
 #include <ctype.h>
-#include <dlog_ioctl.h>
+#include <linux/logger.h>
 
 /**
  * @addtogroup SHARED_FUNCTIONS
index 253f48e..e30d4dd 100644 (file)
@@ -18,7 +18,7 @@
 #include <assert.h>
 
 // DLog
-#include <dlog_ioctl.h>
+#include <linux/logger.h>
 #include "../libdlogutil/fdi_logger.h"
 
 static int open_buf_ret;
index ba03cd3..d6c31fa 100644 (file)
@@ -2,7 +2,7 @@
 #include <stdlib.h>
 #include <assert.h>
 #include <logcommon.h>
-#include <dlog_ioctl.h>
+#include <linux/logger.h>
 #include "../libdlogutil/logretrieve.h"
 
 void negative_main(void)
@@ -128,4 +128,4 @@ int main(int argc, char **argv)
 {
        negative_main();
        return 0;
-}
\ No newline at end of file
+}
index 3d7c3a0..545e258 100644 (file)
@@ -21,7 +21,8 @@
 #include <unistd.h>
 #include <stdbool.h>
 #include <logcommon.h>
-#include <dlog_ioctl.h>
+#include <sys/ioctl.h>
+#include <linux/logger.h>
 
 enum test_mode {
        MODE_DUMP,
@@ -577,4 +578,4 @@ int main(int argc, char **argv)
        }
 
        return EXIT_SUCCESS;
-}
\ No newline at end of file
+}