stateManager.h
changeset 24 86613545ad8c
parent 23 56d1680cbb1e
child 27 d42e3f15c91d
--- a/stateManager.h	Fri Jun 04 17:21:55 2010 +0100
+++ b/stateManager.h	Fri Jun 18 14:17:01 2010 +0000
@@ -50,17 +50,45 @@
 int getVoltage(CPhidgetInterfaceKitHandle IFK);
 int getAmps(CPhidgetInterfaceKitHandle IFK);
 
-int updateSnapshotfile(const char *snapFileName, int Voltage, int Amps, int state, int spiking);
-int updateLogfile(FILE *logfile, int Voltage, int Amps, int state, int spiking, const char *progName);
+int updateSnapshotfile(const char *snapFileName,
+	int Voltage,
+	int Amps,
+	int state,
+	int spiking);
+int updateLogfile(FILE *logfile,
+	int Voltage,
+	int Amps,
+	int state,
+	int spiking,
+	const char *progName);
 
-void getTimeString (int wakeTime, char *wakeTimeStr);
-void getnewState(int Voltage, const char *bootflag, int *newState, int sleepHourStart, int sleepHourEnd);
+void getTimeString (int wakeTime,
+	char *wakeTimeStr);
+void getnewState(int Voltage,
+	const char *bootflag,
+	int *newState,
+	int sleepHourStart,
+	int sleepMinStart,
+	int sleepHourEnd,
+	int sleepMinEnd);
 void closeCPhidget(CPhidgetHandle handle);
-int testVoltageSpike(int *prevVoltage, time_t *prevVoltageTime, int *Voltage, time_t *VoltageTime);
+int testVoltageSpike(int *prevVoltage,
+	time_t *prevVoltageTime,
+	int *Voltage,
+	time_t *VoltageTime);
 
 char* getStateDesc(int state);
 
-int test_interfacekit(const char *progName, FILE *logfile, const char *snapFileName, char * bootflag, time_t boottime, int sleepTime, int sleepHourStart, int sleepHourEnd);
+int test_interfacekit(const char *progName,
+	FILE *logfile,
+	const char *snapFileName,
+	char * bootflag,
+	time_t boottime,
+	int sleepTime,
+	int sleepHourStart,
+	int sleepMinStart,
+	int sleepHourEnd,
+	int sleepMinEnd);
 
 #endif