diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-05-15 13:34:07 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-05-15 13:34:07 +0200 |
commit | ae94bb1a7003c42c43356705d10d841446b6ca28 (patch) | |
tree | 7f6e10d3dc5dd9c60fb924f8900fbebf1ec55473 /doc | |
parent | doc: bus-chmod: octals (diff) | |
download | bus-ae94bb1a7003c42c43356705d10d841446b6ca28.tar.gz bus-ae94bb1a7003c42c43356705d10d841446b6ca28.tar.bz2 bus-ae94bb1a7003c42c43356705d10d841446b6ca28.tar.xz |
update examples
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/daemon-depedencies/announce.c | 2 | ||||
-rw-r--r-- | doc/examples/daemon-depedencies/await-ready.c | 2 | ||||
-rw-r--r-- | doc/examples/daemon-depedencies/await-started.c | 2 | ||||
-rw-r--r-- | doc/examples/daemon-depedencies/require.c | 2 | ||||
-rw-r--r-- | doc/examples/daemon-depedencies/test-daemon.c | 2 | ||||
-rw-r--r-- | doc/examples/telephony-and-music/end-call.c | 2 | ||||
-rw-r--r-- | doc/examples/telephony-and-music/receive-or-make-call.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/doc/examples/daemon-depedencies/announce.c b/doc/examples/daemon-depedencies/announce.c index 3aacb55..752cc16 100644 --- a/doc/examples/daemon-depedencies/announce.c +++ b/doc/examples/daemon-depedencies/announce.c @@ -17,7 +17,7 @@ int main(int argc, char *argv[]) return fprintf(stderr, "USAGE: %s state daemon", *argv), 2; t(bus_open(&bus, getenv("BUS_INIT"), BUS_WRONLY)); sprintf(arg, "%ji %s %s", (intmax_t)getppid(), argv[1], argv[2]); - t(bus_write(&bus, arg)); + t(bus_write(&bus, arg, 0)); t(bus_close(&bus)); return 0; diff --git a/doc/examples/daemon-depedencies/await-ready.c b/doc/examples/daemon-depedencies/await-ready.c index 5dfd9a7..a787cea 100644 --- a/doc/examples/daemon-depedencies/await-ready.c +++ b/doc/examples/daemon-depedencies/await-ready.c @@ -25,7 +25,7 @@ static void announce_wait(pid_t pid) for (i = 1; i < argc; i++) { if (!started[i]) { sprintf(arg, "%ji awaiting-ready %s", (intmax_t)pid, argv[i]); - t(bus_write(&bus, arg)); + t(bus_write(&bus, arg, 0)); } } t(bus_close(&bus)); diff --git a/doc/examples/daemon-depedencies/await-started.c b/doc/examples/daemon-depedencies/await-started.c index 1b75fc6..0408acb 100644 --- a/doc/examples/daemon-depedencies/await-started.c +++ b/doc/examples/daemon-depedencies/await-started.c @@ -25,7 +25,7 @@ static void announce_wait(pid_t pid) for (i = 1; i < argc; i++) { if (!started[i]) { sprintf(arg, "%ji awaiting-started %s", (intmax_t)pid, argv[i]); - t(bus_write(&bus, arg)); + t(bus_write(&bus, arg, 0)); } } t(bus_close(&bus)); diff --git a/doc/examples/daemon-depedencies/require.c b/doc/examples/daemon-depedencies/require.c index b6f7945..6970dc2 100644 --- a/doc/examples/daemon-depedencies/require.c +++ b/doc/examples/daemon-depedencies/require.c @@ -22,7 +22,7 @@ int main(int argc, char *argv[]) sprintf(arg, "grep '^%s$' < \"${XDG_RUNTIME_DIR}/started-daemons\" >/dev/null", argv[i]); if (WEXITSTATUS(system(arg))) { sprintf(arg, "%ji require %s", (intmax_t)getppid(), argv[i]); - t(bus_write(&bus, arg)); + t(bus_write(&bus, arg, 0)); } } diff --git a/doc/examples/daemon-depedencies/test-daemon.c b/doc/examples/daemon-depedencies/test-daemon.c index 86095a1..386d107 100644 --- a/doc/examples/daemon-depedencies/test-daemon.c +++ b/doc/examples/daemon-depedencies/test-daemon.c @@ -19,7 +19,7 @@ retry: if (!WEXITSTATUS(system(arg))) { t(bus_open(&bus, getenv("BUS_INIT"), BUS_WRONLY)); sprintf(arg, "0 %s %s", argv[2], argv[1]); - t(bus_write(&bus, arg)); + t(bus_write(&bus, arg, 0)); bus_close(&bus); } else if (!strcmp(argv[2], "started")) { argv[2] = "ready"; diff --git a/doc/examples/telephony-and-music/end-call.c b/doc/examples/telephony-and-music/end-call.c index edd9754..6198cbb 100644 --- a/doc/examples/telephony-and-music/end-call.c +++ b/doc/examples/telephony-and-music/end-call.c @@ -17,7 +17,7 @@ int main() sprintf(message, "%ji unforce-pause", (intmax_t)getppid()); /* Yes, PPID; in this example we pretend the shell is the telephony process. */ t(bus_open(&bus, "/tmp/example-bus", BUS_WRONLY)); - t(bus_write(&bus, message)); + t(bus_write(&bus, message, 0)); bus_close(&bus); return 0; diff --git a/doc/examples/telephony-and-music/receive-or-make-call.c b/doc/examples/telephony-and-music/receive-or-make-call.c index cdd7390..92132fa 100644 --- a/doc/examples/telephony-and-music/receive-or-make-call.c +++ b/doc/examples/telephony-and-music/receive-or-make-call.c @@ -17,7 +17,7 @@ int main() sprintf(message, "%ji force-pause", (intmax_t)getppid()); /* Yes, PPID; in this example we pretend the shell is the telephony process. */ t(bus_open(&bus, "/tmp/example-bus", BUS_WRONLY)); - t(bus_write(&bus, message)); + t(bus_write(&bus, message, 0)); bus_close(&bus); return 0; |