projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tree wide: Replace sstrerror() with STRERRNO.
[collectd.git]
/
src
/
cpython.h
diff --git
a/src/cpython.h
b/src/cpython.h
index
5389e7e
..
38951c0
100644
(file)
--- a/
src/cpython.h
+++ b/
src/cpython.h
@@
-144,17
+144,21
@@
void cpy_log_exception(const char *context);
/* Python object declarations. */
typedef struct {
/* Python object declarations. */
typedef struct {
+ // clang-format off
PyObject_HEAD /* No semicolon! */
PyObject_HEAD /* No semicolon! */
- PyObject *parent; /* Config */
+ PyObject *parent;
/* Config */
PyObject *key; /* String */
PyObject *values; /* Sequence */
PyObject *children; /* Sequence */
PyObject *key; /* String */
PyObject *values; /* Sequence */
PyObject *children; /* Sequence */
+ // clang-format on
} Config;
extern PyTypeObject ConfigType;
typedef struct {
} Config;
extern PyTypeObject ConfigType;
typedef struct {
+ // clang-format off
PyObject_HEAD /* No semicolon! */
double time;
PyObject_HEAD /* No semicolon! */
double time;
+ // clang-format on
char host[DATA_MAX_NAME_LEN];
char plugin[DATA_MAX_NAME_LEN];
char plugin_instance[DATA_MAX_NAME_LEN];
char host[DATA_MAX_NAME_LEN];
char plugin[DATA_MAX_NAME_LEN];
char plugin_instance[DATA_MAX_NAME_LEN];
@@
-177,6
+181,7
@@
extern PyTypeObject ValuesType;
typedef struct {
PluginData data;
typedef struct {
PluginData data;
+ PyObject *meta; /* dict */
int severity;
char message[NOTIF_MAX_MSG_LEN];
} Notification;
int severity;
char message[NOTIF_MAX_MSG_LEN];
} Notification;