Commit 0deb5d76 authored by Guido Gunther's avatar Guido Gunther

Add PhoshHksManager

This tracks the state of hardware kill switches (rfkill
hardblocked devices)
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 1b73b800
......@@ -60,6 +60,7 @@
<xi:include href="xml/gnome-shell-manager.xml"/>
<xi:include href="xml/head.xml"/>
<xi:include href="xml/home.xml"/>
<xi:include href="xml/hks-manager.xml"/>
<xi:include href="xml/idle-manager.xml"/>
<xi:include href="xml/keyboard-events.xml"/>
<xi:include href="xml/layersurface.xml"/>
......
This diff is collapsed.
/*
* Copyright (C) 2020 Purism SPC
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#pragma once
#include <glib-object.h>
G_BEGIN_DECLS
/**
* PhoshHksDeviceType:
* @PHOSH_HKS_TYPE_MIC: Microphone hardware kill switch
*
* Keep in sync with kernels rfkill types
*/
typedef enum {
PHOSH_HKS_TYPE_MIC = 10,
} PhoshHksDeviceType;
#define PHOSH_TYPE_HKS_MANAGER (phosh_hks_manager_get_type ())
G_DECLARE_FINAL_TYPE (PhoshHksManager, phosh_hks_manager, PHOSH, HKS_MANAGER, GObject)
PhoshHksManager *phosh_hks_manager_new (void);
G_END_DECLS
......@@ -56,6 +56,8 @@ libphosh_tool_sources = [
'background.h',
'connectivity-info.c',
'connectivity-info.h',
'hks-manager.c',
'hks-manager.h',
'docked-info.c',
'docked-info.h',
'docked-manager.c',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment