fixing python bindings ... Jarod Wilson jwilson redhat.com
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 2 Aug 2006 15:05:36 +0000 (15:05 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 2 Aug 2006 15:05:36 +0000 (15:05 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@864 a5681a0c-68f1-0310-ab6d-d61299d08faa

bindings/python/rrdtoolmodule.c

index a006104..6f5b36c 100644 (file)
@@ -48,8 +48,7 @@ extern int optind;
 extern int opterr;
 
 /* forward declaration to keep compiler happy */
 extern int opterr;
 
 /* forward declaration to keep compiler happy */
-/*void initrrdtool(void);*/
-void initrrdtoolmodule(void);
+void initrrdtool(void);
 
 static int
 create_args(char *command, PyObject *args, int *argc, char ***argv)
 
 static int
 create_args(char *command, PyObject *args, int *argc, char ***argv)
@@ -518,19 +517,18 @@ static PyMethodDef _rrdtool_methods[] = {
 
 /* Initialization function for the module */
 void
 
 /* Initialization function for the module */
 void
-/*initrrdtool(void)*/
-initrrdtoolmodule(void)
+initrrdtool(void)
 {
     PyObject    *m, *d, *t;
 
     /* Create the module and add the functions */
 {
     PyObject    *m, *d, *t;
 
     /* Create the module and add the functions */
-    m = Py_InitModule("rrdtoolmodule", _rrdtool_methods);
+    m = Py_InitModule("rrdtool", _rrdtool_methods);
 
     /* Add some symbolic constants to the module */
     d = PyModule_GetDict(m);
 
     SET_STRCONSTANT(d, __version__);
 
     /* Add some symbolic constants to the module */
     d = PyModule_GetDict(m);
 
     SET_STRCONSTANT(d, __version__);
-    ErrorObject = PyErr_NewException("rrdtoolmodule.error", NULL, NULL);
+    ErrorObject = PyErr_NewException("rrdtool.error", NULL, NULL);
     PyDict_SetItemString(d, "error", ErrorObject);
 
     /* Check for errors */
     PyDict_SetItemString(d, "error", ErrorObject);
 
     /* Check for errors */