From 621b90ea15f53685054410a7835faadc51ab96d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Alburquerque?= Date: Sun, 23 Oct 2011 19:08:34 -0400 Subject: Gio::DBus::Connection: Temporarily remove newly added call() methods. * gio/src/dbusconnection.{ccg,hg}: Remove the newly added call() methods with a UnixFDList parameter until the call_finish() method with a UnixFDList parameter is added also. * gio/src/credentials.hg: * gio/src/dbusmessage.ccg: * gio/src/dbusmessage.hg: Typos. --- gio/src/credentials.hg | 2 +- gio/src/dbusconnection.ccg | 4 ++++ gio/src/dbusconnection.hg | 6 +++++- gio/src/dbusmessage.ccg | 2 ++ gio/src/dbusmessage.hg | 1 + 5 files changed, 13 insertions(+), 2 deletions(-) (limited to 'gio') diff --git a/gio/src/credentials.hg b/gio/src/credentials.hg index ee0ca975..bb35d984 100644 --- a/gio/src/credentials.hg +++ b/gio/src/credentials.hg @@ -66,7 +66,7 @@ public: _WRAP_METHOD(void set_native(CredentialsType native_type, gpointer native), g_credentials_set_native) _WRAP_METHOD(bool is_same_user(const Glib::RefPtr& other_credentials), g_credentials_is_same_user, errthrow) - _WRAP_METHOD(uid_t get_unix_user(), g_credentials_get_unix_user, errthrow, ifdef G_OS_UNX) + _WRAP_METHOD(uid_t get_unix_user(), g_credentials_get_unix_user, errthrow, ifdef G_OS_UNIX) _WRAP_METHOD(bool set_unix_user(uid_t uid), g_credentials_set_unix_user, errthrow, ifdef G_OS_UNIX) }; diff --git a/gio/src/dbusconnection.ccg b/gio/src/dbusconnection.ccg index 67f3157b..cb05bca7 100644 --- a/gio/src/dbusconnection.ccg +++ b/gio/src/dbusconnection.ccg @@ -752,6 +752,9 @@ Glib::VariantContainerBase Connection::call_sync( return Glib::VariantContainerBase(gvariant, false); //Dont' take an extra reference. } +//TODO: Re-add the following two methods when the call_finish() method with a +//UnixFDList exists. +#if 0 #ifdef G_OS_LINUX // With a UnixFDList. void Connection::call( @@ -806,6 +809,7 @@ void Connection::call( 0, &SignalProxy_async_callback, slot_copy); } #endif // G_OS_LINUX +#endif // 0 void Connection::emit_signal( const Glib::ustring& object_path, diff --git a/gio/src/dbusconnection.hg b/gio/src/dbusconnection.hg index 600ab69d..dc0d74e2 100644 --- a/gio/src/dbusconnection.hg +++ b/gio/src/dbusconnection.hg @@ -751,6 +751,9 @@ public: const Glib::VariantType& reply_type = Glib::VariantType() ); +// TODO: Re-add the following two methods when the call_finish() method with a +// UnixFDList is wrapped. +#if 0 #ifdef G_OS_LINUX /** Like call() but also takes a GUnixFDList object. * This method is only available on UNIX. @@ -800,6 +803,7 @@ public: const Glib::VariantType& reply_type = Glib::VariantType() ); #endif // G_OS_LINUX +#endif // 0 ///** Finishes an operation started with call() (with a UnixFDList). //* @param res A AsyncResult obtained from the SlotAsyncReady passed to @@ -810,7 +814,7 @@ public: //*/ //TODO: _WRAP_METHOD(Glib::VariantContainerBase call_with_unix_fd_finish(const Glib::RefPtr& res{.}, Glib::RefPtr& out_fd_list{.?}), g_dbus_connection_call_with_unix_fd_list_finish, errthrow) - /* + /* TODO: _WRAP_METHOD( Glib::VariantContainerBase call_sync( const Glib::ustring& object_path{.}, diff --git a/gio/src/dbusmessage.ccg b/gio/src/dbusmessage.ccg index 8e43a3a2..ea701aef 100644 --- a/gio/src/dbusmessage.ccg +++ b/gio/src/dbusmessage.ccg @@ -18,6 +18,7 @@ */ #include + #ifdef G_OS_UNIX #include #endif //G_OS_UNIX @@ -62,4 +63,5 @@ void Message::unset_unix_fd_list() #endif //G_OS_UNIX } //namespace DBus + } // namespace Gio diff --git a/gio/src/dbusmessage.hg b/gio/src/dbusmessage.hg index 7f00f283..4e5c5b15 100644 --- a/gio/src/dbusmessage.hg +++ b/gio/src/dbusmessage.hg @@ -20,6 +20,7 @@ #include #include #include + #ifdef G_OS_UNIX # include #endif -- cgit v1.2.1