summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 36c1656)
raw | patch | inline | side by side (parent: 36c1656)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 2 Aug 2006 15:05:36 +0000 (15:05 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 2 Aug 2006 15:05:36 +0000 (15:05 +0000) |
program/bindings/python/rrdtoolmodule.c | patch | blob | history |
index a0061040723af53f0af5157485f86759599f6d59..6f5b36c50e70aebf3027695a89a23e4b6e8a1520 100644 (file)
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)
/* Initialization function for the module */
void
-/*initrrdtool(void)*/
-initrrdtoolmodule(void)
+initrrdtool(void)
{
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__);
- ErrorObject = PyErr_NewException("rrdtoolmodule.error", NULL, NULL);
+ ErrorObject = PyErr_NewException("rrdtool.error", NULL, NULL);
PyDict_SetItemString(d, "error", ErrorObject);
/* Check for errors */