]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/bus-log-control-api.h
hwdb: Add mapping for Xiaomi Mipad 2 bottom bezel capacitive buttons
[thirdparty/systemd.git] / src / shared / bus-log-control-api.h
CommitLineData
db9ecf05 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
95fc17bf 2#pragma once
052740e2
LP
3
4#include "sd-bus.h"
5
c664cf56 6#include "bus-object.h"
6a7e98aa
ZJS
7
8extern const BusObjectImplementation log_control_object;
9static inline int bus_log_control_api_register(sd_bus *bus) {
10 return bus_add_implementation(bus, &log_control_object, NULL);
11}
052740e2
LP
12
13int 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);
14int 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);
15
16int 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);
17int 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);
18
19int 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);