From 5252a0049e0a509508a8f331222543620db0e6d3 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sat, 2 May 2015 14:46:12 +0200 Subject: Provide version information as required by new pcilib interface --- model.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'model.c') diff --git a/model.c b/model.c index 02a6f0c..f9a608c 100644 --- a/model.c +++ b/model.c @@ -6,6 +6,7 @@ #include "base.h" #include "cmosis.h" #include "model.h" +#include "version.h" enum ipecamera_protocol_s { IPECAMERA_PROTOCOL_CMOSIS = PCILIB_REGISTER_PROTOCOL0, @@ -13,7 +14,7 @@ enum ipecamera_protocol_s { static const pcilib_register_protocol_api_description_t ipecamera_cmosis_protocol_api = - { NULL, NULL, ipecamera_cmosis_read, ipecamera_cmosis_write }; + { IPECAMERA_VERSION, NULL, NULL, ipecamera_cmosis_read, ipecamera_cmosis_write }; /* static const pcilib_dma_description_t ipecamera_dma = @@ -150,6 +151,8 @@ static const pcilib_event_data_type_description_t ipecamera_data_types[] = { }; pcilib_event_api_description_t ipecamera_image_api = { + IPECAMERA_VERSION, + ipecamera_init, ipecamera_free, -- cgit v1.2.3