aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/a_SUITE_data
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2011-12-07 14:55:59 +0100
committerBjörn Gustavsson <[email protected]>2011-12-09 11:46:30 +0100
commit1f36e85aa0b5ab0ffa325cb32ed4e389e418e028 (patch)
tree4e565b2e14188a8ea9878a88e8a23185e4964f56 /erts/emulator/test/a_SUITE_data
parente6aed438fc47f16f44154457a50883373e14ad5b (diff)
downloadotp-1f36e85aa0b5ab0ffa325cb32ed4e389e418e028.tar.gz
otp-1f36e85aa0b5ab0ffa325cb32ed4e389e418e028.tar.bz2
otp-1f36e85aa0b5ab0ffa325cb32ed4e389e418e028.zip
emulator test drivers: Conform to updated driver API
Diffstat (limited to 'erts/emulator/test/a_SUITE_data')
-rw-r--r--erts/emulator/test/a_SUITE_data/timer_driver.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/erts/emulator/test/a_SUITE_data/timer_driver.c b/erts/emulator/test/a_SUITE_data/timer_driver.c
index ef4dcdf501..44be94e0f0 100644
--- a/erts/emulator/test/a_SUITE_data/timer_driver.c
+++ b/erts/emulator/test/a_SUITE_data/timer_driver.c
@@ -17,7 +17,9 @@
#define CANCELLED 4
static ErlDrvData timer_start(ErlDrvPort, char*);
-static void timer_stop(ErlDrvData), timer_read(ErlDrvData, char*, int), timer(ErlDrvData);
+static void timer_stop(ErlDrvData),
+ timer_read(ErlDrvData, char*, ErlDrvSizeT),
+ timer(ErlDrvData);
static ErlDrvEntry timer_driver_entry =
{
@@ -33,6 +35,16 @@ static ErlDrvEntry timer_driver_entry =
NULL,
timer,
NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ ERL_DRV_EXTENDED_MARKER,
+ ERL_DRV_EXTENDED_MAJOR_VERSION,
+ ERL_DRV_EXTENDED_MINOR_VERSION,
+ 0,
+ NULL,
+ NULL,
NULL
};
@@ -47,8 +59,9 @@ static ErlDrvData timer_start(ErlDrvPort port, char *buf)
}
/* set the timer, this is monitored from erlang measuring the time */
-static void timer_read(ErlDrvData port, char *buf, int len)
+static void timer_read(ErlDrvData p, char *buf, ErlDrvSizeT len)
{
+ ErlDrvPort port = (ErlDrvPort) p;
char reply[1];
if (buf[0] == START_TIMER) {
@@ -62,8 +75,9 @@ static void timer_read(ErlDrvData port, char *buf, int len)
}
}
-static void timer_stop(ErlDrvData port)
+static void timer_stop(ErlDrvData p)
{
+ ErlDrvPort port = (ErlDrvPort) p;
driver_cancel_timer(port);
}