summaryrefslogtreecommitdiff
path: root/le/le_object_table_entry.cpp
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-07-05 17:51:21 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-07-05 17:51:21 +0200
commit06336eaddcc6a8f9cc578d8f059117c3aa535c9f (patch)
tree4884cc68161df06112a49a04007fa6d03775d507 /le/le_object_table_entry.cpp
parentb80a82fcc9edc73057796005cede4eea8380e193 (diff)
downloadopenwar-06336eaddcc6a8f9cc578d8f059117c3aa535c9f.tar.gz
openwar-06336eaddcc6a8f9cc578d8f059117c3aa535c9f.tar.bz2
openwar-06336eaddcc6a8f9cc578d8f059117c3aa535c9f.zip
Made the interface somewhat more consistant.
Diffstat (limited to 'le/le_object_table_entry.cpp')
-rw-r--r--le/le_object_table_entry.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/le/le_object_table_entry.cpp b/le/le_object_table_entry.cpp
deleted file mode 100644
index 68e77ba..0000000
--- a/le/le_object_table_entry.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-#include "le_object_table_entry.hpp"
-
-#include "parse.hpp"
-#include "output.hpp"
-
-#include <boost/fusion/adapted/struct.hpp>
-
-BOOST_FUSION_ADAPT_STRUCT(
- le::ObjectTableEntry,
- (binparse::Value32, virtual_size)
- (binparse::Offset32, reloc_base_address)
- (binparse::Value32, object_flags)
- (binparse::Value32, page_table_index)
- (binparse::Value32, nr_page_table_entries)
- (binparse::Value32, reserved)
-)
-
-namespace le {
-
-ObjectTableEntry parse_object_table_entry(std::istream& is) {
- using binparse::parse;
-
- return parse<ObjectTableEntry>(is);
-}
-
-std::ostream& operator<<(std::ostream& os, const ObjectTableEntry& entry)
-{
- return binparse::operator<<(os, entry);
-}
-
-}