## gva-favorites

gva-favorites — Favorite Games Management

## Synopsis

    GSList *            gva_favorites_copy                  (void);
    void                gva_favorites_insert                (const gchar *game);
    void                gva_favorites_remove                (const gchar *game);
    gboolean            gva_favorites_contains              (const gchar *game);

## Description

These functions manipulate the user's list of favorite games.

## Details

### gva_favorites_copy ()

    GSList *            gva_favorites_copy                  (void);

Returns a copy of the favorite games list. The contents of the list must not be freed. The list itself should be freed with `g_slist_free()`.

Returns : | a copy of the favorite games list

### gva_favorites_insert ()

    void                gva_favorites_insert                (const gchar *game);

Inserts `game` into the favorite games list.

`game` : | the name of a game

### gva_favorites_remove ()

    void                gva_favorites_remove                (const gchar *game);

Removes `game` from the favorite games list.

`game` : | the name of a game

### gva_favorites_contains ()

    gboolean            gva_favorites_contains              (const gchar *game);

Returns `TRUE` if the favorite games list contains `game`.

`game` : | the name of a game
Returns : | `TRUE` if `game` is a favorite, otherwise `FALSE`