## ev-metadata-manager

ev-metadata-manager —

## Synopsis

    void        ev_metadata_manager_init        (void);
    gboolean    ev_metadata_manager_get         (const gchar *uri,
                                                 const gchar *key,
                                                 GValue *value,
                                                 gboolean ignore_last);
    void        ev_metadata_manager_set         (const gchar *uri,
                                                 const gchar *key,
                                                 const GValue *value);
    void        ev_metadata_manager_set_int     (const gchar *uri,
                                                 const gchar *key,
                                                 int value);
    void        ev_metadata_manager_set_double  (const gchar *uri,
                                                 const gchar *key,
                                                 double value);
    void        ev_metadata_manager_set_string  (const gchar *uri,
                                                 const gchar *key,
                                                 const gchar *value);
    void        ev_metadata_manager_set_boolean (const gchar *uri,
                                                 const gchar *key,
                                                 gboolean value);
    void        ev_metadata_manager_shutdown    (void);

## Description

## Details

### ev_metadata_manager_init ()

    void        ev_metadata_manager_init        (void);

Creates an EvMetadataManager with default values.

values_loaded -> `FALSE`. timeout_id -> the id of the event source. items -> a new full empty GHashTable.

### ev_metadata_manager_get ()

    gboolean    ev_metadata_manager_get         (const gchar *uri,
                                                 const gchar *key,
                                                 GValue *value,
                                                 gboolean ignore_last);

Retrieve value for uri in metadata database

`uri` : | Uri to set data for, if `NULL`, we return default value
`key` : | Key to set uri
`value` : | GValue struct filled up with value
`ignore_last` : | if `TRUE`, default value is ignored
Returns : | `TRUE` if value was taken.

### ev_metadata_manager_set ()

    void        ev_metadata_manager_set         (const gchar *uri,
                                                 const gchar *key,
                                                 const GValue *value);

Set value for key in metadata database

`uri` : | Uri to set data for, if `NULL`, we set default value
`key` : | Key to set uri
`value` : | GValue struct containing value

### ev_metadata_manager_set_int ()

    void        ev_metadata_manager_set_int     (const gchar *uri,
                                                 const gchar *key,
                                                 int value);

`uri` : |
`key` : |
`value` : |

### ev_metadata_manager_set_double ()

    void        ev_metadata_manager_set_double  (const gchar *uri,
                                                 const gchar *key,
                                                 double value);

`uri` : |
`key` : |
`value` : |

### ev_metadata_manager_set_string ()

    void        ev_metadata_manager_set_string  (const gchar *uri,
                                                 const gchar *key,
                                                 const gchar *value);

`uri` : |
`key` : |
`value` : |

### ev_metadata_manager_set_boolean ()

    void        ev_metadata_manager_set_boolean (const gchar *uri,
                                                 const gchar *key,
                                                 gboolean value);

`uri` : |
`key` : |
`value` : |

### ev_metadata_manager_shutdown ()

    void        ev_metadata_manager_shutdown    (void);