I am using gdbus-codegen
to generate code for DBUS client.
I have GVariant property in third party DBUS server <property name="someProperty" type="(iiii)" access="read"/>
When I call the autogenerated method to get the property value:
GVariant* data = interface_name_get_some_property(proxy);
some times the data is NULL
. The comment in the autogenerated code states:
Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
What does "not set" means and how should I treat this situation? I thought that by default (if option G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES is not set) glib loads all properties and they all should be set.