diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-05-17 14:40:46 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-05-17 14:40:46 +0200 |
commit | 0d44f16f6738c0776edf60b84f49f0c6f875a8fe (patch) | |
tree | acc2a01cea1f7c7458c8ccc6ec4b37fa5ccb5d0f /doc/examples/daemon-depedencies | |
parent | update documentation for bus_poll (diff) | |
download | bus-0d44f16f6738c0776edf60b84f49f0c6f875a8fe.tar.gz bus-0d44f16f6738c0776edf60b84f49f0c6f875a8fe.tar.bz2 bus-0d44f16f6738c0776edf60b84f49f0c6f875a8fe.tar.xz |
style + add timed read example
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'doc/examples/daemon-depedencies')
-rw-r--r-- | doc/examples/daemon-depedencies/announce.c | 3 | ||||
-rw-r--r-- | doc/examples/daemon-depedencies/await-ready.c | 9 | ||||
-rw-r--r-- | doc/examples/daemon-depedencies/await-started.c | 9 | ||||
-rw-r--r-- | doc/examples/daemon-depedencies/cleanup.c | 3 | ||||
-rw-r--r-- | doc/examples/daemon-depedencies/init.c | 9 | ||||
-rw-r--r-- | doc/examples/daemon-depedencies/require.c | 3 | ||||
-rw-r--r-- | doc/examples/daemon-depedencies/start-daemon.c | 3 | ||||
-rw-r--r-- | doc/examples/daemon-depedencies/test-daemon.c | 3 |
8 files changed, 28 insertions, 14 deletions
diff --git a/doc/examples/daemon-depedencies/announce.c b/doc/examples/daemon-depedencies/announce.c index 752cc16..d928adb 100644 --- a/doc/examples/daemon-depedencies/announce.c +++ b/doc/examples/daemon-depedencies/announce.c @@ -10,7 +10,8 @@ static char arg[4098]; -int main(int argc, char *argv[]) +int +main(int argc, char *argv[]) { bus_t bus; if (argc < 3) diff --git a/doc/examples/daemon-depedencies/await-ready.c b/doc/examples/daemon-depedencies/await-ready.c index a787cea..fea2382 100644 --- a/doc/examples/daemon-depedencies/await-ready.c +++ b/doc/examples/daemon-depedencies/await-ready.c @@ -17,7 +17,8 @@ static char *started = NULL; static char msg[BUS_MEMORY_SIZE]; -static void announce_wait(pid_t pid) +static void +announce_wait(pid_t pid) { bus_t bus; int i; @@ -36,7 +37,8 @@ fail: } -static int callback(const char *message, void *user_data) +static int +callback(const char *message, void *user_data) { int i; char *arg2; @@ -80,7 +82,8 @@ static int callback(const char *message, void *user_data) } -int main(int argc_, char *argv_[]) +int +main(int argc_, char *argv_[]) { bus_t bus; int i; diff --git a/doc/examples/daemon-depedencies/await-started.c b/doc/examples/daemon-depedencies/await-started.c index 0408acb..99ba14f 100644 --- a/doc/examples/daemon-depedencies/await-started.c +++ b/doc/examples/daemon-depedencies/await-started.c @@ -17,7 +17,8 @@ static char *started = NULL; static char msg[BUS_MEMORY_SIZE]; -static void announce_wait(pid_t pid) +static void +announce_wait(pid_t pid) { bus_t bus; int i; @@ -36,7 +37,8 @@ fail: } -static int callback(const char *message, void *user_data) +static int +callback(const char *message, void *user_data) { int i; char *arg2; @@ -80,7 +82,8 @@ static int callback(const char *message, void *user_data) } -int main(int argc_, char *argv_[]) +int +main(int argc_, char *argv_[]) { bus_t bus; int i; diff --git a/doc/examples/daemon-depedencies/cleanup.c b/doc/examples/daemon-depedencies/cleanup.c index d3803c3..f9ead6d 100644 --- a/doc/examples/daemon-depedencies/cleanup.c +++ b/doc/examples/daemon-depedencies/cleanup.c @@ -6,7 +6,8 @@ -int main() +int +main() { char *bus_address = getenv("BUS_INIT"); if (!bus_address || !*bus_address) { diff --git a/doc/examples/daemon-depedencies/init.c b/doc/examples/daemon-depedencies/init.c index 09a6abf..b7182c6 100644 --- a/doc/examples/daemon-depedencies/init.c +++ b/doc/examples/daemon-depedencies/init.c @@ -14,7 +14,8 @@ static char **argv; static char arg[4098]; -static void start_daemons() +static void +start_daemons() { int i; for (i = 1; i < argc; i++) @@ -23,7 +24,8 @@ static void start_daemons() } -static int callback(const char *message, void *user_data) +static int +callback(const char *message, void *user_data) { pid_t pid; char *arg2; @@ -91,7 +93,8 @@ fail: } -int main(int argc_, char *argv_[]) +int +main(int argc_, char *argv_[]) { char *bus_address = NULL; bus_t bus; diff --git a/doc/examples/daemon-depedencies/require.c b/doc/examples/daemon-depedencies/require.c index 6970dc2..e378431 100644 --- a/doc/examples/daemon-depedencies/require.c +++ b/doc/examples/daemon-depedencies/require.c @@ -10,7 +10,8 @@ static char arg[4098]; -int main(int argc, char *argv[]) +int +main(int argc, char *argv[]) { bus_t bus; int i; diff --git a/doc/examples/daemon-depedencies/start-daemon.c b/doc/examples/daemon-depedencies/start-daemon.c index acb85ad..7c224d5 100644 --- a/doc/examples/daemon-depedencies/start-daemon.c +++ b/doc/examples/daemon-depedencies/start-daemon.c @@ -11,7 +11,8 @@ static char arg[4098]; -int main(int argc, char *argv[]) +int +main(int argc, char *argv[]) { if (argc != 2) return fprintf(stderr, "This program should be called from ./init\n"), 2; diff --git a/doc/examples/daemon-depedencies/test-daemon.c b/doc/examples/daemon-depedencies/test-daemon.c index 386d107..32ee545 100644 --- a/doc/examples/daemon-depedencies/test-daemon.c +++ b/doc/examples/daemon-depedencies/test-daemon.c @@ -9,7 +9,8 @@ static char arg[4098]; -int main(int argc, char *argv[]) +int +main(int argc, char *argv[]) { bus_t bus; if (argc != 3) |