Libfm: Libfm Reference Manual

## Libfm Libfm — Libfm initialization |

## Functions

gboolean | fm_init ()
void | fm_finalize ()
const char * | fm_version ()

## Types and Values

extern GQuark | fm_qdata_id

## Description

`include` : libfm/fm.h

## Functions

### fm_init ()

    gboolean
    fm_init (FmConfig *config);

Initializes libfm data. This API should be always called before any other Libfm function is called. It is idempotent.

#### Parameters

config | configuration file data. | [allow-none]

#### Returns

`FALSE` in case of duplicate call.

Since: 0.1.0

### fm_finalize ()

    void
    fm_finalize ();

Frees libfm data.

This API should be called exactly that many times the `fm_init()` was called before.

Since: 0.1.0

### fm_version ()

    const char *
    fm_version (void);

Returns text representation of Libfm version.

#### Returns

text string.

[transfer none]

Since: 1.2.0

## Types and Values

### fm_qdata_id

    extern GQuark fm_qdata_id; /* a quark value used to associate data with objects */