message.hpp (631fa83aa05976e41ec27017b7b93d1b9173a78e) | message.hpp (70d534bf3cf7fd95c9f000f96bb1e5f8b690499b) |
---|---|
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_MESSAGE_HPP 7#define DBUS_MESSAGE_HPP 8 --- 184 unchanged lines hidden (view full) --- 193 return false; 194 }; 195 if (dict_entry.pack(element.second) == false) { 196 return false; 197 }; 198 return iter_.close_container(dict_entry.iter_); 199 } 200 | 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_MESSAGE_HPP 7#define DBUS_MESSAGE_HPP 8 --- 184 unchanged lines hidden (view full) --- 193 return false; 194 }; 195 if (dict_entry.pack(element.second) == false) { 196 return false; 197 }; 198 return iter_.close_container(dict_entry.iter_); 199 } 200 |
201 bool pack(const object_path& e) { 202 const char* c = e.value.c_str(); 203 return iter_.append_basic(element<object_path>::code, &c); 204 } 205 |
|
201 bool pack(const string& e) { 202 const char* c = e.c_str(); 203 return pack(c); 204 } 205 206 bool pack(const dbus_variant& v) { 207 // Get the dbus typecode of the variant being packed 208 const char* type = boost::apply_visitor( --- 289 unchanged lines hidden --- | 206 bool pack(const string& e) { 207 const char* c = e.c_str(); 208 return pack(c); 209 } 210 211 bool pack(const dbus_variant& v) { 212 // Get the dbus typecode of the variant being packed 213 const char* type = boost::apply_visitor( --- 289 unchanged lines hidden --- |