summaryrefslogtreecommitdiff
path: root/plugins/elf/python
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-10-15 21:44:28 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-10-15 21:44:28 (GMT)
commit1e7c7de85438749d3faf7b76984b86a9c088fbc1 (patch)
tree8d118fd269c23d019e7c7d8bd60c33c0c8809a56 /plugins/elf/python
parent105394bcc19b3565c6b77d38625d8813596d0c1b (diff)
Refactored ELF related code.
Diffstat (limited to 'plugins/elf/python')
-rw-r--r--plugins/elf/python/Makefile.am4
-rw-r--r--plugins/elf/python/format.c (renamed from plugins/elf/python/elf.c)6
-rw-r--r--plugins/elf/python/format.h (renamed from plugins/elf/python/elf.h)8
-rw-r--r--plugins/elf/python/module.c2
4 files changed, 10 insertions, 10 deletions
diff --git a/plugins/elf/python/Makefile.am b/plugins/elf/python/Makefile.am
index 4de3e3c..c39d170 100644
--- a/plugins/elf/python/Makefile.am
+++ b/plugins/elf/python/Makefile.am
@@ -2,7 +2,7 @@
noinst_LTLIBRARIES = libelfpython.la
libelfpython_la_SOURCES = \
- elf.h elf.c \
+ format.h format.c \
module.h module.c
@@ -10,6 +10,6 @@ libelfpython_la_LDFLAGS =
AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) $(LIBPYGOBJECT_CFLAGS) \
- -I../../../src -I../../..
+ -I$(top_srcdir)/src
AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)
diff --git a/plugins/elf/python/elf.c b/plugins/elf/python/format.c
index 1f5ddb2..84aa68c 100644
--- a/plugins/elf/python/elf.c
+++ b/plugins/elf/python/format.c
@@ -1,6 +1,6 @@
/* Chrysalide - Outil d'analyse de fichiers binaires
- * elf.c - équivalent Python du fichier "format/elf/elf.c"
+ * format.c - équivalent Python du fichier "plugins/elf/format.c"
*
* Copyright (C) 2013-2017 Cyrille Bagard
*
@@ -22,7 +22,7 @@
*/
-#include "elf.h"
+#include "format.h"
#include <pygobject.h>
@@ -36,7 +36,7 @@
#include <plugins/pychrysa/format/executable.h>
-#include "../elf.h"
+#include "../format.h"
diff --git a/plugins/elf/python/elf.h b/plugins/elf/python/format.h
index cf6a706..10e7a13 100644
--- a/plugins/elf/python/elf.h
+++ b/plugins/elf/python/format.h
@@ -1,6 +1,6 @@
/* Chrysalide - Outil d'analyse de fichiers binaires
- * elf.h - prototypes pour l'équivalent Python du fichier "format/elf/elf.h"
+ * format.h - prototypes pour l'équivalent Python du fichier "plugins/elf/format.h"
*
* Copyright (C) 2013-2017 Cyrille Bagard
*
@@ -22,8 +22,8 @@
*/
-#ifndef _PLUGINS_PYCHRYSA_FORMAT_ELF_ELF_H
-#define _PLUGINS_PYCHRYSA_FORMAT_ELF_ELF_H
+#ifndef _PLUGINS_ELF_PYTHON_FORMAT_H
+#define _PLUGINS_ELF_PYTHON_FORMAT_H
#include <Python.h>
@@ -39,4 +39,4 @@ bool register_python_elf_format(PyObject *);
-#endif /* _PLUGINS_PYCHRYSA_FORMAT_ELF_ELF_H */
+#endif /* _PLUGINS_ELF_PYTHON_FORMAT_H */
diff --git a/plugins/elf/python/module.c b/plugins/elf/python/module.c
index faf0458..72d6dfc 100644
--- a/plugins/elf/python/module.c
+++ b/plugins/elf/python/module.c
@@ -31,7 +31,7 @@
#include <plugins/pychrysa/access.h>
-#include "elf.h"
+#include "format.h"