diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-10-19 21:35:33 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-10-19 21:35:33 +0200 |
commit | ebc11253078db014895a8321d8d0d23375a878c9 (patch) | |
tree | 7e40dcff8a0bf66cad15bd92fdf6e8077523fac8 /src/pa-sink-ctl.c | |
parent | a97cfd759d060b87aaf352f9b56884af61dbfb69 (diff) | |
download | pa-sink-ctl-ebc11253078db014895a8321d8d0d23375a878c9.tar.gz pa-sink-ctl-ebc11253078db014895a8321d8d0d23375a878c9.tar.bz2 pa-sink-ctl-ebc11253078db014895a8321d8d0d23375a878c9.zip |
Coding style: Seperate line for function return type
Diffstat (limited to 'src/pa-sink-ctl.c')
-rw-r--r-- | src/pa-sink-ctl.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c index 102a78c..7a3f21c 100644 --- a/src/pa-sink-ctl.c +++ b/src/pa-sink-ctl.c @@ -13,7 +13,8 @@ gboolean context_ready = FALSE; static gboolean info_callbacks_finished = TRUE; static gboolean info_callbacks_blocked = FALSE; -int main(int argc, char** argv) +int +main(int argc, char** argv) { pa_mainloop_api *mainloop_api = NULL; pa_glib_mainloop *m = NULL; @@ -56,7 +57,8 @@ int main(int argc, char** argv) return 0; } -static void subscribe_cb(pa_context *c, pa_subscription_event_type_t t, guint32 idx, gpointer userdata) +static void +subscribe_cb(pa_context *c, pa_subscription_event_type_t t, guint32 idx, gpointer userdata) { if (!info_callbacks_finished) info_callbacks_blocked = TRUE; @@ -67,7 +69,8 @@ static void subscribe_cb(pa_context *c, pa_subscription_event_type_t t, guint32 /* * is called after connection */ -void context_state_callback(pa_context *c, gpointer userdata) +void +context_state_callback(pa_context *c, gpointer userdata) { static pa_operation *o = NULL; context_ready = FALSE; @@ -112,7 +115,8 @@ void context_state_callback(pa_context *c, gpointer userdata) /* * the begin of the callback loops */ -void get_sink_info_callback(pa_context *c, const pa_sink_info *i, gint is_last, gpointer userdata) +void +get_sink_info_callback(pa_context *c, const pa_sink_info *i, gint is_last, gpointer userdata) { g_assert(userdata != NULL); GArray *sink_list_tmp = userdata; @@ -142,7 +146,8 @@ void get_sink_info_callback(pa_context *c, const pa_sink_info *i, gint is_last, /* * is called after sink-input */ -void get_sink_input_info_callback(pa_context *c, const pa_sink_input_info *i, gint is_last, gpointer userdata) +void +get_sink_input_info_callback(pa_context *c, const pa_sink_input_info *i, gint is_last, gpointer userdata) { g_assert(userdata != NULL); GArray *sink_list_tmp = userdata; @@ -181,7 +186,8 @@ void get_sink_input_info_callback(pa_context *c, const pa_sink_input_info *i, gi })); } -void quit(void) +void +quit(void) { pa_context_disconnect(context); } @@ -189,12 +195,14 @@ void quit(void) /* * is called, after user input */ -void change_callback(pa_context* c, gint success, gpointer userdata) +void +change_callback(pa_context* c, gint success, gpointer userdata) { return; } -void collect_all_info(void) +void +collect_all_info(void) { if (!info_callbacks_finished) return; |