2017-03-30 16:56:49 +02:00
|
|
|
/* Copyright 2017 R. Thomas
|
|
|
|
* Copyright 2017 Quarkslab
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
#ifndef PY_LIEF_MACHO_H_
|
|
|
|
#define PY_LIEF_MACHO_H_
|
|
|
|
|
|
|
|
#include "LIEF/MachO/Parser.hpp"
|
|
|
|
#include "LIEF/MachO/Binary.hpp"
|
|
|
|
#include "LIEF/MachO/Builder.hpp"
|
|
|
|
|
|
|
|
#include "pyLIEF.hpp"
|
|
|
|
|
|
|
|
using namespace LIEF::MachO;
|
|
|
|
|
|
|
|
PYBIND11_MAKE_OPAQUE(std::vector<Binary*>)
|
|
|
|
|
|
|
|
void init_MachO_Parser_class(py::module&);
|
2017-09-29 09:57:00 +02:00
|
|
|
void init_MachO_FatBinary_class(py::module&);
|
2017-03-30 16:56:49 +02:00
|
|
|
void init_MachO_Binary_class(py::module&);
|
|
|
|
void init_MachO_Header_class(py::module&);
|
|
|
|
void init_MachO_LoadCommand_class(py::module&);
|
|
|
|
void init_MachO_DylibCommand_class(py::module&);
|
|
|
|
void init_MachO_SegmentCommand_class(py::module&);
|
|
|
|
void init_MachO_Section_class(py::module&);
|
|
|
|
void init_MachO_Symbol_class(py::module&);
|
2017-06-23 21:35:06 +02:00
|
|
|
void init_MachO_UUIDCommand_class(py::module&);
|
2017-06-25 18:16:11 +02:00
|
|
|
void init_MachO_MainCommand_class(py::module&);
|
|
|
|
void init_MachO_DylinkerCommand_class(py::module&);
|
2017-07-04 11:37:21 +02:00
|
|
|
void init_MachO_DyldInfo_class(py::module&);
|
2017-07-05 20:21:26 +02:00
|
|
|
void init_MachO_FunctionStarts_class(py::module&);
|
2017-07-07 21:21:22 +02:00
|
|
|
void init_MachO_SourceVersion_class(py::module&);
|
2017-07-27 15:50:55 +02:00
|
|
|
void init_MachO_VersionMin_class(py::module&);
|
2017-07-17 17:22:55 +02:00
|
|
|
void init_MachO_Relocation_class(py::module&);
|
2017-07-30 17:22:09 +02:00
|
|
|
void init_MachO_RelocationObject_class(py::module&);
|
|
|
|
void init_MachO_RelocationDyld_class(py::module&);
|
|
|
|
void init_MachO_BindingInfo_class(py::module&);
|
|
|
|
void init_MachO_ExportInfo_class(py::module&);
|
2017-09-13 17:42:05 +02:00
|
|
|
void init_MachO_ThreadCommand_class(py::module&);
|
2017-03-30 16:56:49 +02:00
|
|
|
|
|
|
|
// Enums
|
|
|
|
void init_MachO_Structures_enum(py::module&);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|