diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2015-07-28 21:32:57 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2015-07-28 21:32:57 (GMT) | 
| commit | 41efd099244b53a0edb40d097b34bf28a05b6367 (patch) | |
| tree | 90f2419db6584e672b9f190e7e61e589e0345459 /src/analysis/db/items/comment.c | |
| parent | e56a0553f710235d829f36b1edbf3cea00148a98 (diff) | |
Begun to manage collection items as active or inactive using timestamps.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@558 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/db/items/comment.c')
| -rw-r--r-- | src/analysis/db/items/comment.c | 13 | 
1 files changed, 7 insertions, 6 deletions
| diff --git a/src/analysis/db/items/comment.c b/src/analysis/db/items/comment.c index 1bed0ab..249620b 100644 --- a/src/analysis/db/items/comment.c +++ b/src/analysis/db/items/comment.c @@ -67,7 +67,7 @@ static void g_db_comment_dispose(GDbComment *);  static void g_db_comment_finalize(GDbComment *);  /* Effectue la comparaison entre deux commentaires enregistrés. */ -static gint g_db_comment_cmp(GDbComment *, GDbComment *); +static gint g_db_comment_cmp(GDbComment *, GDbComment *, bool);  /* Importe la définition d'un commentaire dans un flux réseau. */  static bool g_db_comment_recv_from_fd(GDbComment *, int, int); @@ -157,7 +157,7 @@ static void g_db_comment_class_init(GDbCommentClass *klass)      item = G_DB_ITEM_CLASS(klass); -    item->cmp = (GCompareFunc)g_db_comment_cmp; +    item->cmp = (cmp_db_item_fc)g_db_comment_cmp;      item->recv = (recv_db_item_fc)g_db_comment_recv_from_fd;      item->send = (send_db_item_fc)g_db_comment_send_to_fd; @@ -259,8 +259,9 @@ GDbComment *g_db_comment_new(const vmpa2t *addr, const char *text, bool is_volat  /******************************************************************************  *                                                                             * -*  Paramètres  : a = premier élément à analyser.                              * -*                b = second élément à analyser.                               * +*  Paramètres  : a    = premier élément à analyser.                           * +*                b    = second élément à analyser.                            * +*                with = précise les horodatages à prendre en compte.          *  *                                                                             *  *  Description : Effectue la comparaison entre deux commentaires enregistrés. *  *                                                                             * @@ -270,7 +271,7 @@ GDbComment *g_db_comment_new(const vmpa2t *addr, const char *text, bool is_volat  *                                                                             *  ******************************************************************************/ -static gint g_db_comment_cmp(GDbComment *a, GDbComment *b) +static gint g_db_comment_cmp(GDbComment *a, GDbComment *b, bool with)  {      gint result;                            /* Bilan de la comparaison     */ @@ -280,7 +281,7 @@ static gint g_db_comment_cmp(GDbComment *a, GDbComment *b)          result = cmp_rle_string(&a->text, &b->text);      if (result == 0) -        result = G_DB_ITEM_CLASS(g_db_comment_parent_class)->cmp(G_DB_ITEM(a), G_DB_ITEM(b)); +        result = G_DB_ITEM_CLASS(g_db_comment_parent_class)->cmp(G_DB_ITEM(a), G_DB_ITEM(b), with);      return 0; | 
