summaryrefslogtreecommitdiffstats
path: root/data.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-08-05 19:27:19 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-08-05 19:27:19 +0200
commit5edb8d14272ea2ecd9784a26e150a45954d67e2e (patch)
treef769aca2c7fc78ccb3a291623ca5c60c124413bb /data.c
parentf290bdc333b01dbc5f695236e0b72db1ac2a67d5 (diff)
downloadipecamera-5edb8d14272ea2ecd9784a26e150a45954d67e2e.tar.gz
ipecamera-5edb8d14272ea2ecd9784a26e150a45954d67e2e.tar.bz2
ipecamera-5edb8d14272ea2ecd9784a26e150a45954d67e2e.tar.xz
ipecamera-5edb8d14272ea2ecd9784a26e150a45954d67e2e.zip
Introduce API debugging
Diffstat (limited to 'data.c')
-rw-r--r--data.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/data.c b/data.c
index dc61234..d636097 100644
--- a/data.c
+++ b/data.c
@@ -189,6 +189,8 @@ int ipecamera_get(pcilib_context_t *vctx, pcilib_event_id_t event_id, pcilib_eve
return PCILIB_ERROR_NOTINITIALIZED;
}
+ ipecamera_debug(API, "ipecamera: get (data)");
+
buf_ptr = ipecamera_resolve_event_id(ctx, event_id);
if (buf_ptr < 0) return PCILIB_ERROR_OVERWRITTEN;
@@ -272,5 +274,7 @@ int ipecamera_return(pcilib_context_t *vctx, pcilib_event_id_t event_id, pcilib_
pthread_rwlock_unlock(&ctx->frame[buf_ptr].mutex);
}
+ ipecamera_debug(API, "ipecamera: return (data)");
+
return 0;
}