OLD | NEW |
1 #ifdef HAVE_CONFIG_H | 1 #ifdef HAVE_CONFIG_H |
2 #include <config.h> | 2 #include <config.h> |
3 #endif | 3 #endif |
4 | 4 |
5 #include "echo-client.h" | 5 #include "echo-client.h" |
6 #include <iostream> | 6 #include <iostream> |
7 #include <pthread.h> | 7 #include <pthread.h> |
8 #include <signal.h> | 8 #include <signal.h> |
| 9 #include <stdio.h> |
9 | 10 |
10 using namespace std; | 11 using namespace std; |
11 | 12 |
12 static const char *ECHO_SERVER_NAME = "org.freedesktop.DBus.Examples.Echo"; | 13 static const char *ECHO_SERVER_NAME = "org.freedesktop.DBus.Examples.Echo"; |
13 static const char *ECHO_SERVER_PATH = "/org/freedesktop/DBus/Examples/Echo"; | 14 static const char *ECHO_SERVER_PATH = "/org/freedesktop/DBus/Examples/Echo"; |
14 | 15 |
15 EchoClient::EchoClient(DBus::Connection &connection, const char *path, const cha
r *name) | 16 EchoClient::EchoClient(DBus::Connection &connection, const char *path, const cha
r *name) |
16 : DBus::ObjectProxy(connection, path, name) | 17 : DBus::ObjectProxy(connection, path, name) |
17 { | 18 { |
18 } | 19 } |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 82 |
82 cout << "terminating" << endl; | 83 cout << "terminating" << endl; |
83 | 84 |
84 for (int i = 0; i < THREADS; ++i) | 85 for (int i = 0; i < THREADS; ++i) |
85 { | 86 { |
86 pthread_join(threads[i], NULL); | 87 pthread_join(threads[i], NULL); |
87 } | 88 } |
88 | 89 |
89 return 0; | 90 return 0; |
90 } | 91 } |
OLD | NEW |