diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2018-01-26 12:51:56 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2018-01-26 12:51:56 +0100 |
commit | 4d1b81680849492bea72907e22e276fcdfdd756a (patch) | |
tree | bde1796c455edd25dc47c640d558ff7b4448bb03 | |
parent | 70350338f84596c1c5f42697774250773be52da1 (diff) | |
download | ipecamera-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.c | 3 | ||||
-rw-r--r-- | ipecamera.h | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -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 } |