From 1929da3bd3ae42d8c70dc2a24fddfe5ca6d985b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jeremy=20Lain=C3=A9?= Date: Wed, 11 Feb 2009 19:59:35 +0100 Subject: dnsmasq: update to version 2.47 --- packages/dnsmasq/files/dbus_introspection.patch | 63 ------------------------- 1 file changed, 63 deletions(-) delete mode 100644 packages/dnsmasq/files/dbus_introspection.patch (limited to 'packages/dnsmasq/files') diff --git a/packages/dnsmasq/files/dbus_introspection.patch b/packages/dnsmasq/files/dbus_introspection.patch deleted file mode 100644 index 52cbb6e25b..0000000000 --- a/packages/dnsmasq/files/dbus_introspection.patch +++ /dev/null @@ -1,63 +0,0 @@ -diff -urN dnsmasq-2.46.orig/src/dbus.c dnsmasq-2.46/src/dbus.c ---- dnsmasq-2.46.orig/src/dbus.c 2008-11-14 21:02:08.000000000 +0100 -+++ dnsmasq-2.46/src/dbus.c 2008-12-15 10:45:48.000000000 +0100 -@@ -21,6 +21,42 @@ - #define DBUS_API_SUBJECT_TO_CHANGE - #include - -+const char* introspection_xml = -+"\n" -+"\n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+" \n" -+"\n"; -+ - struct watch { - DBusWatch *watch; - struct watch *next; -@@ -229,7 +265,15 @@ - { - char *method = (char *)dbus_message_get_member(message); - -- if (strcmp(method, "GetVersion") == 0) -+ if (dbus_message_is_method_call(message, DBUS_INTERFACE_INTROSPECTABLE, "Introspect")) -+ { -+ DBusMessage *reply = dbus_message_new_method_return(message); -+ -+ dbus_message_append_args(reply, DBUS_TYPE_STRING, &introspection_xml, DBUS_TYPE_INVALID); -+ dbus_connection_send (connection, reply, NULL); -+ dbus_message_unref (reply); -+ } -+ else if (strcmp(method, "GetVersion") == 0) - { - char *v = VERSION; - DBusMessage *reply = dbus_message_new_method_return(message); -- cgit v1.2.3