summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2013-02-12 10:21:00 +0000
committerCedric BAIL <cedric.bail@free.fr>2013-02-12 10:21:00 +0000
commit532c000c5ce1983934f499b73331e418e66c5e3f (patch)
tree8ac3034d4bf4294d23b35fe56e6023ecd2ae6bf1
parentcb4dea0c9e2fd1214349e5554ca85278f0f1225f (diff)
eoxx: add some vodoo to the C++ binding.
I don't like the way this show up in the class. Any better idea ? SVN revision: 83851
-rw-r--r--eoxx/src/lib/Eo.hh15
1 files changed, 13 insertions, 2 deletions
diff --git a/eoxx/src/lib/Eo.hh b/eoxx/src/lib/Eo.hh
index aa0dcf6..ed6bbf7 100644
--- a/eoxx/src/lib/Eo.hh
+++ b/eoxx/src/lib/Eo.hh
@@ -29,6 +29,8 @@ namespace efl {
29 if (!iobj) throw efl::eo_null; 29 if (!iobj) throw efl::eo_null;
30 } 30 }
31 31
32 ~eo() {};
33
32 void invalidate(); 34 void invalidate();
33 bool valid() const; 35 bool valid() const;
34 36
@@ -46,13 +48,22 @@ namespace efl {
46 _ref(); 48 _ref();
47 } 49 }
48 50
49 ~eo() {};
50
51 operator Eo *() { return iobj; } 51 operator Eo *() { return iobj; }
52 52
53 bool operator==(const eo &c) const { return iobj == c.iobj; } 53 bool operator==(const eo &c) const { return iobj == c.iobj; }
54 bool operator!=(const eo &c) const { return iobj != c.iobj; } 54 bool operator!=(const eo &c) const { return iobj != c.iobj; }
55 55
56 bool vdo(Eo_Op_Type op_type, ...) {
57 va_list ops;
58 Eina_Bool ret;
59
60 va_start(ops, op_type);
61 ret = eo_vdo_internal(iobj, op_type, &ops);
62 va_end(ops);
63
64 return ret ? true : false;
65 }
66
56 protected: 67 protected:
57 virtual void _unref(); 68 virtual void _unref();
58 virtual void _ref(); 69 virtual void _ref();