Cleanup and more API docs.

This commit is contained in:
Robin Sommer 2013-05-30 16:45:14 -07:00
parent 4ccd6d76fd
commit e3a7e0301b
18 changed files with 349 additions and 92 deletions

View file

@ -1,3 +1,4 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include <cassert>
@ -9,6 +10,12 @@
using namespace plugin;
BifItem::BifItem(const std::string& arg_id, Type arg_type)
{
id = copy_string(arg_id.c_str());
type = arg_type;
}
BifItem::BifItem(const BifItem& other)
{
id = copy_string(other.id);
@ -91,11 +98,11 @@ void Plugin::SetAPIVersion(int arg_version)
api_version = arg_version;
}
void Plugin::Init()
void Plugin::InitPreScript()
{
}
void Plugin::InitBif()
void Plugin::InitPostScript()
{
for ( bif_init_func_list::const_iterator f = bif_inits.begin(); f != bif_inits.end(); f++ )
{