LIEF: Library to Instrument Executable Formats Version 0.16.0
Loading...
Searching...
No Matches
MachO/Binary.h
Go to the documentation of this file.
1/* Copyright 2017 - 2024 R. Thomas
2 * Copyright 2017 - 2024 Quarkslab
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#ifndef C_LIEF_MACHO_BINARY_H_
17#define C_LIEF_MACHO_BINARY_H_
18
19#include <stdint.h>
20
21#include "LIEF/visibility.h"
22
23#include "LIEF/MachO/Header.h"
25#include "LIEF/MachO/Symbol.h"
26#include "LIEF/MachO/Section.h"
27#include "LIEF/MachO/Segment.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
44
46
49
51
52#ifdef __cplusplus
53}
54#endif
55
56
57#endif
struct Macho_Command_t Macho_Command_t
Definition LoadCommand.h:32
Macho_Binary_t ** macho_parse(const char *file)
Wrapper on LIEF::MachO::Parser::parse.
void macho_binaries_destroy(Macho_Binary_t **binaries)
struct Macho_Header_t Macho_Header_t
Definition MachO/Header.h:37
struct Macho_Section_t Macho_Section_t
Definition MachO/Section.h:43
struct Macho_Segment_t Macho_Segment_t
Definition MachO/Segment.h:41
struct Macho_Symbol_t Macho_Symbol_t
Definition MachO/Symbol.h:34
LIEF::MachO::Binary C Handler.
Definition MachO/Binary.h:34
void * handler
Definition MachO/Binary.h:35
Macho_Header_t header
Definition MachO/Binary.h:37
Macho_Section_t ** sections
Definition MachO/Binary.h:40
Macho_Segment_t ** segments
Definition MachO/Binary.h:41
Macho_Command_t ** commands
Definition MachO/Binary.h:38
uint64_t imagebase
Definition MachO/Binary.h:36
Macho_Symbol_t ** symbols
Definition MachO/Binary.h:39
#define LIEF_API
Definition visibility.h:41