[7/8] compel: Move relocs stuff into include/uapi/handle-elf.h

Submitted by Pavel Emelianov on Nov. 14, 2016, 1:06 p.m.

Details

Message ID 5829B6C7.6050601@virtuozzo.com
State Accepted
Series "compel: Sanitize API after split, wave 1"
Commit 9d78008e7e151e8895f969032f3e1b2d219f9827
Headers show

Commit Message

Pavel Emelianov Nov. 14, 2016, 1:06 p.m.
The same as prev patch -- clean up the compel.h

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
---
 compel/include/uapi/compel.h     | 13 +------------
 compel/include/uapi/handle-elf.h | 15 +++++++++++++++
 2 files changed, 16 insertions(+), 12 deletions(-)
 create mode 100644 compel/include/uapi/handle-elf.h

Patch hide | download patch | download mbox

diff --git a/compel/include/uapi/compel.h b/compel/include/uapi/compel.h
index a3faa18..318a472 100644
--- a/compel/include/uapi/compel.h
+++ b/compel/include/uapi/compel.h
@@ -5,18 +5,7 @@ 
 #include <stdarg.h>
 
 #include <compel/asm/infect-types.h>
-
-#define COMPEL_TYPE_INT		(1u << 0)
-#define COMPEL_TYPE_LONG	(1u << 1)
-#define COMPEL_TYPE_GOTPCREL	(1u << 2)
-
-typedef struct {
-	unsigned int	offset;
-	unsigned int	type;
-	long		addend;
-	long		value;
-} compel_reloc_t;
-
+#include <compel/handle-elf.h>
 #include <compel/log.h>
 #include <compel/infect-util.h>
 #include <compel/infect-rpc.h>
diff --git a/compel/include/uapi/handle-elf.h b/compel/include/uapi/handle-elf.h
new file mode 100644
index 0000000..ddeecb0
--- /dev/null
+++ b/compel/include/uapi/handle-elf.h
@@ -0,0 +1,15 @@ 
+#ifndef __COMPEL_UAPI_HANDLE_ELF__
+#define __COMPEL_UAPI_HANDLE_ELF__
+
+#define COMPEL_TYPE_INT		(1u << 0)
+#define COMPEL_TYPE_LONG	(1u << 1)
+#define COMPEL_TYPE_GOTPCREL	(1u << 2)
+
+typedef struct {
+	unsigned int	offset;
+	unsigned int	type;
+	long		addend;
+	long		value;
+} compel_reloc_t;
+
+#endif