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_add_supports_type(GAppInfo* appinfo,
                                      const char* content_type, GError** error)
{
    GAppInfoIface* iface;

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

    iface = G_APP_INFO_GET_IFACE(appinfo);

    if (iface->add_supports_type)
        return (*iface->add_supports_type)(appinfo, content_type, error);

    g_set_error_literal(error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
                        "g_app_info_add_supports_type not supported yet");

    return FALSE;
}
/**
 * g_app_info_add_supports_type:
 * @appinfo: a #GAppInfo.
 * @content_type: a string.
 * @error: a #GError.
 *
 * Adds a content type to the application information to indicate the
 * application is capable of opening files with the given content type.
 *
 * Returns: %TRUE on success, %FALSE on error.
 **/


Adds a content type to the application information to indicate the
application is capable of opening files with the given content type.

%TRUE on success, %FALSE on error.
Adds a content type to the application information to indicate the application is capable of opening files with the given content type . %TRUE on success %FALSE on error .
gboolean g_app_info_add_supports_type(GAppInfo* appinfo,
                                      const char* content_type, GError** error)
{
    GAppInfoIface* iface;
    g_return_val_if_fail(G_IS_APP_INFO(appinfo), FALSE);
    g_return_val_if_fail(content_type != NULL, FALSE);
    iface = G_APP_INFO_GET_IFACE(appinfo);
    if (iface->add_supports_type)
        return (*iface->add_supports_type)(appinfo, content_type, error);
    g_set_error_literal(error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
                        "g_app_info_add_supports_type not supported yet");
    return FALSE;
}
gboolean g_app_info_add_supports_type ( GAppInfo * appinfo , const char * content_type , GError * * error ) { GAppInfoIface * iface ; g_return_val_if_fail ( G_IS_APP_INFO ( appinfo ) , FALSE ) ; g_return_val_if_fail ( content_type != NULL , FALSE ) ; iface = G_APP_INFO_GET_IFACE ( appinfo ) ; if ( iface -> add_supports_type ) return ( * iface -> add_supports_type ) ( appinfo , content_type , error ) ; g_set_error_literal ( error , G_IO_ERROR , G_IO_ERROR_NOT_SUPPORTED , " " ) ; return FALSE ; }
g_app_info_add_supports_type:
 @appinfo: a #GAppInfo.
g_app_info_add_supports_type : @appinfo : a #GAppInfo .