Sebastian Sumpf 843f5c32af dde_linux: review license headers
* add "or later" to GPLv2 license header where possible in order to make
  it compatible with GPLv3 based licenses

* add license header to non-trivial files where missing

fixes #5486
2025-04-10 14:14:07 +02:00

56 lines
983 B
C++

/*
* \brief RFKILL interface
* \author Josef Soentgen
* \date 2018-07-11
*/
/*
* Copyright (C) 2018 Genode Labs GmbH
*
* This file is distributed under the terms of the GNU General Public License
* version 2 or later.
*/
#ifndef _WIFI__RFKILL_H_
#define _WIFI__RFKILL_H_
#include <util/interface.h>
namespace Wifi {
/*
* FD used to poll RFKILL state from the supplicant.
*/
enum { RFKILL_FD = 42, };
struct Rfkill_notification_handler : Genode::Interface
{
virtual void rfkill_notify() = 0;
};
void rfkill_establish_handler(Rfkill_notification_handler &);
/**
* Query current RFKILL state
*/
bool rfkill_blocked();
/**
* Set RFKILL state from the manager
*
* May be only called from an EP context.
*/
void set_rfkill(bool);
/**
* Trigger RFKILL notification signal
*
* Used by the supplicants RFKILL driver to notify
* the management-layer.
*/
void rfkill_notify();
} /* namespace Wifi */
#endif /* _WIFI__RFKILL_H_ */