extension.h

来自「brew学习的很好的例子」· C头文件 代码 · 共 37 行

H
37
字号
#ifndef EXTENSION_H
#define EXTENSION_H
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct _IExtClass IExtClass;

QINTERFACE(IExtClass)
{
	DECLARE_IBASE(IExtClass)
	void      (*DrawHelloWorld)(IExtClass * po);
};

#define IEXTCLASS_AddRef(p)           GET_PVTBL(p,IExtClass)->AddRef(p)
#define IEXTCLASS_Release(p)          GET_PVTBL(p,IExtClass)->Release(p)
#define IEXTCLASS_DrawHelloWorld(p)   GET_PVTBL(p,IExtClass)->DrawHelloWorld(p)

typedef struct extclass_s
{
	// Declare VTable
	DECLARE_VTBL(IExtClass)
	// Class member variables
	uint32       m_nRefs;
	IShell *     m_pIShell;
	IDisplay *   m_pIDisplay;
	IModule *    m_pIModule;
	void *m_pApp;
} extclass_t;

#ifdef __cplusplus
}
#endif



#endif 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?