core/interfaces/IShareSys.h
changeset 304 fa485d2f25ed
parent 229 7819a42069e4
child 312 804f4de0aa69
     1.1 --- a/core/interfaces/IShareSys.h	Tue Jan 16 20:45:13 2007 +0000
     1.2 +++ b/core/interfaces/IShareSys.h	Wed Jan 17 03:01:38 2007 +0000
     1.3 @@ -7,6 +7,7 @@
     1.4  
     1.5  namespace SourceMod
     1.6  {
     1.7 +	class IExtension;
     1.8  	struct IdentityToken_t;
     1.9  	typedef unsigned int		HandleType_t;
    1.10  	typedef HandleType_t		IdentityType_t;
    1.11 @@ -53,11 +54,11 @@
    1.12  		/**
    1.13  		 * @brief Adds an interface to the global interface system.
    1.14  		 *
    1.15 +		 * @param myself		Object adding this interface, in order to track dependencies.
    1.16  		 * @param iface			Interface pointer (must be unique).
    1.17 -		 * @param token			Parent token of the module/interface.
    1.18  		 * @return				True on success, false otherwise.
    1.19  		 */
    1.20 -		virtual bool AddInterface(SMInterface *iface, IdentityToken_t *token) =0;
    1.21 +		virtual bool AddInterface(IExtension *myself, SMInterface *iface) =0;
    1.22  
    1.23  		/**
    1.24  		 * @brief Requests an interface from the global interface system.
    1.25 @@ -65,12 +66,12 @@
    1.26  		 *
    1.27  		 * @param iface_name	Interface name.
    1.28  		 * @param iface_vers	Interface version to attempt to match.
    1.29 -		 * @param token			Object requesting this interface, in order to track dependencies.
    1.30 +		 * @param myself		Object requesting this interface, in order to track dependencies.
    1.31  		 * @param pIface		Pointer to store the return value in.
    1.32  		 */
    1.33  		virtual bool RequestInterface(const char *iface_name, 
    1.34  										unsigned int iface_vers,
    1.35 -										IdentityToken_t *token,
    1.36 +										IExtension *myself,
    1.37  										SMInterface **pIface) =0;
    1.38  
    1.39  		/**