connection.ipp (77e62c83d54e15716b16dcaae403b273665f0d50) connection.ipp (377e76abd1f1deb498e8495c61fb160675584eec)
1// Copyright (c) Benjamin Kietzman (github.com/bkietz)
2//
3// Distributed under the Boost Software License, Version 1.0. (See accompanying
4// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6#ifndef DBUS_CONNECTION_IPP
7#define DBUS_CONNECTION_IPP
8

--- 90 unchanged lines hidden (view full) ---

99
100 void send(message& m) {
101 // ignoring message serial for now
102 dbus_connection_send(conn, m, NULL);
103 }
104
105 void send_with_reply(message& m, DBusPendingCall** p,
106 int timeout_in_milliseconds = -1) {
1// Copyright (c) Benjamin Kietzman (github.com/bkietz)
2//
3// Distributed under the Boost Software License, Version 1.0. (See accompanying
4// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6#ifndef DBUS_CONNECTION_IPP
7#define DBUS_CONNECTION_IPP
8

--- 90 unchanged lines hidden (view full) ---

99
100 void send(message& m) {
101 // ignoring message serial for now
102 dbus_connection_send(conn, m, NULL);
103 }
104
105 void send_with_reply(message& m, DBusPendingCall** p,
106 int timeout_in_milliseconds = -1) {
107 // TODO(Ed) check error code
107 dbus_connection_send_with_reply(conn, m, p, timeout_in_milliseconds);
108 }
109
110 // begin asynchronous operation
111 // FIXME should not get io from an argument
112 void start(boost::asio::io_service& io) {
113 bool old_value(true);
114 if (is_paused.compare_exchange_strong(old_value, false)) {

--- 20 unchanged lines hidden ---
108 dbus_connection_send_with_reply(conn, m, p, timeout_in_milliseconds);
109 }
110
111 // begin asynchronous operation
112 // FIXME should not get io from an argument
113 void start(boost::asio::io_service& io) {
114 bool old_value(true);
115 if (is_paused.compare_exchange_strong(old_value, false)) {

--- 20 unchanged lines hidden ---