summaryrefslogtreecommitdiffstats
path: root/src/lib/eina_graph_private.h
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-01-03 22:05:27 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-01-03 22:05:27 +0100
commit2c3450a380342ed1f63314e2d0e732415902484f (patch)
tree7cc8778f6f2a71a5d4745b6fabace79810c83169 /src/lib/eina_graph_private.h
parent1cdad817aeac33568efebc5656908373330f7b34 (diff)
downloadeina_graph-2c3450a380342ed1f63314e2d0e732415902484f.zip
eina_graph-2c3450a380342ed1f63314e2d0e732415902484f.tar.gz
add macros CAST_V() and CAST_D() to support Eina_List(data)<->vertex number conversion
Diffstat (limited to 'src/lib/eina_graph_private.h')
-rw-r--r--src/lib/eina_graph_private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/eina_graph_private.h b/src/lib/eina_graph_private.h
index 25a6e73..36cfa09 100644
--- a/src/lib/eina_graph_private.h
+++ b/src/lib/eina_graph_private.h
@@ -90,6 +90,11 @@ eina_graph_adjacents_push(Eina_Graph_Adjacents *adjs, unsigned int v, unsigned i
return EINA_TRUE;
}
+/*+
+ * To cast a vertex number into Eina_List data.
+ */
+#define CAST_V(_v) ((void *) (uintptr_t) _v)
+
typedef struct _Eina_Graph
{
unsigned int vertices;