You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
/******************************************************************************
|
|
|
|
|
|
Copyright(C):2015~2018 hzleaper
|
|
|
|
|
|
FileName:LoadModule.h
|
|
|
|
|
|
Author:zhikun wu
|
|
|
|
|
|
Email:zk.wu@hzleaper.com
|
|
|
|
|
|
Tools:vs2010 pc on company
|
|
|
|
|
|
Created:2015/03/23
|
|
|
|
|
|
History:23:3:2015 17:48
|
|
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
#ifndef __LOAD_MODULE_H
|
|
|
|
|
|
#define __LOAD_MODULE_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <QtCore/QLibrary>
|
|
|
|
|
|
|
|
|
|
|
|
typedef void* (*Func_Lib_Init)(void *);
|
|
|
|
|
|
typedef void (*Func_Lib_Free)();
|
|
|
|
|
|
|
|
|
|
|
|
class CLoadModule
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
CLoadModule(const char *szLibName, const char *szFuncInit, const char *szFuncFree, const char* szPath = NULL);
|
|
|
|
|
|
~CLoadModule(void);
|
|
|
|
|
|
|
|
|
|
|
|
void* ModuleInit(void* inParam = NULL);
|
|
|
|
|
|
void ModuleFree();
|
|
|
|
|
|
private:
|
|
|
|
|
|
QLibrary m_lib;
|
|
|
|
|
|
Func_Lib_Init m_fpInit;
|
|
|
|
|
|
Func_Lib_Free m_fpFree;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|