power_daemon: Use BServer and do not connect to app_server.
Just like syslog_daemon in the previous commit, power_daemon does nothing GUI-related, so we can skip connecting to app_server.
This commit is contained in:
@@ -10,12 +10,12 @@
|
|||||||
#include "lid_monitor.h"
|
#include "lid_monitor.h"
|
||||||
#include "power_button_monitor.h"
|
#include "power_button_monitor.h"
|
||||||
|
|
||||||
#include <Application.h>
|
#include <Server.h>
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
|
|
||||||
class PowerManagementDaemon : public BApplication {
|
class PowerManagementDaemon : public BServer {
|
||||||
public:
|
public:
|
||||||
PowerManagementDaemon();
|
PowerManagementDaemon();
|
||||||
virtual ~PowerManagementDaemon();
|
virtual ~PowerManagementDaemon();
|
||||||
@@ -43,7 +43,7 @@ main(void)
|
|||||||
|
|
||||||
PowerManagementDaemon::PowerManagementDaemon()
|
PowerManagementDaemon::PowerManagementDaemon()
|
||||||
:
|
:
|
||||||
BApplication("application/x-vnd.Haiku-powermanagement"),
|
BServer("application/x-vnd.Haiku-powermanagement", false, NULL),
|
||||||
fMonitorCount(0),
|
fMonitorCount(0),
|
||||||
fQuitRequested(false)
|
fQuitRequested(false)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user