aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test/seq_trace_SUITE_data
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2011-12-07 13:29:48 +0100
committerBjörn Gustavsson <[email protected]>2011-12-09 11:46:29 +0100
commit50b30c01ade2b992271b56b32f04f234ecd01588 (patch)
tree746e46bac423f5a17fea5a6b6734f0e87b8cc206 /lib/kernel/test/seq_trace_SUITE_data
parent3e16eca1754efd6eb147253c72af0f7e5c268254 (diff)
downloadotp-50b30c01ade2b992271b56b32f04f234ecd01588.tar.gz
otp-50b30c01ade2b992271b56b32f04f234ecd01588.tar.bz2
otp-50b30c01ade2b992271b56b32f04f234ecd01588.zip
seq_trace_SUITE_data/echo_drv.c: Conform to updated driver API
Diffstat (limited to 'lib/kernel/test/seq_trace_SUITE_data')
-rw-r--r--lib/kernel/test/seq_trace_SUITE_data/echo_drv.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/lib/kernel/test/seq_trace_SUITE_data/echo_drv.c b/lib/kernel/test/seq_trace_SUITE_data/echo_drv.c
index dcbb3348d8..aa182b0877 100644
--- a/lib/kernel/test/seq_trace_SUITE_data/echo_drv.c
+++ b/lib/kernel/test/seq_trace_SUITE_data/echo_drv.c
@@ -3,7 +3,7 @@
static ErlDrvPort erlang_port;
static ErlDrvData echo_start(ErlDrvPort, char *);
-static void echo_stop(ErlDrvData), echo_read(ErlDrvData, char*, int);
+static void echo_stop(ErlDrvData), echo_read(ErlDrvData, char*, ErlDrvSizeT);
static ErlDrvEntry echo_driver_entry = {
NULL,
@@ -13,7 +13,22 @@ static ErlDrvEntry echo_driver_entry = {
NULL,
NULL,
"echo_drv",
- NULL
+ NULL,
+ NULL, /* handle */
+ NULL, /* control */
+ NULL, /* timeout */
+ NULL, /* outputv */
+ NULL, /* ready_async */
+ NULL,
+ NULL,
+ NULL,
+ ERL_DRV_EXTENDED_MARKER,
+ ERL_DRV_EXTENDED_MAJOR_VERSION,
+ ERL_DRV_EXTENDED_MINOR_VERSION,
+ 0,
+ NULL,
+ NULL,
+ NULL,
};
DRIVER_INIT(echo_drv)
@@ -31,7 +46,7 @@ static ErlDrvData echo_start(ErlDrvPort port,char *buf)
return (ErlDrvData)port;
}
-static void echo_read(ErlDrvData data, char *buf, int count)
+static void echo_read(ErlDrvData data, char *buf, ErlDrvSizeT count)
{
driver_output(erlang_port, buf, count);
}