aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/telephony-and-music/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--doc/examples/telephony-and-music/monitor.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/examples/telephony-and-music/monitor.c b/doc/examples/telephony-and-music/monitor.c
index bf3e290..b3cc832 100644
--- a/doc/examples/telephony-and-music/monitor.c
+++ b/doc/examples/telephony-and-music/monitor.c
@@ -13,7 +13,8 @@ static char* pausers = NULL;
-static int is_moc_playing(void)
+static int
+is_moc_playing(void)
{
return !WEXITSTATUS(system("env LANG=C mocp -i 2>/dev/null | grep 'State: PLAY' >/dev/null"));
}
@@ -25,7 +26,8 @@ static int is_moc_playing(void)
* too much for an example, especially since it would also require
* a mutex to make sure two threads do not modify data at the same
* time, causing chaos. */
-static int callback(const char *message, void *user_data)
+static int
+callback(const char *message, void *user_data)
{
char *msg = NULL;
size_t len = 0;
@@ -83,7 +85,8 @@ done:
-int main()
+int
+main()
{
bus_t bus;
t(bus_open(&bus, "/tmp/example-bus", BUS_RDONLY));