Added ede-bell-conf, a tool to configure system bell (that annoying beep thing)

Rest are changes so can nicely be compiled on freebsd
Also, some changes are in coding style
This commit is contained in:
Sanel Zukan
2009-02-26 11:15:27 +00:00
parent e051472475
commit c7c8fc92ea
13 changed files with 280 additions and 129 deletions

View File

@ -151,7 +151,7 @@ void BatteryMonitor::update_status()
#include <machine/apmioctl.h>
int first = 1;
void battery_check(void)
void BatteryMonitor::battery_check(void)
{
int fd;
struct apmreq ar ;
@ -213,7 +213,7 @@ void battery_check(void)
#define APM_STAT_BATT_CHARGING 3
int first = 1;
void battery_check(void)
void BatteryMonitor::battery_check(void)
{
int fd, r;
bool p;
@ -284,7 +284,7 @@ void battery_check(void)
#define _PATH_APM_NORMAL "/dev/apm"
int first = 1;
void battery_check(void)
void BatteryMonitor::battery_check(void)
{
int fd, r;
bool p;