From ebc11253078db014895a8321d8d0d23375a878c9 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 19 Oct 2011 21:35:33 +0200 Subject: Coding style: Seperate line for function return type --- src/sink.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/sink.c') diff --git a/src/sink.c b/src/sink.c index 9f36f3e..090659f 100644 --- a/src/sink.c +++ b/src/sink.c @@ -7,7 +7,8 @@ /* * init a sink list */ -GArray *sink_list_alloc(void) +GArray * +sink_list_alloc(void) { return g_array_sized_new(FALSE, FALSE, sizeof(sink_info), 16); } @@ -15,7 +16,8 @@ GArray *sink_list_alloc(void) /* * frees all dynamic allocated components of a sink */ -static void sink_clear(sink_info* sink) +static void +sink_clear(sink_info* sink) { g_free(sink->name); g_free(sink->device); @@ -25,7 +27,8 @@ static void sink_clear(sink_info* sink) /* * frees a complete sink array */ -void sink_list_free(GArray *sink_list) +void +sink_list_free(GArray *sink_list) { for (int i = 0; i < sink_list->len; ++i) sink_clear(&g_array_index(sink_list, sink_info, i)); @@ -35,7 +38,8 @@ void sink_list_free(GArray *sink_list) /* * get sink at index from sink_list */ -sink_info *sink_list_get(gint index) +sink_info * +sink_list_get(gint index) { return &g_array_index(sink_list, sink_info, index); } @@ -43,7 +47,8 @@ sink_info *sink_list_get(gint index) /* * get an input association to an sink by their indizes */ -sink_input_info *sink_input_get(gint sink_list_index, gint index) +sink_input_info * +sink_input_get(gint sink_list_index, gint index) { return &g_array_index(sink_list_get(sink_list_index)->input_list, sink_input_info, index); } -- cgit