1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include "variant.hpp" namespace wanda { variant::variant(GVariant * value) : m_value{value} { } variant::~variant() { if(m_value) { g_variant_unref(m_value); } } bool variant::is_of_type(GVariantType const * const type) const { return g_variant_is_of_type(m_value, type); } }