Method
GUPnPServicesignals_autoconnect
Declaration [src]
void
gupnp_service_signals_autoconnect (
GUPnPService* service,
gpointer user_data,
GError** error
)
Description [src]
Connects call-back functions to the corresponding signals for variables and actions.
It attempts to connect all possible GUPnPService::action-invoked
and
GUPnPService::query-variable
signals to appropriate callbacks for
the service.
It is very similar to Gtk.Builder.connect_signals except that it attempts to guess the names of the signal handlers on its own.
For this function to do its magic, the application must name the callback
functions for GUPnPService::action-invoked
signals by striping the CamelCase
off the action names and either prefix them with on_
or append _cb
to them.
Similar, for GUPnPService::query-variable
signals, except that the functions
shoul be prefixed with query_
to the variable name.
For example, the callback function for the GetSystemUpdateID
action should be
either named as
get_system_update_id_cb
or on_get_system_update_id
and the callback function
for the query of the SystemUpdateID
state variable should be named
query_system_update_id_cb
or on_query_system_update_id
.
Note: This function will not work correctly if GModule
is not supported
on the platform or introspection is not available for service
.
Warning: This function can not and therefore does not guarantee that the resulting signal connections will be correct as it depends heavily on a particular naming schemes described above.
This method is not directly available to language bindings. |