X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fcpython.h;h=69a4298d662e0f8d66d9f223c2cb900c4f511bae;hp=5389e7e8178c7328503fb725c3ee4037a3e5ae52;hb=07c09de5e28055a5a0f43067d51211e97039fa82;hpb=f8434c01ff20f6380580c4161447ff4d11fcdc6a diff --git a/src/cpython.h b/src/cpython.h index 5389e7e8..69a4298d 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; + // clang-format on char host[DATA_MAX_NAME_LEN]; char plugin[DATA_MAX_NAME_LEN]; char plugin_instance[DATA_MAX_NAME_LEN];