On Tue, 12 Oct 2010, Enlightenment SVN wrote:
> Log:
> tiny api addition to allow adding a data pointer to a watch
we are in beta, no feature addition, please revert that. Tiny or not we
are feature freeze.
Vincent
> Author: discomfitor
> Date: 2010-10-12 19:53:35 -0700 (Tue, 12 Oct 2010)
> New Revision: 53332
>
> Modified:
> trunk/eeze/src/lib/Eeze.h trunk/eeze/src/lib/eeze_udev_watch.c
>
> Modified: trunk/eeze/src/lib/Eeze.h
> ===================================================================
> --- trunk/eeze/src/lib/Eeze.h 2010-10-13 02:53:33 UTC (rev 53331)
> +++ trunk/eeze/src/lib/Eeze.h 2010-10-13 02:53:35 UTC (rev 53332)
> @@ -216,6 +216,8 @@
>
> EAPI Eeze_Udev_Watch *eeze_udev_watch_add(Eeze_Udev_Type type, int event,
> Eeze_Udev_Watch_Cb cb, void *user_data);
> EAPI void *eeze_udev_watch_del(Eeze_Udev_Watch *watch);
> + EAPI void eeze_udev_watch_data_set(Eeze_Udev_Watch *watch,
> void *data);
> + EAPI void *eeze_udev_watch_data_get(Eeze_Udev_Watch *watch);
>
> #ifdef __cplusplus
> }
>
> Modified: trunk/eeze/src/lib/eeze_udev_watch.c
> ===================================================================
> --- trunk/eeze/src/lib/eeze_udev_watch.c 2010-10-13 02:53:33 UTC (rev
> 53331)
> +++ trunk/eeze/src/lib/eeze_udev_watch.c 2010-10-13 02:53:35 UTC (rev
> 53332)
> @@ -15,6 +15,7 @@
> _udev_monitor *mon;
> Ecore_Fd_Handler *handler;
> Eeze_Udev_Type type;
> + void *data;
> };
>
> /* private */
> @@ -412,3 +413,35 @@
> free(watch);
> return ret;
> }
> +
> +/**
> + * Associate data with a watch
> + * @p watch The watch to associate with
> + * @p data The data to associate
> + * This function is used to associate a data pointer with a watch
> + * object for later retrieval.
> + */
> +EAPI void
> +eeze_udev_watch_data_set(Eeze_Udev_Watch *watch, void *data)
> +{
> + if ((!watch) || (!watch->mon) || (!watch->handler))
> + return;
> +
> + watch->data = data;
> +}
> +
> +/**
> + * Retrieve associated data from a watch
> + * @p watch The watch the data is associated
> + * @return The data associated
> + * This function is used to retrieve the data pointer which has been
> + * previously associated with a watch.
> + */
> +EAPI void *
> +eeze_udev_watch_data_get(Eeze_Udev_Watch *watch)
> +{
> + if ((!watch) || (!watch->mon) || (!watch->handler))
> + return NULL;
> +
> + return watch->data;
> +}
>
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
> Spend less time writing and rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> enlightenment-svn mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel