1 //===-- lldb-private-interfaces.h -------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef liblldb_lldb_private_interfaces_h_
11 #define liblldb_lldb_private_interfaces_h_
12 
13 #if defined(__cplusplus)
14 
15 #include "lldb/lldb-private.h"
16 
17 namespace lldb_private
18 {
19     typedef lldb::ABISP (*ABICreateInstance) (const ArchSpec &arch);
20     typedef Disassembler* (*DisassemblerCreateInstance) (const ArchSpec &arch, const char *flavor);
21     typedef DynamicLoader* (*DynamicLoaderCreateInstance) (Process* process, bool force);
22     typedef ObjectContainer* (*ObjectContainerCreateInstance) (const lldb::ModuleSP &module_sp, lldb::DataBufferSP& data_sp, lldb::offset_t data_offset, const FileSpec *file, lldb::offset_t offset, lldb::offset_t length);
23     typedef size_t (*ObjectFileGetModuleSpecifications) (const FileSpec &file, lldb::DataBufferSP& data_sp, lldb::offset_t data_offset, lldb::offset_t file_offset, lldb::offset_t length, ModuleSpecList &module_specs);
24     typedef ObjectFile* (*ObjectFileCreateInstance) (const lldb::ModuleSP &module_sp, lldb::DataBufferSP& data_sp, lldb::offset_t data_offset, const FileSpec* file, lldb::offset_t file_offset, lldb::offset_t length);
25     typedef ObjectFile* (*ObjectFileCreateMemoryInstance) (const lldb::ModuleSP &module_sp, lldb::DataBufferSP& data_sp, const lldb::ProcessSP &process_sp, lldb::addr_t offset);
26     typedef LogChannel* (*LogChannelCreateInstance) ();
27     typedef EmulateInstruction * (*EmulateInstructionCreateInstance) (const ArchSpec &arch, InstructionType inst_type);
28     typedef OperatingSystem* (*OperatingSystemCreateInstance) (Process *process, bool force);
29     typedef LanguageRuntime *(*LanguageRuntimeCreateInstance) (Process *process, lldb::LanguageType language);
30     typedef Platform* (*PlatformCreateInstance) (bool force, const ArchSpec *arch);
31     typedef lldb::ProcessSP (*ProcessCreateInstance) (Target &target, Listener &listener, const FileSpec *crash_file_path);
32     typedef SymbolFile* (*SymbolFileCreateInstance) (ObjectFile* obj_file);
33     typedef SymbolVendor* (*SymbolVendorCreateInstance) (const lldb::ModuleSP &module_sp, lldb_private::Stream *feedback_strm);   // Module can be NULL for default system symbol vendor
34     typedef bool (*BreakpointHitCallback) (void *baton, StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id);
35     typedef bool (*WatchpointHitCallback) (void *baton, StoppointCallbackContext *context, lldb::user_id_t watch_id);
36     typedef lldb::ThreadPlanSP (*ThreadPlanShouldStopHereCallback) (ThreadPlan *current_plan, Flags &flags, void *baton);
37     typedef UnwindAssembly* (*UnwindAssemblyCreateInstance) (const ArchSpec &arch);
38     typedef int (*ComparisonFunction)(const void *, const void *);
39     typedef bool (*CommandOverrideCallback)(void *baton, const char **argv);
40     typedef void (*DebuggerInitializeCallback)(Debugger &debugger);
41 
42 } // namespace lldb_private
43 
44 #endif  // #if defined(__cplusplus)
45 
46 #endif  // liblldb_lldb_private_interfaces_h_
47