Browse Source

Added ipecamera_get_last_event_id() to public API

Suren A. Chilingaryan 6 years ago
parent
commit
4d1b816808
2 changed files with 4 additions and 0 deletions
  1. 3 0
      events.c
  2. 1 0
      ipecamera.h

+ 3 - 0
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;
+}

+ 1 - 0
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
 }