X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fgdbusobject.c;h=30b2e861859d3b1a491952f7f8cc9442ec90af08;hb=51fac05d73f8363de821eb0d6940dedca13a8c0f;hp=c982fe0f3ff21f4e1556a0052037410b4d0bec56;hpb=ea742e88e30fc398b8f86cc017161e6dcbb61e08;p=platform%2Fupstream%2Fglib.git diff --git a/gio/gdbusobject.c b/gio/gdbusobject.c index c982fe0..30b2e86 100644 --- a/gio/gdbusobject.c +++ b/gio/gdbusobject.c @@ -13,9 +13,7 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. + * Public License along with this library; if not, see . * * Author: David Zeuthen */ @@ -25,7 +23,6 @@ #include "gdbusobject.h" #include "gdbusinterface.h" #include "gdbusutils.h" -#include "gio-marshal.h" #include "glibintl.h" @@ -146,60 +143,3 @@ g_dbus_object_get_interface (GDBusObject *object, g_return_val_if_fail (g_dbus_is_interface_name (interface_name), NULL); return iface->get_interface (object, interface_name); } - - -/** - * g_dbus_object_peek_with_typecheck: - * @object: A #GDBusObject. - * @interface_name: A D-Bus interface name. - * @type: The #GType that the returned object must conform to. - * - * Like g_dbus_object_lookup_with_typecheck() except that the caller - * does not own a reference to the returned object. - * - * This function is intended to only be used in type - * implementations. - * - * Returns: (transfer none): A #GDBusInterface implementing @type or - * %NULL if not found. Do not free the returned object, it is owned - * by @object. - * - * Since: 2.30 - */ -gpointer -g_dbus_object_peek_with_typecheck (GDBusObject *object, - const gchar *interface_name, - GType type) -{ - GDBusObjectIface *iface = G_DBUS_OBJECT_GET_IFACE (object); - g_return_val_if_fail (g_dbus_is_interface_name (interface_name), NULL); - return iface->peek_with_typecheck (object, interface_name, type); -} - -/** - * g_dbus_object_lookup_with_typecheck: - * @object: A #GDBusObject. - * @interface_name: A D-Bus interface name. - * @type: The #GType that the returned object must conform to. - * - * Like g_dbus_object_get_interface() but warns on stderr if the - * returned object, if any, does not conform to @type. - * - * This function is intended to only be used in type - * implementations. - * - * Returns: (transfer full): A #GDBusInterface implementing @type or - * %NULL if not found. Free with g_object_unref(). - * - * Since: 2.30 - */ -gpointer -g_dbus_object_lookup_with_typecheck (GDBusObject *object, - const gchar *interface_name, - GType type) -{ - GDBusObjectIface *iface = G_DBUS_OBJECT_GET_IFACE (object); - g_return_val_if_fail (g_dbus_is_interface_name (interface_name), NULL); - return iface->lookup_with_typecheck (object, interface_name, type); -} -