sourcehook/generate/sourcehook.h
branchhookman_autogen
changeset 455 deec66cea8cc
parent 452 2efe13dab607
child 463 7a413a63426f
     1.1 --- a/sourcehook/generate/sourcehook.h	Fri Nov 09 21:14:37 2007 +0000
     1.2 +++ b/sourcehook/generate/sourcehook.h	Sat Nov 10 16:10:55 2007 +0000
     1.3 @@ -35,6 +35,11 @@
     1.4  // 1 - standard
     1.5  #define SH_HOOKMAN_VERSION 1
     1.6  
     1.7 +// Hookmanautogen versions
     1.8 +//  1 - initial
     1.9 +#define SH_HOOKMANAUTOGEN_IFACE_VERSION 1
    1.10 +#define SH_HOOKMANAUTOGEN_IMPL_VERSION 1
    1.11 +
    1.12  // The value of SH_GLOB_SHPTR has to be a pointer to SourceHook::ISourceHook
    1.13  // It's used in various macros
    1.14  #ifndef SH_GLOB_SHPTR
    1.15 @@ -472,6 +477,17 @@
    1.16  		virtual void EndContext(IHookContext *pCtx) = 0;
    1.17  	};
    1.18  
    1.19 +
    1.20 +	class IHookManagerAutoGen
    1.21 +	{
    1.22 +	public:
    1.23 +		virtual int GetIfaceVersion() = 0;
    1.24 +		virtual int GetImplVersion() = 0;
    1.25 +		
    1.26 +		virtual HookManagerPubFunc MakeHookMan(const ProtoInfo *proto, int vtbl_offs, int vtbl_idx) = 0;
    1.27 +		virtual void ReleaseHookMan(HookManagerPubFunc pubFunc) = 0;
    1.28 +	};
    1.29 +	
    1.30  	// For META_RESULT_ORIG_RET and META_RESULT_OVERRIDE_RET:
    1.31  	//  These have to be able to return references. If T is a reference, the pointers returned
    1.32  	//  from the SH_GLOB_SHPTR are pointers to instances of ReferenceCarrier<T>::type.