forked from Vector35/workflow_objc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCustomTypes.h
39 lines (30 loc) · 1014 Bytes
/
CustomTypes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Copyright (c) 2022-2023 Jon Palmisciano. All rights reserved.
*
* Use of this source code is governed by the BSD 3-Clause license; the full
* terms of the license can be found in the LICENSE.txt file.
*/
#pragma once
#include "BinaryNinja.h"
/**
* All type-related things.
*/
namespace CustomTypes {
const std::string TaggedPointer = "tptr_t";
const std::string FastPointer = "fptr_t";
const std::string RelativePointer = "rptr_t";
const std::string ID = "id";
const std::string Selector = "SEL";
const std::string CFString = "CFString";
const std::string MethodList = "objc_method_list_t";
const std::string Method = "objc_method_t";
const std::string MethodListEntry = "objc_method_entry_t";
const std::string IvarList = "objc_ivar_list_t";
const std::string Ivar = "objc_ivar_t";
const std::string Class = "objc_class_t";
const std::string ClassRO = "objc_class_ro_t";
/**
* Define all Objective-C-related types for a view.
*/
void defineAll(BinaryNinja::Ref<BinaryNinja::BinaryView>);
}