diff options
-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 } |