Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: examples/echo/echo-client.cpp

Issue 1648006: Apply patch from ebuild file to fix toString (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | include/dbus-c++/eventloop-integration.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | include/dbus-c++/eventloop-integration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698