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:
Augustin Cavalier
2021-09-27 18:35:30 -04:00
parent ba56491ea0
commit 65fc7380ca
+3 -3
View File
@@ -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)
{ {