From ef71a1da33a3c68cad782029cacbc1d01328b4d6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 21 Feb 2015 23:32:24 +0000 Subject: Add API to specify module port order. Also fix various redundant resize/update issues, improve performance. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5592 a436a847-0d15-0410-975c-d299462d15a1 --- ganv/wrap.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ganv/wrap.hpp') diff --git a/ganv/wrap.hpp b/ganv/wrap.hpp index f907dea..c444e00 100644 --- a/ganv/wrap.hpp +++ b/ganv/wrap.hpp @@ -115,12 +115,17 @@ private: \ wrap(Ganv##Name* gobj) \ { \ if (gobj) { \ - GQuark key = g_quark_from_string("ganvmm"); \ - return (Ganv::Name*)g_object_get_qdata(G_OBJECT(gobj), key); \ + return (Ganv::Name*)ganv_item_get_wrapper(GANV_ITEM(gobj)); \ } else { \ return NULL; \ } \ } \ + /** Return a Ganv::CPPType wrapper for a CType. */ \ + static inline const Ganv::Name* \ + wrap(const Ganv##Name* gobj) \ + { \ + return wrap((Ganv##Name*)gobj); \ + } \ } #endif // GANV_WRAP_HPP -- cgit v1.2.1