mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-06 16:21:50 +00:00
core: add GetLogging() D-Bus call to org.freedesktop.NetworkManager
Returns current logging level and domains set.
This commit is contained in:
parent
c875a4d205
commit
2952c09902
|
@ -225,6 +225,23 @@
|
|||
</arg>
|
||||
</method>
|
||||
|
||||
<method name="GetLogging">
|
||||
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_get_logging"/>
|
||||
<tp:docstring>
|
||||
Get current logging verbosity level and operations domains.
|
||||
</tp:docstring>
|
||||
<arg name="level" type="s" direction="out">
|
||||
<tp:docstring>
|
||||
One of [ERR, WARN, INFO, DEBUG].
|
||||
</tp:docstring>
|
||||
</arg>
|
||||
<arg name="domains" type="s" direction="out">
|
||||
<tp:docstring>
|
||||
For available domains see SetLogging() call.
|
||||
</tp:docstring>
|
||||
</arg>
|
||||
</method>
|
||||
|
||||
<method name="state">
|
||||
<tp:docstring>
|
||||
The overall networking state as determined by the NetworkManager daemon,
|
||||
|
|
|
@ -125,6 +125,10 @@ static gboolean impl_manager_set_logging (NMManager *manager,
|
|||
const char *domains,
|
||||
GError **error);
|
||||
|
||||
static void impl_manager_get_logging (NMManager *manager,
|
||||
char **level,
|
||||
char **domains);
|
||||
|
||||
#include "nm-manager-glue.h"
|
||||
|
||||
static void bluez_manager_bdaddr_added_cb (NMBluezManager *bluez_mgr,
|
||||
|
@ -3573,6 +3577,15 @@ impl_manager_set_logging (NMManager *manager,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
impl_manager_get_logging (NMManager *manager,
|
||||
char **level,
|
||||
char **domains)
|
||||
{
|
||||
*level = g_strdup (nm_logging_level_to_string ());
|
||||
*domains = g_strdup (nm_logging_domains_to_string ());
|
||||
}
|
||||
|
||||
void
|
||||
nm_manager_start (NMManager *self)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue