## camel-kolab-imapx-metadata-db camel-kolab-imapx-metadata-db |

## Synopsis

    struct              CamelKolabImapxMetadataDb;
    gboolean            camel_kolab_imapx_metadata_db_close (CamelKolabImapxMetadataDb *mdb,
                                                             GError **err);
    gboolean            camel_kolab_imapx_metadata_db_folder_update
                                                            (CamelKolabImapxMetadataDb *mdb,
                                                             const gchar *foldername,
                                                             const struct _CamelKolabImapxFolderMetadata *kfmd,
                                                             GError **err);
    gboolean            camel_kolab_imapx_metadata_db_free  (CamelKolabImapxMetadataDb *mdb,
                                                             GError **err);
    gboolean            camel_kolab_imapx_metadata_db_init  (CamelKolabImapxMetadataDb *mdb,
                                                             GError **err);
    struct _CamelKolabImapxFolderMetadata * camel_kolab_imapx_metadata_db_lookup
                                                            (CamelKolabImapxMetadataDb *mdb,
                                                             const gchar *foldername,
                                                             GError **err);
    CamelKolabImapxMetadataDb * camel_kolab_imapx_metadata_db_new
                                                            (void);
    gboolean            camel_kolab_imapx_metadata_db_open  (CamelKolabImapxMetadataDb *mdb,
                                                             const gchar *cachepath,
                                                             GError **err);
    gboolean            camel_kolab_imapx_metadata_db_remove_folder
                                                            (CamelKolabImapxMetadataDb *mdb,
                                                             const gchar *foldername,
                                                             GError **err);
    gboolean            camel_kolab_imapx_metadata_db_update
                                                            (CamelKolabImapxMetadataDb *mdb,
                                                             GHashTable *kolab_metadata,
                                                             GError **err);

## Description

## Details

### struct CamelKolabImapxMetadataDb

    struct CamelKolabImapxMetadataDb {
    	sqlite3  *db; /* sqlite3 DB handle */
    	gchar    *path; /* path to the sqlite3 metadata db file */
    	gint	 ctr; /* aux counter, usable with callback functions */
    };

### camel_kolab_imapx_metadata_db_close ()

    gboolean            camel_kolab_imapx_metadata_db_close (CamelKolabImapxMetadataDb *mdb,
                                                             GError **err);

### camel_kolab_imapx_metadata_db_folder_update ()

    gboolean            camel_kolab_imapx_metadata_db_folder_update
                                                            (CamelKolabImapxMetadataDb *mdb,
                                                             const gchar *foldername,
                                                             const struct _CamelKolabImapxFolderMetadata *kfmd,
                                                             GError **err);

### camel_kolab_imapx_metadata_db_free ()

    gboolean            camel_kolab_imapx_metadata_db_free  (CamelKolabImapxMetadataDb *mdb,
                                                             GError **err);

### camel_kolab_imapx_metadata_db_init ()

    gboolean            camel_kolab_imapx_metadata_db_init  (CamelKolabImapxMetadataDb *mdb,
                                                             GError **err);

### camel_kolab_imapx_metadata_db_lookup ()

    struct _CamelKolabImapxFolderMetadata * camel_kolab_imapx_metadata_db_lookup
                                                            (CamelKolabImapxMetadataDb *mdb,
                                                             const gchar *foldername,
                                                             GError **err);

### camel_kolab_imapx_metadata_db_new ()

    CamelKolabImapxMetadataDb * camel_kolab_imapx_metadata_db_new
                                                            (void);

### camel_kolab_imapx_metadata_db_open ()

    gboolean            camel_kolab_imapx_metadata_db_open  (CamelKolabImapxMetadataDb *mdb,
                                                             const gchar *cachepath,
                                                             GError **err);

### camel_kolab_imapx_metadata_db_remove_folder ()

    gboolean            camel_kolab_imapx_metadata_db_remove_folder
                                                            (CamelKolabImapxMetadataDb *mdb,
                                                             const gchar *foldername,
                                                             GError **err);

### camel_kolab_imapx_metadata_db_update ()

    gboolean            camel_kolab_imapx_metadata_db_update
                                                            (CamelKolabImapxMetadataDb *mdb,
                                                             GHashTable *kolab_metadata,
                                                             GError **err);