149
155
memcpy(info, ctx->frame + ((ctx->reported_id-1)%ctx->buffer_size), sizeof(ipecamera_event_info_t));
150
156
else if (info_size >= sizeof(pcilib_event_info_t))
151
157
memcpy(info, ctx->frame + ((ctx->reported_id-1)%ctx->buffer_size), sizeof(pcilib_event_info_t));
153
160
return PCILIB_ERROR_INVALID_ARGUMENT;
156
164
if ((ctx->event_id - ctx->reported_id) >= ctx->buffer_size) goto retry;