--- a/ker-on.c Wed Mar 08 12:16:44 2017 +0000
+++ b/ker-on.c Wed Mar 08 12:34:34 2017 +0000
@@ -11,7 +11,7 @@
#include <stdio.h>
#include <phidget21.h>
-int CCONV AttachHandler(CPhidgetHandle IFK, void *userptr)
+int AttachHandler(CPhidgetHandle IFK, void *userptr)
{
int serialNo;
const char *name;
@@ -24,7 +24,7 @@
return 0;
}
-int CCONV DetachHandler(CPhidgetHandle IFK, void *userptr)
+int DetachHandler(CPhidgetHandle IFK, void *userptr)
{
int serialNo;
const char *name;
@@ -37,7 +37,7 @@
return 0;
}
-int CCONV ErrorHandler(CPhidgetHandle IFK, void *userptr, int ErrorCode, const char *unknown)
+int ErrorHandler(CPhidgetHandle IFK, void *userptr, int ErrorCode, const char *unknown)
{
printf("Error handled. %d - %s", ErrorCode, unknown);
return 0;
@@ -45,7 +45,7 @@
//callback that will run if an input changes.
//Index - Index of the input that generated the event, State - boolean (0 or 1) representing the input state (on or off)
-int CCONV InputChangeHandler(CPhidgetInterfaceKitHandle IFK, void *usrptr, int Index, int State)
+int InputChangeHandler(CPhidgetInterfaceKitHandle IFK, void *usrptr, int Index, int State)
{
printf("Digital Input: %d > State: %d\n", Index, State);
return 0;
@@ -53,7 +53,7 @@
//callback that will run if an output changes.
//Index - Index of the output that generated the event, State - boolean (0 or 1) representing the output state (on or off)
-int CCONV OutputChangeHandler(CPhidgetInterfaceKitHandle IFK, void *usrptr, int Index, int State)
+int OutputChangeHandler(CPhidgetInterfaceKitHandle IFK, void *usrptr, int Index, int State)
{
printf("Digital Output: %d > State: %d\n", Index, State);
return 0;
@@ -61,7 +61,7 @@
//callback that will run if the sensor value changes by more than the OnSensorChange trigger.
//Index - Index of the sensor that generated the event, Value - the sensor read value
-int CCONV SensorChangeHandler(CPhidgetInterfaceKitHandle IFK, void *usrptr, int Index, int Value)
+int SensorChangeHandler(CPhidgetInterfaceKitHandle IFK, void *usrptr, int Index, int Value)
{
printf("Sensor: %d > Value: %d\n", Index, Value);
return 0;