mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Implements a SetLocaliseQueriesOption D-Bus method.
For setting the state of the -y/--localise-queries option.
This commit is contained in:
committed by
Simon Kelley
parent
553c4c99cc
commit
80a6c16dcc
@@ -48,6 +48,10 @@ SetBogusPrivOption
|
|||||||
------------------
|
------------------
|
||||||
Takes boolean, sets or resets the --bogus-priv option.
|
Takes boolean, sets or resets the --bogus-priv option.
|
||||||
|
|
||||||
|
SetLocaliseQueriesOption
|
||||||
|
------------------------
|
||||||
|
Takes boolean, sets or resets the --localise-queries option.
|
||||||
|
|
||||||
SetServers
|
SetServers
|
||||||
----------
|
----------
|
||||||
Returns nothing. Takes a set of arguments representing the new
|
Returns nothing. Takes a set of arguments representing the new
|
||||||
|
|||||||
@@ -52,6 +52,9 @@ const char* introspection_xml_template =
|
|||||||
" <method name=\"SetFilterWin2KOption\">\n"
|
" <method name=\"SetFilterWin2KOption\">\n"
|
||||||
" <arg name=\"filterwin2k\" direction=\"in\" type=\"b\"/>\n"
|
" <arg name=\"filterwin2k\" direction=\"in\" type=\"b\"/>\n"
|
||||||
" </method>\n"
|
" </method>\n"
|
||||||
|
" <method name=\"SetLocaliseQueriesOption\">\n"
|
||||||
|
" <arg name=\"localise-queries\" direction=\"in\" type=\"b\"/>\n"
|
||||||
|
" </method>\n"
|
||||||
" <method name=\"SetBogusPrivOption\">\n"
|
" <method name=\"SetBogusPrivOption\">\n"
|
||||||
" <arg name=\"boguspriv\" direction=\"in\" type=\"b\"/>\n"
|
" <arg name=\"boguspriv\" direction=\"in\" type=\"b\"/>\n"
|
||||||
" </method>\n"
|
" </method>\n"
|
||||||
@@ -694,6 +697,10 @@ DBusHandlerResult message_handler(DBusConnection *connection,
|
|||||||
{
|
{
|
||||||
reply = dbus_set_bool(message, OPT_FILTER, "filterwin2k");
|
reply = dbus_set_bool(message, OPT_FILTER, "filterwin2k");
|
||||||
}
|
}
|
||||||
|
else if (strcmp(method, "SetLocaliseQueriesOption") == 0)
|
||||||
|
{
|
||||||
|
reply = dbus_set_bool(message, OPT_LOCALISE, "localise-queries");
|
||||||
|
}
|
||||||
else if (strcmp(method, "SetBogusPrivOption") == 0)
|
else if (strcmp(method, "SetBogusPrivOption") == 0)
|
||||||
{
|
{
|
||||||
reply = dbus_set_bool(message, OPT_BOGUSPRIV, "bogus-priv");
|
reply = dbus_set_bool(message, OPT_BOGUSPRIV, "bogus-priv");
|
||||||
|
|||||||
Reference in New Issue
Block a user