core/PluginSys.h
changeset 3703 391951cdde71
parent 3613 b0740093756d
child 3790 98b099a406d2
     1.1 --- a/core/PluginSys.h	Fri Dec 14 15:12:22 2012 -0500
     1.2 +++ b/core/PluginSys.h	Fri Dec 14 15:15:12 2012 -0500
     1.3 @@ -131,6 +131,12 @@
     1.4  	APLRes_SilentFailure
     1.5  };
     1.6  
     1.7 +enum LibraryAction
     1.8 +{
     1.9 +	LibraryAction_Removed,
    1.10 +	LibraryAction_Added
    1.11 +};
    1.12 +
    1.13  struct AutoConfig
    1.14  {
    1.15  	String autocfg;
    1.16 @@ -250,7 +256,7 @@
    1.17  	{
    1.18  		m_Libraries.push_back(name);
    1.19  	}
    1.20 -	void LibraryActions(bool dropping);
    1.21 +	void LibraryActions(LibraryAction action);
    1.22  	void SyncMaxClients(int max_clients);
    1.23  protected:
    1.24  	bool UpdateInfo();
    1.25 @@ -403,7 +409,7 @@
    1.26  
    1.27  	void Shutdown();
    1.28  
    1.29 -	void OnLibraryAction(const char *lib, bool is_a_plugin, bool drop);
    1.30 +	void OnLibraryAction(const char *lib, LibraryAction action);
    1.31  
    1.32  	bool LibraryExists(const char *lib);
    1.33  
    1.34 @@ -475,6 +481,10 @@
    1.35  	
    1.36  	// Config
    1.37  	bool m_bBlockBadPlugins;
    1.38 +	
    1.39 +	// Forwards
    1.40 +	IForward *m_pOnLibraryAdded;
    1.41 +	IForward *m_pOnLibraryRemoved;
    1.42  };
    1.43  
    1.44  extern CPluginManager g_PluginSys;