X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fcpython.h;h=38951c0fb348fb8179f4dedd1b436bcdebcfc8e7;hp=04fad0ca9566bc2b223e93e9ffbdc30483f74750;hb=1159cb5d383c55a80a0db100b8f7aadcf44740a5;hpb=aecd05a0a0ec4d745506a67a937de6d1d6b33db5 diff --git a/src/cpython.h b/src/cpython.h index 04fad0ca..38951c0f 100644 --- a/src/cpython.h +++ b/src/cpython.h @@ -144,17 +144,21 @@ void cpy_log_exception(const char *context); /* Python object declarations. */ typedef struct { + // clang-format off PyObject_HEAD /* No semicolon! */ - PyObject *parent; /* Config */ + PyObject *parent; /* Config */ PyObject *key; /* String */ PyObject *values; /* Sequence */ PyObject *children; /* Sequence */ + // clang-format on } Config; extern PyTypeObject ConfigType; typedef struct { + // clang-format off PyObject_HEAD /* No semicolon! */ - double time; + double time; + // clang-format on char host[DATA_MAX_NAME_LEN]; char plugin[DATA_MAX_NAME_LEN]; char plugin_instance[DATA_MAX_NAME_LEN];