Skip to content

Add arv_debug_enable() binding#26

Open
romainreignier wants to merge 2 commits into
robohouse-delft:mainfrom
romainreignier:feature/debug_enable
Open

Add arv_debug_enable() binding#26
romainreignier wants to merge 2 commits into
robohouse-delft:mainfrom
romainreignier:feature/debug_enable

Conversation

@romainreignier

Copy link
Copy Markdown

Hi,
This patch adds the binding for arv_debug_enable() to allow to change the debug level from the code (instead of the env variable ARV_DEBUG.
This is my first Glib based binding contribution so I hope that my string conversion is correct.
I have tested this new function in a program and it worked as expected.

What I am unsure is it is necessary to protect the access behind the Aravis instance to avoid concurrent access?
It seems necessary to me because it modifies a global variable here.

I have also fixed the older features definition. I have figured this out while trying to build with a pre-0.8.8 feature to unsure that my #[cfg(feature)] tags are correct and I could not build the crate with v0_8_8 and v0_8_6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant