/home/aaron/olsrd-current/olsrd/src/core/os_apm.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  olsr_apm_info

Defines

#define OLSR_BATTERY_POWERED   0
#define OLSR_AC_POWERED   1

Functions

void os_apm_printinfo (struct olsr_apm_info *)
int os_apm_read (struct olsr_apm_info *)

Define Documentation

#define OLSR_AC_POWERED   1

Definition at line 50 of file os_apm.h.

Referenced by apm_read_acpi(), apm_read_apm(), olsr_calculate_willingness(), and os_apm_read().

#define OLSR_BATTERY_POWERED   0

Definition at line 49 of file os_apm.h.

Referenced by apm_read_acpi(), apm_read_apm(), and os_apm_read().


Function Documentation

void os_apm_printinfo ( struct olsr_apm_info  ) 
int os_apm_read ( struct olsr_apm_info  ) 

Definition at line 142 of file apm.c.

References olsr_apm_info::ac_line_status, apm_read_acpi(), apm_read_apm(), olsr_apm_info::battery_percentage, method, OLSR_AC_POWERED, OLSR_BATTERY_POWERED, USE_ACPI, and USE_APM.

Here is the call graph for this function:

Generated on Tue Jun 18 06:00:06 2013 for olsrd by  doxygen 1.6.3