diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-10-19 21:46:22 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-10-19 21:49:45 +0200 |
commit | b207fb98c8f3d5b335780141f667404b3d632810 (patch) | |
tree | be62c01e1fc34c6aa3f9b0f0cbeb2cb54ee0d2e9 /src | |
parent | 5e110e2a96b33496fac18216eb81e2895d785fdf (diff) | |
download | pa-sink-ctl-b207fb98c8f3d5b335780141f667404b3d632810.tar.gz pa-sink-ctl-b207fb98c8f3d5b335780141f667404b3d632810.tar.bz2 pa-sink-ctl-b207fb98c8f3d5b335780141f667404b3d632810.zip |
interface: Rename status to interface_set_status
Diffstat (limited to 'src')
-rw-r--r-- | src/interface.c | 4 | ||||
-rw-r--r-- | src/interface.h | 2 | ||||
-rw-r--r-- | src/pa-sink-ctl.c | 14 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/interface.c b/src/interface.c index 3e87046..ffaf4a8 100644 --- a/src/interface.c +++ b/src/interface.c @@ -51,7 +51,7 @@ interface_resize(gpointer data) mvwin(msg_win, height - H_MSG_BOX, 0); /* NULL := display old status */ - status(NULL); + interface_set_status(NULL); print_sink_list(); return TRUE; } @@ -332,7 +332,7 @@ interface_clear(void) } void -status(const gchar *msg) +interface_set_status(const gchar *msg) { static gchar *save = NULL; if (msg != NULL) { diff --git a/src/interface.h b/src/interface.h index 918ccfe..e251b8f 100644 --- a/src/interface.h +++ b/src/interface.h @@ -7,6 +7,6 @@ void print_sink_list(void); void interface_init(void); void interface_clear(void); -void status(const gchar *); +void interface_set_status(const gchar *); #endif diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c index 7a3f21c..e9f9c23 100644 --- a/src/pa-sink-ctl.c +++ b/src/pa-sink-ctl.c @@ -76,13 +76,13 @@ context_state_callback(pa_context *c, gpointer userdata) context_ready = FALSE; switch (pa_context_get_state(c)) { case PA_CONTEXT_CONNECTING: - status("connecting..."); + interface_set_status("connecting..."); break; case PA_CONTEXT_AUTHORIZING: - status("authorizing..."); + interface_set_status("authorizing..."); break; case PA_CONTEXT_SETTING_NAME: - status("setting name..."); + interface_set_status("setting name..."); break; case PA_CONTEXT_READY: @@ -92,10 +92,10 @@ context_state_callback(pa_context *c, gpointer userdata) PA_SUBSCRIPTION_MASK_SINK | PA_SUBSCRIPTION_MASK_SINK_INPUT ), NULL, NULL))); context_ready = TRUE; - status("ready to process events."); + interface_set_status("ready to process events."); break; case PA_CONTEXT_FAILED: - status("cannot connect!"); + interface_set_status("cannot connect!"); break; case PA_CONTEXT_TERMINATED: @@ -103,11 +103,11 @@ context_state_callback(pa_context *c, gpointer userdata) pa_operation_cancel(o); pa_operation_unref(o); o = NULL; - status("connection terminated."); + interface_set_status("connection terminated."); g_main_loop_quit((GMainLoop *)userdata); break; default: - status("unknown state"); + interface_set_status("unknown state"); break; } } |