Split the Values class into PluginData and Values to use PluginData as a baseclass...
[collectd.git] / src / python.c
index f9360c3..193243b 100644 (file)
@@ -620,6 +620,8 @@ static int cpy_config(oconfig_item_t *ci) {
        Py_Initialize();
        
        PyType_Ready(&ConfigType);
+       PyType_Ready(&PluginDataType);
+       ValuesType.tp_base = &PluginDataType;
        PyType_Ready(&ValuesType);
        sys = PyImport_ImportModule("sys"); /* New reference. */
        if (sys == NULL) {