Store the wayland registry globals in a list so that we can bind to them from a user/test program. When a custom interface (protocol extension) is used in a wayland compositor, this allows user/test program to use that interface. For instance, one might provide a custom wayland test protocol that give access to otherwise hidden/missing functionality that allows effective automated testing (in wayland engines). See the Weston unit test suite for an example of this concept.
I've also attached a sample program that just prints the global list. Examples of actually binding to the interface is left up to the savvy. U. Artie
ecore_wayland_globals.diff
Description: ecore_wayland_globals.diff
#include <Elementary.h> #include <Ecore_Wayland.h> EAPI_MAIN int elm_main(int argc, char** argv) { unsigned int i; Evas_Object *win; Ecore_Wl_Window *wlwin = NULL; Ecore_Wl_Global *global, *next; elm_init(argc, argv); win = elm_win_util_standard_add(elm_config_engine_get(), elm_config_engine_get()); elm_win_autodel_set(win, EINA_TRUE); evas_object_resize(win, 200, 200); evas_object_show(win); elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); wlwin = elm_win_wl_window_get(win); fprintf(stdout, "Wayland Global Interfaces:\n"); wl_list_for_each_safe(global, next, &wlwin->display->globals, link) { fprintf(stdout, " %s %d %d\n", global->interface, global->id, global->version); } elm_run(); elm_shutdown(); return 0; } ELM_MAIN()
------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d
_______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel