solib.h
来自「这是整套横扫千军3D版游戏的源码」· C头文件 代码 · 共 51 行
H
51 行
/**
* @file SoLib.h
* @brief Linux shared library loader
* @author Christopher Han <xiphux@gmail.com>
*
* Linux Shared Object loader class definition
* Copyright (C) 2005. Licensed under the terms of the
* GNU GPL, v2 or later.
*/
#ifndef SOLIB_H
#define SOLIB_H
#include "Platform/SharedLib.h"
/**
* @brief Linux shared library base
*
* This class loads *nix-type *.so shared objects.
* Derived from the abstract SharedLib.
*/
class SoLib: public SharedLib
{
public:
/**
* @brief Constructor
* @param filename shared object to load
*/
SoLib(const char *filename);
/**
* @brief Destructor
*/
~SoLib();
/**
* @brief Find address
* @param symbol Function (symbol) to locate
* @return void pointer to the function if found, NULL otherwise
*/
void *FindAddress(const char *symbol);
private:
/**
* @brief so pointer
* Stores the loaded shared object as a void pointer
* (as per the standard convention)
*/
void *so;
};
#endif /* SOLIB_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?