openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/glib-2.0/1_2.60.3-r0/glib-2.60.3/gio/gappinfo.c
gboolean g_app_info_set_as_default_for_extension(GAppInfo* appinfo,
                                                 const char* extension,
                                                 GError** error)
{
    GAppInfoIface* iface;

    g_return_val_if_fail(G_IS_APP_INFO(appinfo), FALSE);
    g_return_val_if_fail(extension != NULL, FALSE);

    iface = G_APP_INFO_GET_IFACE(appinfo);

    if (iface->set_as_default_for_extension)
        return (*iface->set_as_default_for_extension)(appinfo, extension,
                                                      error);

    g_set_error_literal(
        error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
        "g_app_info_set_as_default_for_extension not supported yet");
    return FALSE;
}
/**
 * g_app_info_set_as_default_for_extension:
 * @appinfo: a #GAppInfo.
 * @extension: (type filename): a string containing the file extension
 *     (without the dot).
 * @error: a #GError.
 *
 * Sets the application as the default handler for the given file extension.
 *
 * Returns: %TRUE on success, %FALSE on error.
 **/


Sets the application as the default handler for the given file extension.

%TRUE on success, %FALSE on error.
Sets the application as the default handler for the given file extension . %TRUE on success %FALSE on error .
gboolean g_app_info_set_as_default_for_extension(GAppInfo* appinfo,
                                                 const char* extension,
                                                 GError** error)
{
    GAppInfoIface* iface;
    g_return_val_if_fail(G_IS_APP_INFO(appinfo), FALSE);
    g_return_val_if_fail(extension != NULL, FALSE);
    iface = G_APP_INFO_GET_IFACE(appinfo);
    if (iface->set_as_default_for_extension)
        return (*iface->set_as_default_for_extension)(appinfo, extension,
                                                      error);
    g_set_error_literal(
        error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
        "g_app_info_set_as_default_for_extension not supported yet");
    return FALSE;
}
gboolean g_app_info_set_as_default_for_extension ( GAppInfo * appinfo , const char * extension , GError * * error ) { GAppInfoIface * iface ; g_return_val_if_fail ( G_IS_APP_INFO ( appinfo ) , FALSE ) ; g_return_val_if_fail ( extension != NULL , FALSE ) ; iface = G_APP_INFO_GET_IFACE ( appinfo ) ; if ( iface -> set_as_default_for_extension ) return ( * iface -> set_as_default_for_extension ) ( appinfo , extension , error ) ; g_set_error_literal ( error , G_IO_ERROR , G_IO_ERROR_NOT_SUPPORTED , " " ) ; return FALSE ; }
g_app_info_set_as_default_for_extension:
 @appinfo: a #GAppInfo.
g_app_info_set_as_default_for_extension : @appinfo : a #GAppInfo .