bsd: Add critical action support for *BSD

System Internals / UPower - Eric Koegel [gmail.com] - 7 July 2015 10:10 UTC

This patch adds support for using ConsoleKit2's DBUS API to implement the critical action for FreeBSD and OpenBSD. It does so by creating a common backend file both can use to implement the API calls.

https://bugs.freedesktop.org/show_bug.cgi?id=85242

77239cc bsd: Add critical action support for *BSD
configure.ac | 1 +
src/Makefile.am | 16 +++++-
src/bsd/Makefile.am | 31 ++++++++++
src/bsd/up-backend-common.c | 129 ++++++++++++++++++++++++++++++++++++++++++
src/freebsd/up-backend.c | 43 +++++++++-----
src/openbsd/up-backend.c | 44 +++++++++-----
src/up-backend-bsd-private.h | 38 +++++++++++++
7 files changed, 274 insertions(+), 28 deletions(-)

Upstream: cgit.freedesktop.org


  • Share