update sample

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@315 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale 2007-11-06 15:10:14 +00:00
parent d0465d4cd2
commit d5cd1adac0
1 changed files with 24 additions and 0 deletions

View File

@ -83,6 +83,26 @@ static ZINT_WRITE_FUNCTION(skel_write)
return ZAP_FAIL;
}
static ZIO_SPAN_POLL_EVENT_FUNCTION(skel_poll_event)
{
return ZAP_FAIL;
}
static ZIO_SPAN_NEXT_EVENT_FUNCTION(skel_next_event)
{
return ZAP_FAIL;
}
static ZIO_CHANNEL_DESTROY_FUNCTION(skel_channel_destroy)
{
return ZAP_FAIL;
}
static ZIO_GET_ALARMS_FUNCTION(skel_get_alarms)
{
return zap_fail;
}
static zap_software_interface_t skel_interface;
zap_status_t skel_init(zap_software_interface_t **zint)
@ -99,6 +119,10 @@ zap_status_t skel_init(zap_software_interface_t **zint)
skel_interface.wait = skel_wait;
skel_interface.read = skel_read;
skel_interface.write = skel_write;
skel_interface.poll_event = skel_poll_event;
skel_interface.next_event = skel_next_event;
skel_interface.channel_destroy = skel_channel_destroy;
skel_interface.get_alarms = skel_get_alarms;
*zint = &skel_interface;
return ZAP_FAIL;