API_DOCS: Plug-in management

Questions, comments, and news on the server side plug-ins and it's API
Post Reply
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5182
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

API_DOCS: Plug-in management

Post by JeffM » Fri Apr 06, 2007 5:47 am

3 new API calls for plug-in management have been added to the development version (2.1.x)

Code: Select all

BZF_API int bz_getLoadedPlugins( bz_APIStringList * list );
Will fill the passed in list with the names of all loaded plugins. Returns the number of plug-ins in the list.

Code: Select all

BZF_API bool bz_loadPlugin( const char* path, const char* params );
loads a plug-in, returns true if successful.

Code: Select all

BZF_API bool bz_unloadPlugin( const char* path );
unloads the specified plug-in, returns true if successful. It is not recommended that a plug-in attempt to unload itself.

These commands are the same as the / command versions, but accessible by the API.

Post Reply