aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/evas/src/lib/canvas
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2005-11-06 09:47:28 +0000
committerCarsten Haitzler <raster@rasterman.com>2005-11-06 09:47:28 +0000
commitd1861a8d4c20c7b39076729ee971adacbfdeb129 (patch)
tree1e672a38a7e4be1375888283487b93d03a19c0c3 /legacy/evas/src/lib/canvas
parentfix leakies (diff)
downloadefl-d1861a8d4c20c7b39076729ee971adacbfdeb129.tar.gz
add a call
SVN revision: 18336
Diffstat (limited to 'legacy/evas/src/lib/canvas')
-rw-r--r--legacy/evas/src/lib/canvas/evas_main.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_main.c b/legacy/evas/src/lib/canvas/evas_main.c
index 4d162490b5..a73865d972 100644
--- a/legacy/evas/src/lib/canvas/evas_main.c
+++ b/legacy/evas/src/lib/canvas/evas_main.c
@@ -983,3 +983,33 @@ evas_pointer_inside_get(Evas *e)
MAGIC_CHECK_END();
return (int)e->pointer.inside;
}
+
+/**
+ * Attaches a specific pointer to the evas for fetching later
+ *
+ * @param e The canvas to attach the pointer to
+ * @param data The pointer to attach
+ */
+void
+evas_data_attach_set(Evas *e, void *data)
+{
+ MAGIC_CHECK(e, Evas, MAGIC_EVAS);
+ return;
+ MAGIC_CHECK_END();
+ e->attach_data = data;
+}
+
+/**
+ * Returns the pointer attached by evas_data_attach_set()
+ *
+ * @param e The canvas to attach the pointer to
+ * @return The pointer attached
+ */
+void *
+evas_data_attach_get(Evas *e)
+{
+ MAGIC_CHECK(e, Evas, MAGIC_EVAS);
+ return NULL;
+ MAGIC_CHECK_END();
+ return e->attach_data;
+}