Misc questions regarding the axoverlay example #376
Unanswered
apljungquist
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be great if anyone could help me answer any or all of these questions. For context I'm trying to write Rust bindings for the API, which is why I'm extra interested in how it works in general as opposed to does my current app do what I expect.
1
It looks to me like the errors would pile up if
axoverlay_destroy_overlay
fails in this snippet, which from my understanding of the docs is a bug. Is this a mistake in the app or does the API follow some other convention?acap-native-sdk-examples/axoverlay/app/axoverlay.c
Line 446 in 33b7742
https://docs.gtk.org/glib/error-reporting.html#rules-for-use-of-gerror
2
Should this be read to imply that the default value is something other than
NULL
?acap-native-sdk-examples/axoverlay/app/axoverlay.c
Line 383 in 33b7742
https://axiscommunications.github.io/acap-documentation/3.5/api/axoverlay/html/axoverlay_8h.html#a3564acf79f48af97e2414127696f82d7
3
The docs state that
https://axiscommunications.github.io/acap-documentation/3.5/api/axoverlay/html/axoverlay_8h.html#abcee514e8d556934e857fd594a471865
This seems to contradict the example where
axoverlay_is_backend_supported
is called first:Am I correct in assuming that this function is exempted?
If so, are there any other exempted functions (apart from the setters that explicitly say they must be called before
axoverlay_init
)?Beta Was this translation helpful? Give feedback.
All reactions