summaryrefslogtreecommitdiff
path: root/src/gtkext/graph/leaving.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-03-15 10:55:03 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-03-15 10:55:03 (GMT)
commitf65f83fd222d14934b527152899359327813128e (patch)
tree742e0f08a82ba941e386e5e3764a84b13e0c9ffe /src/gtkext/graph/leaving.h
parent0a190905f31d7c395e1b26efe3abe443687429e5 (diff)
Tracked vertical links beyond their cluster.
Diffstat (limited to 'src/gtkext/graph/leaving.h')
-rw-r--r--src/gtkext/graph/leaving.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/gtkext/graph/leaving.h b/src/gtkext/graph/leaving.h
index b81e1ca..fc949db 100644
--- a/src/gtkext/graph/leaving.h
+++ b/src/gtkext/graph/leaving.h
@@ -71,10 +71,18 @@ typedef enum _LeavingLinkDir
} LeavingLinkDir;
/* Détermine une direction prise par un lien à son départ. */
-LeavingLinkDir get_leaving_link_direction(const leaving_link_t *);
+LeavingLinkDir get_leaving_link_direction(const leaving_link_t *, gint, gint);
-/* Compare deux liens sortants. */
-int cmp_leaving_links(const leaving_link_t **, const leaving_link_t **, const LeavingLinkDir *);
+/* Transmision d'éléments pour comparaisons */
+typedef struct _leaving_cmp_info_t
+{
+ GGraphCluster *root;
+ LeavingLinkDir dir;
+
+} leaving_cmp_info_t;
+
+/*Compare deux liens sortants. */
+int cmp_leaving_links(const leaving_link_t **a, const leaving_link_t **b, const leaving_cmp_info_t *);