summaryrefslogtreecommitdiffstats
path: root/model.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-05-02 14:46:12 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-05-02 14:46:12 +0200
commit5252a0049e0a509508a8f331222543620db0e6d3 (patch)
tree8d4b6bb20cbbbcfd8881130a6f6c2cbf2a3d6339 /model.c
parent6d3c61711bfe6524272bbde591e3494e0346a7da (diff)
downloadipecamera-5252a0049e0a509508a8f331222543620db0e6d3.tar.gz
ipecamera-5252a0049e0a509508a8f331222543620db0e6d3.tar.bz2
ipecamera-5252a0049e0a509508a8f331222543620db0e6d3.tar.xz
ipecamera-5252a0049e0a509508a8f331222543620db0e6d3.zip
Provide version information as required by new pcilib interface
Diffstat (limited to 'model.c')
-rw-r--r--model.c5
1 files changed, 4 insertions, 1 deletions
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,