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

Determine null GA_json #12

Open
borgbyte opened this issue Mar 18, 2019 · 0 comments
Open

Determine null GA_json #12

borgbyte opened this issue Mar 18, 2019 · 0 comments

Comments

@borgbyte
Copy link
Contributor

Documentation states:

gdk/include/gdk.h

Lines 493 to 499 in adb65ad

* This must be called before GA_connect/GA_connect_with_proxy.
* Notifications may arrive on different threads so the caller must ensure
* that shared data is correctly locked within the handler.
* The GA_json object passed to the caller must be destroyed by the caller
* using GA_destroy_json. Failing to do so will result in memory leaks.
* When the session is disconnected/destroyed, a final call will be made to
* the handler with a NULL notification.

Currently to know if a GA_json is null I call GA_convert_json_value_to_string which gives the string "null".

Maybe GA_json_is_null or something could be added?

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

1 participant