diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-09-29 21:27:03 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-09-29 21:27:03 (GMT) |
commit | 3a83a06db8ee27eafcd0219d1d26bf2af23737f5 (patch) | |
tree | 163ea7fbe1435b9f380e7ae96dfc36d8f16d1d0a /src/analysis/db/item.h | |
parent | 55bc8570f25a479b222733c4093f9ae996c9f68e (diff) |
Cleaned the DB code a little bit.
Diffstat (limited to 'src/analysis/db/item.h')
-rw-r--r-- | src/analysis/db/item.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/analysis/db/item.h b/src/analysis/db/item.h index 32c296a..d041362 100644 --- a/src/analysis/db/item.h +++ b/src/analysis/db/item.h @@ -90,13 +90,7 @@ int g_db_item_cmp_timestamp(const GDbItem **, const GDbItem **); int g_db_item_cmp_with_timestamp(const timestamp_t *, const GDbItem **); /* Effectue la comparaison entre deux éléments de collection. */ -gint g_db_item_cmp(GDbItem *, GDbItem *, bool); - -/* Effectue la comparaison entre deux éléments de collection. */ -gint g_db_item_compare_with_timestamp(GDbItem *, GDbItem *); - -/* Effectue la comparaison entre deux éléments de collection. */ -gint g_db_item_compare_without_timestamp(GDbItem *, GDbItem *); +gint g_db_item_cmp(const GDbItem *, const GDbItem *); /* Importe la définition d'une base d'éléments pour collection. */ bool g_db_item_unpack(GDbItem *, packed_buffer *); @@ -111,7 +105,7 @@ bool g_db_item_apply(GDbItem *, GLoadedBinary *); bool g_db_item_cancel(GDbItem *, GLoadedBinary *); /* Décrit l'élément de collection en place. */ -char *g_db_item_get_label(GDbItem *); +char *g_db_item_get_label(const GDbItem *); /* Fournit l'horodatage associé à l'élément de collection. */ timestamp_t g_db_item_get_timestamp(const GDbItem *); @@ -132,14 +126,6 @@ DbItemFlags g_db_item_get_flags(const GDbItem *); (g_db_item_get_flags(i) & f) -////////// -#define g_db_item_is_enabled(i) ((g_db_item_get_flags(i) & DIF_DISABLED) == 0) - - -/* Active ou désactive un élément de collection en place. */ -bool g_db_item_switch_state(GDbItem *, GLoadedBinary *); - - /* --------------------- MANIPULATIONS AVEC UNE BASE DE DONNEES --------------------- */ |