2020-11-09 05:23:58 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
2020-06-25 22:36:01 +02:00
|
|
|
#pragma once
|
2020-04-21 10:25:50 +02:00
|
|
|
|
|
|
|
#include "sd-bus.h"
|
|
|
|
|
2020-06-28 15:37:47 +02:00
|
|
|
#include "bus-object.h"
|
2020-04-15 17:21:23 +02:00
|
|
|
|
|
|
|
extern const BusObjectImplementation log_control_object;
|
|
|
|
static inline int bus_log_control_api_register(sd_bus *bus) {
|
|
|
|
return bus_add_implementation(bus, &log_control_object, NULL);
|
|
|
|
}
|
2020-04-21 10:25:50 +02:00
|
|
|
|
|
|
|
int bus_property_get_log_level(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error);
|
|
|
|
int bus_property_set_log_level(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *value, void *userdata, sd_bus_error *error);
|
|
|
|
|
|
|
|
int bus_property_get_log_target(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error);
|
|
|
|
int bus_property_set_log_target(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error);
|
|
|
|
|
|
|
|
int bus_property_get_syslog_identifier(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error);
|