#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include <mach/mach_port.h>
#include <mach/mach_interface.h>
#include <mach/mach_init.h>
#include <IOKit/pwr_mgt/IOPMLib.h>
#include <IOKit/IOMessage.h>
#include "schedule.h"
#include "timeRoutines.h"
Functions | |
void | installTimer (scheduledExec *task) |
void | powerCallBack (void *refCon, io_service_t service, natural_t messageType, void *messageArgument) |
int | waitForTask (scheduledExec *task) |
Variables | |
io_connect_t | root_port |
CFRunLoopTimerRef | timerRef |
void installTimer | ( | scheduledExec * | task | ) |
void powerCallBack | ( | void * | refCon, | |
io_service_t | service, | |||
natural_t | messageType, | |||
void * | messageArgument | |||
) |
int waitForTask | ( | scheduledExec * | task | ) |
Main entry point for setting up the timer.
io_connect_t root_port |
CFRunLoopTimerRef timerRef |