summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2017-04-18 18:22:44 +0200
committerMurray Cumming <murrayc@murrayc.com>2017-04-18 21:32:03 +0200
commit439fb427a4cfed9c4f2b6d27680a9b3f014e6803 (patch)
tree1edad9f56e190c29d51ea2adb4f192111464f32c
parentb8d14f135fd35f377e5a48d2d676b5951e219d71 (diff)
downloadglibmm-439fb427a4cfed9c4f2b6d27680a9b3f014e6803.tar.gz
Gio::Resolver: Change ResolverRecordType to Resolver::RecordType.
-rw-r--r--gio/src/resolver.ccg4
-rw-r--r--gio/src/resolver.hg10
-rw-r--r--tools/m4/convert_gio.m42
3 files changed, 8 insertions, 8 deletions
diff --git a/gio/src/resolver.ccg b/gio/src/resolver.ccg
index df3e0df1..7838f19e 100644
--- a/gio/src/resolver.ccg
+++ b/gio/src/resolver.ccg
@@ -111,7 +111,7 @@ Resolver::lookup_service_async(const Glib::ustring& service, const Glib::ustring
}
void
-Resolver::lookup_records_async(const Glib::ustring& rrname, ResolverRecordType record_type,
+Resolver::lookup_records_async(const Glib::ustring& rrname, RecordType record_type,
const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable)
{
auto slot_copy = new SlotAsyncReady(slot);
@@ -123,7 +123,7 @@ Resolver::lookup_records_async(const Glib::ustring& rrname, ResolverRecordType r
void
Resolver::lookup_records_async(
- const Glib::ustring& rrname, ResolverRecordType record_type, const SlotAsyncReady& slot)
+ const Glib::ustring& rrname, RecordType record_type, const SlotAsyncReady& slot)
{
auto slot_copy = new SlotAsyncReady(slot);
diff --git a/gio/src/resolver.hg b/gio/src/resolver.hg
index 3b162242..b360f5c7 100644
--- a/gio/src/resolver.hg
+++ b/gio/src/resolver.hg
@@ -36,8 +36,6 @@ class VariantContainerBase;
namespace Gio
{
-_WRAP_ENUM(ResolverRecordType, GResolverRecordType)
-
/** Asynchronous and cancellable DNS resolver
*
* Resolver provides cancellable synchronous and asynchronous DNS resolution,
@@ -59,6 +57,8 @@ class Resolver
protected:
public:
+ _WRAP_ENUM(RecordType, GResolverRecordType)
+
static Glib::RefPtr<Resolver> get_default();
_IGNORE(g_resolver_get_default)
static void set_default(const Glib::RefPtr<Resolver>& resolver);
@@ -141,7 +141,7 @@ public:
#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)
+ _WRAP_METHOD(std::vector<Glib::VariantContainerBase> lookup_records(const Glib::ustring& rrname, RecordType 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
@@ -154,13 +154,13 @@ public:
* @newin{2,36}
*/
void lookup_records_async(const Glib::ustring& rrname,
- ResolverRecordType record_type, const SlotAsyncReady& slot,
+ RecordType record_type, const SlotAsyncReady& slot,
const Glib::RefPtr<Cancellable>& cancellable);
_IGNORE(g_resolver_lookup_records_async)
/// A non-cancellable version of lookup_records_async().
void lookup_records_async(const Glib::ustring& rrname,
- ResolverRecordType record_type, const SlotAsyncReady& slot);
+ RecordType record_type, const SlotAsyncReady& slot);
_WRAP_METHOD(std::vector<Glib::VariantContainerBase> lookup_records_finish(const Glib::RefPtr<AsyncResult>& result), g_resolver_lookup_records_finish, errthrow)
diff --git a/tools/m4/convert_gio.m4 b/tools/m4/convert_gio.m4
index bc975e73..88a7f29d 100644
--- a/tools/m4/convert_gio.m4
+++ b/tools/m4/convert_gio.m4
@@ -62,7 +62,7 @@ _CONV_GIO_ENUM(NetworkConnectivity)
_CONV_GIO_INCLASS_ENUM(Notification,Priority)
_CONV_GIO_INCLASS_ENUM(OutputStream,SpliceFlags)
_CONV_GIO_ENUM(PasswordSave)
-_CONV_GIO_ENUM(ResolverRecordType)
+_CONV_GIO_INCLASS_ENUM(Resolver,RecordType)
_CONV_GIO_ENUM(ResourceFlags)
_CONV_GIO_ENUM(ResourceLookupFlags)
_CONV_GIO_ENUM(SettingsBindFlags)