📄 loader.h
字号:
/* -*- C++ -*- */
/**
* Copyright (c) 2005 Zhejiang University, P.R.China
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
///==================================================
/**
* @file Loader.h
* @brief
* @author Wei He <hwzd1997@163.com>
*
* $Id: Loader.h,v 1.4 2005/03/22 06:36:39 qilj Exp $
*/
///==================================================
#ifdef WIN32
#ifdef ELF_LOADER_EXPORTS
#define ELF_LOADER_API __declspec(dllexport)
#else
#define ELF_LOADER_API __declspec(dllimport)
#endif
#endif
#ifdef LINUX
#define ELF_LOADER_API
#endif
#include "Core/Datatype.h"
extern "C" ELF_LOADER_API void load_binary(std::string filepath);
extern "C"{
ELF_LOADER_API size_t Wukong_Enum_Module(std::vector<Core::Module_Meta> &res);
//the core changed
//ELF_LOADER_API size_t Wukong_Enum_Module(std::vector<Core::Module_Manager::Module_Meta> &res);
//ELF_LOADER_API size_t Wukong_Enum_Module(std::vector<Core::Module_Meta> &res);
ELF_LOADER_API Core::Module * Wukong_Create_Module(const std::string & name);
ELF_LOADER_API bool Wukong_Destroy_Module(const std::string & name, Core::Module * module);
}
//! the user can set start address
//extern "C" ELF_LOADER_API void load_binary_with_address(std::string filepath, Core::u32);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -