On Fri, Nov 3, 2017 at 8:36 PM, Cedric BAIL <cedric.b...@free.fr> wrote: > cedric pushed a commit to branch master. > > http://git.enlightenment.org/core/efl.git/commit/?id=b7066e33520531ccffbbd87d6df798208ad3cc31 > > commit b7066e33520531ccffbbd87d6df798208ad3cc31 > Author: Cedric Bail <ced...@osg.samsung.com> > Date: Mon Oct 30 16:08:09 2017 -0700 > > eo: add helper to manipulate Eo object as Eina_Value. > --- > src/lib/eo/Eo.h | 32 ++++++++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > > diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h > index ac09623b76..d740919941 100644 > --- a/src/lib/eo/Eo.h > +++ b/src/lib/eo/Eo.h > @@ -2070,6 +2070,38 @@ efl_replace(Eo **storage, Eo *new_obj) > EOAPI extern const Eina_Value_Type *EINA_VALUE_TYPE_OBJECT; > > /** > + * @brief Create a new #Eina_Value containing the passed parameter > + * @param obj The object to use > + * @return The #Eina_Value > + * @since 1.21 > + */ > +static inline Eina_Value * > +eina_value_object_new(Eo *obj) > +{ > + Eina_Value *v; > + > + v = eina_value_new(EINA_VALUE_TYPE_OBJECT); > + if (v) eina_value_set(v, obj); > + return v; > +} > + > +/** > + * @brief Create a new #EinaInitializeining the passed parameter
typo or we got a new EinaInitalizeining? :-) other than that would note that eina_value holds the reference to the object, thus it will be kept alive until flush/free is called. -- Gustavo Sverzut Barbieri -------------------------------------- Mobile: +55 (16) 99354-9890 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel