From 7b1dcdab581d501e6667259e992e5d8fde6d5947 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 15 Dec 2018 13:55:07 +0000 Subject: [PATCH] Fix indentation of .c files Required to make gst-indent linter on CI happy. --- testsuite/old/test-object.c | 17 ++++++++++------- testsuite/old/testhelpermodule.c | 38 +++++++++++++++++++------------------- 2 files changed, 29 insertions(+), 26 deletions(-) diff --git a/testsuite/old/test-object.c b/testsuite/old/test-object.c index 738f568..0cb74b7 100644 --- a/testsuite/old/test-object.c +++ b/testsuite/old/test-object.c @@ -10,16 +10,19 @@ enum static guint test_object_signals[LAST_SIGNAL] = { 0 }; -G_DEFINE_TYPE(TestObject, test_object, G_TYPE_OBJECT); +G_DEFINE_TYPE (TestObject, test_object, G_TYPE_OBJECT); -static void test_object_init (TestObject *self) {} -static void test_object_class_init (TestObjectClass *klass) +static void +test_object_init (TestObject * self) +{ +} + +static void +test_object_class_init (TestObjectClass * klass) { test_object_signals[SIGNAL_EVENT] = g_signal_new ("event", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (TestObjectClass, event), NULL, NULL, - g_cclosure_marshal_VOID__BOXED, G_TYPE_NONE, 1, - GST_TYPE_EVENT); + G_STRUCT_OFFSET (TestObjectClass, event), NULL, NULL, + g_cclosure_marshal_VOID__BOXED, G_TYPE_NONE, 1, GST_TYPE_EVENT); } - diff --git a/testsuite/old/testhelpermodule.c b/testsuite/old/testhelpermodule.c index 1325262..0768d81 100644 --- a/testsuite/old/testhelpermodule.c +++ b/testsuite/old/testhelpermodule.c @@ -12,45 +12,45 @@ _wrap_get_object (PyObject * self) if (!obj) { return NULL; } - - return pygobject_new(obj); + + return pygobject_new (obj); } static PyObject * -_wrap_emit_event (PyObject * self, PyObject *args) +_wrap_emit_event (PyObject * self, PyObject * args) { PyGObject *obj; GstEventType event_type = GST_EVENT_UNKNOWN; GstEvent *event; - - if (!PyArg_ParseTuple(args, "O|i", &obj, &event_type)) + + if (!PyArg_ParseTuple (args, "O|i", &obj, &event_type)) return NULL; - event = gst_event_new_custom(event_type, NULL); - - g_signal_emit_by_name(G_OBJECT(obj->obj), "event", event); - - gst_mini_object_unref(GST_MINI_OBJECT(event)); + event = gst_event_new_custom (event_type, NULL); + + g_signal_emit_by_name (G_OBJECT (obj->obj), "event", event); - Py_INCREF(Py_None); + gst_mini_object_unref (GST_MINI_OBJECT (event)); + + Py_INCREF (Py_None); return Py_None; } static PyMethodDef testhelper_methods[] = { - { "get_object", (PyCFunction)_wrap_get_object, METH_NOARGS }, - { "emit_event", (PyCFunction)_wrap_emit_event, METH_VARARGS }, - { NULL, NULL } + {"get_object", (PyCFunction) _wrap_get_object, METH_NOARGS}, + {"emit_event", (PyCFunction) _wrap_emit_event, METH_VARARGS}, + {NULL, NULL} }; -void +void inittesthelper () { PyObject *m, *d; - - init_pygobject(); - gst_init(NULL, NULL); + + init_pygobject (); + gst_init (NULL, NULL); m = Py_InitModule ("testhelper", testhelper_methods); - d = PyModule_GetDict(m); + d = PyModule_GetDict (m); } -- 2.7.4