dbus/dbus_libgio.go.h
static void handle_method_call(
    GDBusConnection *connection,
    const gchar *sender,
    const gchar *object_path,
    const gchar *interface_name,
    const gchar *method_name,
    GVariant *parameters,
    GDBusMethodInvocation *invocation,
    gpointer user_data)
{
    const gchar *parameter = extract_parameter(parameters);
    GVariant *response = handle_method_call_callback(
        (char *)object_path,
        (char *)interface_name,
        (char *)method_name,
        (char *)parameter);
    if (response != NULL)
    {
        g_dbus_method_invocation_return_value(invocation, response);
    }
    else
    {
        g_dbus_method_invocation_return_dbus_error(
            invocation,
            "io.mender.Failed",
            "Method returned error, see Mender logs for more details");
    }
}
// handle method call events on registered objects
handle method call events on registered objects
handle method call events on registered objects
static void handle_method_call(
    GDBusConnection *connection,
    const gchar *sender,
    const gchar *object_path,
    const gchar *interface_name,
    const gchar *method_name,
    GVariant *parameters,
    GDBusMethodInvocation *invocation,
    gpointer user_data)
{
    const gchar *parameter = extract_parameter(parameters);
    GVariant *response = handle_method_call_callback(
        (char *)object_path,
        (char *)interface_name,
        (char *)method_name,
        (char *)parameter);
    if (response != NULL)
    {
        g_dbus_method_invocation_return_value(invocation, response);
    }
    else
    {
        g_dbus_method_invocation_return_dbus_error(
            invocation,
            "io.mender.Failed",
            "Method returned error, see Mender logs for more details");
    }
}
static void handle_method_call ( GDBusConnection * connection , const gchar * sender , const gchar * object_path , const gchar * interface_name , const gchar * method_name , GVariant * parameters , GDBusMethodInvocation * invocation , gpointer user_data ) { const gchar * parameter = extract_parameter ( parameters ) ; GVariant * response = handle_method_call_callback ( ( char * ) object_path , ( char * ) interface_name , ( char * ) method_name , ( char * ) parameter ) ; if ( response != NULL ) { g_dbus_method_invocation_return_value ( invocation , response ) ; } else { g_dbus_method_invocation_return_dbus_error ( invocation , " " , " " ) ; } }
handle method call events on registered objects
handle method call events on registered objects