X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=bindings%2Fpython%2Frrdtoolmodule.c;h=f5a96d959b74572b301de4b243cc7b51a7023b6a;hp=13f5d62158400b26019fc39db81ebbcdbda7fa73;hb=82d1ca203c32a6b6a093583ef35323f019064fec;hpb=15dbfecfc1c5cc91acbc450295cb1731226bc937 diff --git a/bindings/python/rrdtoolmodule.c b/bindings/python/rrdtoolmodule.c index 13f5d62..f5a96d9 100644 --- a/bindings/python/rrdtoolmodule.c +++ b/bindings/python/rrdtoolmodule.c @@ -48,7 +48,8 @@ extern int optind; extern int opterr; /* forward declaration to keep compiler happy */ -void initrrdtool(void); +/*void initrrdtool(void);*/ +void initrrdtoolmodule(void); static int create_args(char *command, PyObject *args, int *argc, char ***argv) @@ -492,18 +493,19 @@ static PyMethodDef _rrdtool_methods[] = { /* Initialization function for the module */ void -initrrdtool(void) +/*initrrdtool(void)*/ +initrrdtoolmodule(void) { PyObject *m, *d, *t; /* Create the module and add the functions */ - m = Py_InitModule("rrdtool", _rrdtool_methods); + m = Py_InitModule("rrdtoolmodule", _rrdtool_methods); /* Add some symbolic constants to the module */ d = PyModule_GetDict(m); SET_STRCONSTANT(d, __version__); - ErrorObject = PyErr_NewException("_rrdtool.error", NULL, NULL); + ErrorObject = PyErr_NewException("rrdtoolmodule.error", NULL, NULL); PyDict_SetItemString(d, "error", ErrorObject); /* Check for errors */