summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-01-26 12:51:56 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-01-26 12:51:56 +0100
commit4d1b81680849492bea72907e22e276fcdfdd756a (patch)
treebde1796c455edd25dc47c640d558ff7b4448bb03
parent70350338f84596c1c5f42697774250773be52da1 (diff)
downloadipecamera-4d1b81680849492bea72907e22e276fcdfdd756a.tar.gz
ipecamera-4d1b81680849492bea72907e22e276fcdfdd756a.tar.bz2
ipecamera-4d1b81680849492bea72907e22e276fcdfdd756a.tar.xz
ipecamera-4d1b81680849492bea72907e22e276fcdfdd756a.zip
Added ipecamera_get_last_event_id() to public API
-rw-r--r--events.c3
-rw-r--r--ipecamera.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/events.c b/events.c
index 6220961..0f0f006 100644
--- a/events.c
+++ b/events.c
@@ -201,3 +201,6 @@ retry:
return 0;
}
+pcilib_event_id_t ipecamera_get_last_event_id(ipecamera_t *ctx) {
+ return ctx->event_id;
+}
diff --git a/ipecamera.h b/ipecamera.h
index d5e52d2..d9269ee 100644
--- a/ipecamera.h
+++ b/ipecamera.h
@@ -38,6 +38,7 @@ extern "C" {
#endif
int ipecamera_set_buffer_size(ipecamera_t *ctx, int size);
+pcilib_event_id_t ipecamera_get_last_event_id(ipecamera_t *ctx);
#ifdef __cplusplus
}