diff options
author | José Alburquerque <jaalburqu@svn.gnome.org> | 2012-10-30 15:10:35 -0400 |
---|---|---|
committer | José Alburquerque <jaalburqu@svn.gnome.org> | 2012-10-30 15:16:50 -0400 |
commit | afaa0cfa2335de6900a207e82272c34133d12f83 (patch) | |
tree | 763777046d49533b9313488fa89a92ad36b46cd4 /gio | |
parent | e5bf40e75d6302162ab048a280a9a674f396c71c (diff) | |
download | glibmm-afaa0cfa2335de6900a207e82272c34133d12f83.tar.gz |
Resolver: Add lookup_records() and lookup_records_finish().
* glib/glibmm/containerhandle_shared.h: Add TypeTraits specializations
for VariantBase (for the futre) and VariantContainerBase.
* gio/src/resolver.hg: Add the new methods (mentioned above) because
the VariantContainerBase TypeTraits specialization allows the vector
utilities to convert to/from GVariants in a GList correctly.
Diffstat (limited to 'gio')
-rw-r--r-- | gio/src/resolver.ccg | 1 | ||||
-rw-r--r-- | gio/src/resolver.hg | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/gio/src/resolver.ccg b/gio/src/resolver.ccg index d6b1a3cd..2f5f6948 100644 --- a/gio/src/resolver.ccg +++ b/gio/src/resolver.ccg @@ -19,7 +19,6 @@ #include <gio/gio.h> #include <glibmm/error.h> -#include <glibmm/variant.h> #include "slot_async.h" namespace Gio diff --git a/gio/src/resolver.hg b/gio/src/resolver.hg index a01a7331..f318ba5b 100644 --- a/gio/src/resolver.hg +++ b/gio/src/resolver.hg @@ -143,11 +143,9 @@ public: _WRAP_METHOD(ListHandle_SrvTarget lookup_service_finish(const Glib::RefPtr<AsyncResult>& result), g_resolver_lookup_service_finish, errthrow) -/* TODO: Wrapping this does not work for some reason. #m4 _CONVERSION(`GList*',`std::vector<Glib::VariantContainerBase>',`Glib::ListHandler<Glib::VariantContainerBase>::list_to_vector($3, Glib::OWNERSHIP_DEEP)') _WRAP_METHOD(std::vector<Glib::VariantContainerBase> lookup_records(const Glib::ustring& rrname, ResolverRecordType record_type, const Glib::RefPtr<Cancellable>& cancellable{?}), g_resolver_lookup_records, errthrow) -*/ /** Begins asynchronously performing a DNS lookup for the given @a rrname, * and eventually calls @a slot, which must call lookup_records_finish() to @@ -167,9 +165,7 @@ public: void lookup_records_async(const Glib::ustring& rrname, ResolverRecordType record_type, const SlotAsyncReady& slot); -/* TODO: Wrapping this does not work for some reason. _WRAP_METHOD(std::vector<Glib::VariantContainerBase> lookup_records_finish(const Glib::RefPtr<AsyncResult>& result), g_resolver_lookup_records_finish, errthrow) -*/ //TODO: Remove no_default_handler when we can break ABI: _WRAP_SIGNAL(void reload(), reload, no_default_handler) |