powersaved.cpp File Reference

#include "config.h"
#include <getopt.h>
#include <sys/wait.h>
#include <sys/fcntl.h>
#include <fstream>
#include "config_pm.h"
#include "acpi.h"
#include "apm.h"
#include "main_loop.h"
#include "cpufreq_management.h"
#include "globals.h"

Namespaces

namespace  Powersave
namespace  Powersave::Globals

Defines

#define POWERSAVED_PID_FILE_PATH   "/var/run/powersaved.pid"
#define MAX_PARAM_LENGTH   128
 the maximum length of a param including paths

Functions

void exit_handler (int)
int daemonize ()
void USR1_handler (int)
void hup_handler (int)
void usage ()
void get_args (int argc, char **argv, GeneralConfig *config_obj, int &daemon, int acpi_apm)
int main (int argc, char **argv)

Variables

GeneralConfigPowersave::Globals::config_obj
 global configuration object
PM_InterfacePowersave::Globals::pm
 global object must be declared extern to let DBus functions be able to access the handleDBusRequest function
MainLoopPowersave::Globals::main_loop
 global MainLoop object
CpufreqManagementPowersave::Globals::cpufreq
 global cpufreq object

Define Documentation

#define MAX_PARAM_LENGTH   128
 

the maximum length of a param including paths

#define POWERSAVED_PID_FILE_PATH   "/var/run/powersaved.pid"
 


Function Documentation

int daemonize  ) 
 

void exit_handler int   ) 
 

void get_args int  argc,
char **  argv,
GeneralConfig config_obj,
int &  daemon,
int  acpi_apm
 

void hup_handler int   ) 
 

int main int  argc,
char **  argv
 

void usage  ) 
 

void USR1_handler int   ) 
 


Generated on Mon Mar 27 09:27:19 2006 for Powersave Daemon by  doxygen 1.4.6