#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 | |
GeneralConfig * | Powersave::Globals::config_obj |
global configuration object | |
PM_Interface * | Powersave::Globals::pm |
global object must be declared extern to let DBus functions be able to access the handleDBusRequest function | |
MainLoop * | Powersave::Globals::main_loop |
global MainLoop object | |
CpufreqManagement * | Powersave::Globals::cpufreq |
global cpufreq object |
|
the maximum length of a param including paths
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|