Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve Table Length #17

Open
kfishermail opened this issue Jan 24, 2022 · 4 comments
Open

Retrieve Table Length #17

kfishermail opened this issue Jan 24, 2022 · 4 comments

Comments

@kfishermail
Copy link

I am monitoring signals emmitted by bluez(bluetooth)
A lot of the signals contain tables with no entrys
I need to know if a table is empty before trying to retrieve
it's contents.

I noticed there is a dbus function 'dbus_message_iter_get_element_count()' that
appears to do what I want, but I don't think it is implemented in ldbus.

questions:
What is the proper way to determine an empty table in a signal message?
Can the above function be added to ldbus?

@daurnimator
Copy link
Owner

Can the above function be added to ldbus?

Please send a PR :)

@kfishermail
Copy link
Author

What is a PR? How Do I send one?

@daurnimator
Copy link
Owner

What is a PR? How Do I send one?

PR = Pull Request.
This seems to be a reasonable introductory guide: https://www.freecodecamp.org/news/how-to-make-your-first-pull-request-on-github-3/

Do you have any experience with C?

@kfishermail
Copy link
Author

kfishermail commented Jan 24, 2022 via email

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

No branches or pull requests

2 participants