]> sigrok.org Git - libsigrok.git/commit
output: Actually return a NULL-terminated array.
authorBert Vermeulen <redacted>
Fri, 15 Aug 2014 18:16:31 +0000 (20:16 +0200)
committerBert Vermeulen <redacted>
Fri, 15 Aug 2014 18:23:52 +0000 (20:23 +0200)
commitfc74643098877824b7a3cf16cc24de624b191615
treeb798810f190bc8d9407caac7ac6b49f78867f39f
parentdb81fbb58261825e03aadaf20cff794e4c65401a
output: Actually return a NULL-terminated array.

This returned an array of structs with an NULL-ed element at the end.
The drivers still do this, but the wrappers now make and free a NULL-
terminated array around it.

sr_output_options_free() now takes the pointer returned by
sr_output_options_get(), instead of the module owning it.
include/libsigrok/proto.h
src/output/output.c