diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2019-09-25 22:20:25 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2019-09-25 22:20:25 (GMT) | 
| commit | 6ed1e4110eb19b78f76154aa095a74414531f04c (patch) | |
| tree | d1c3562cb6e180baff3c388a3bb3574b0a02213b /src/analysis/db/collection-int.h | |
| parent | 3dc843b3f7991dcd738a30821ff56c7fe13f1094 (diff) | |
Prepared history for database items.
Diffstat (limited to 'src/analysis/db/collection-int.h')
| -rw-r--r-- | src/analysis/db/collection-int.h | 10 | 
1 files changed, 4 insertions, 6 deletions
| diff --git a/src/analysis/db/collection-int.h b/src/analysis/db/collection-int.h index b3b83bb..c9d37bf 100644 --- a/src/analysis/db/collection-int.h +++ b/src/analysis/db/collection-int.h @@ -35,9 +35,6 @@  /* Crée la table associée à une collection d'éléments. */  typedef bool (* collec_create_db_table_fc) (const GDbCollection *, sqlite3 *); -/* Décrit les colonnes utiles à un chargement de données. */ -typedef bool (* collec_setup_load_fc) (GDbCollection *, bound_value **, size_t *); -  /* Charge les valeurs utiles pour une localisation. */  typedef bool (* collec_load_item) (GDbCollection *, const bound_value *, size_t); @@ -58,8 +55,8 @@ struct _GDbCollection      /* Référence circulaire */      GLoadedBinary *binary;                  /* Binaire rattaché éventuel   */ -    GList *items;                           /* Eléments rassemblés         */ -    GList *sorted;                          /* Eléments triés              */ +    GDbItem **items;                        /* Eléments rassemblés         */ +    size_t count;                           /* Quantité de ces éléments    */      GHashTable *last_items;                 /* Statuts courants d'éléments */      GRWLock params_access;                  /* Verrou de protection        */ @@ -71,7 +68,6 @@ struct _GDbCollectionClass      GObjectClass parent;                    /* A laisser en premier        */      collec_create_db_table_fc create_table; /* Création de la table en SQL */ -    collec_setup_load_fc setup_load;        /* Prépare le chargement       */      collec_load_item load_item;             /* Charge un élément           */      collec_has_key_fc has_key;              /* Recherche de présence       */ @@ -79,6 +75,8 @@ struct _GDbCollectionClass      void (* content_extended) (GDbCollection *, GDbItem *); +    void (* state_changed) (GDbCollection *, GDbItem *); +  }; | 
