qulogic/libgnt

Replace tree hash function prototypes by GLib ones.

2019-08-28, Elliott Sales de Andrade
bd08679f1603
Parents 04d9c8e5cb95
Children 495b78cbcbf9
Replace tree hash function prototypes by GLib ones.
  • +2 -2
    gnttree.c
  • +2 -5
    gnttree.h
  • --- a/gnttree.c Wed May 22 01:10:01 2019 -0500
    +++ b/gnttree.c Wed Aug 28 20:39:28 2019 -0400
    @@ -2113,8 +2113,8 @@
    }
    void
    -gnt_tree_set_hash_fns(GntTree *tree, GntTreeHashFunc hash,
    - GntTreeHashEqualityFunc eq, GDestroyNotify kd)
    +gnt_tree_set_hash_fns(GntTree *tree, GHashFunc hash, GEqualFunc eq,
    + GDestroyNotify kd)
    {
    GntTreePrivate *priv = NULL;
    --- a/gnttree.h Wed May 22 01:10:01 2019 -0500
    +++ b/gnttree.h Wed Aug 28 20:39:28 2019 -0400
    @@ -39,9 +39,6 @@
    #define GNT_TYPE_TREE_ROW (gnt_tree_row_get_type())
    -typedef guint (*GntTreeHashFunc)(gconstpointer key);
    -typedef gboolean (*GntTreeHashEqualityFunc)(gconstpointer a, gconstpointer b);
    -
    typedef struct _GntTreeRow GntTreeRow;
    G_BEGIN_DECLS
    @@ -537,8 +534,8 @@
    *
    * Set the hash functions to use to hash, compare and free the keys.
    */
    -void gnt_tree_set_hash_fns(GntTree *tree, GntTreeHashFunc hash,
    - GntTreeHashEqualityFunc eq, GDestroyNotify kd);
    +void gnt_tree_set_hash_fns(GntTree *tree, GHashFunc hash, GEqualFunc eq,
    + GDestroyNotify kd);
    /**
    * gnt_tree_set_column_visible: