summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 15dbfec)
raw | patch | inline | side by side (parent: 15dbfec)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 27 May 2006 05:44:15 +0000 (05:44 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 27 May 2006 05:44:15 +0000 (05:44 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@839 a5681a0c-68f1-0310-ab6d-d61299d08faa
bindings/python/rrdtoolmodule.c | patch | blob | history |
index 13f5d62158400b26019fc39db81ebbcdbda7fa73..f5a96d959b74572b301de4b243cc7b51a7023b6a 100644 (file)
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)
/* 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 */