Revert "WIP - Unload plugin commands"

This reverts commit a01eb5d08e.
This commit is contained in:
James Booth
2016-06-30 22:37:52 +01:00
parent a01eb5d08e
commit 29eb843d56
21 changed files with 21 additions and 162 deletions

View File

@@ -105,7 +105,7 @@ python_api_cons_bad_cmd_usage(PyObject *self, PyObject *args)
static PyObject*
python_api_register_command(PyObject *self, PyObject *args)
{
char *command_name = NULL;
const char *command_name = NULL;
int min_args = 0;
int max_args = 0;
PyObject *synopsis = NULL;
@@ -165,7 +165,7 @@ python_api_register_command(PyObject *self, PyObject *args)
c_examples[len] = NULL;
allow_python_threads();
api_register_command(plugin_name, command_name, min_args, max_args, c_synopsis,
api_register_command(command_name, min_args, max_args, c_synopsis,
description, c_arguments, c_examples, p_callback, python_command_callback);
disable_python_threads();
}