aboutsummaryrefslogtreecommitdiff
path: root/src/variant.cpp
blob: 54e484e55b9cabe865f83a326248df3de4980d14 (plain)
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);
}

}