Skip to content

Commit

Permalink
remove inlines
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhaefner committed Dec 31, 2017
1 parent cc48c3c commit 5040741
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions src/bool.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#include "simppl/bool.h"


namespace simppl
{

namespace dbus
{


/*static*/
void BoolCodec::encode(DBusMessageIter& iter, bool b)
{
dbus_bool_t _b = b;
dbus_message_iter_append_basic(&iter, DBUS_TYPE_BOOLEAN, &_b);
}


/*static*/
void BoolCodec::decode(DBusMessageIter& iter, bool& t)
{
dbus_bool_t b;
simppl_dbus_message_iter_get_basic(&iter, &b, DBUS_TYPE_BOOLEAN);

t = b;
}


/*static*/
std::ostream& BoolCodec::make_type_signature(std::ostream& os)
{
return os << DBUS_TYPE_BOOLEAN_AS_STRING;
}


} // namespace dbus

} // namespace simppl

0 comments on commit 5040741

Please sign in to comment.