[waffle] [PATCH 4/4] wflinfo: use waffle_string_to_enum()

2015-04-22 Thread Frank Henigman
Remove platform and api lists, and instead use waffle_string_to_enum() to parse command line platform and api arguments. Also use waffle_enum_to_string() when printing platform and api. This means it now prints GLX instead of glx and GL_ES2 instead of gles2, for example. Signed-off-by: Frank

[waffle] [PATCH 0/4] waffle_string_to_enum()

2015-04-22 Thread Frank Henigman
Here is waffle_string_to_enum() which I suggested a while back. The main motivation is the number of waffle applications which need to translate command line args to a platform and api. Not only do we avoid writing that code over and over (perhaps inconsistently), but now those programs won't need

[waffle] [PATCH 1/4] waffle: put waffle_enum items in a macro

2015-04-22 Thread Frank Henigman
List all waffle_enum items in a big #define to avoid duplicating the list when a case is needed for each item, e.g. enum to string. Signed-off-by: Frank Henigman fjhenig...@google.com --- include/waffle/waffle.h | 150 ++-- 1 file changed, 81

Re: [waffle] [PATCH 07/10] waffle: add full screen window request

2015-04-22 Thread Chad Versace
On Thu 16 Apr 2015, Frank Henigman wrote: On Thu, Apr 9, 2015 at 6:48 PM, Chad Versace chad.vers...@intel.com wrote: On Mon 30 Mar 2015, Frank Henigman wrote: You can now put WAFFLE_WINDOW_FULLSCREEN in the attribute list passed to waffle_window_create2() and get a full screen window.

Re: [waffle] [wflinfo] [RFC] platform-specific info from wflinfo

2015-04-22 Thread Dylan Baker
I think I'd prefer to not convert wflinfo to python. I also hesitate to convert wflinfo to python. After we push all the complexity of wflinfo.c into a library call, then wflinfo.c will largely consist of argparsing and a minimal json parser. wflinfo.c will then be so small that I don't

Re: [waffle] [PATCH v2] waffle: add full screen window request

2015-04-22 Thread Chad Versace
On Thu 16 Apr 2015, Frank Henigman wrote: You can now put WAFFLE_WINDOW_FULLSCREEN in the attribute list passed to waffle_window_create2() and get a full screen window. Only glx and x11_egl implemented so far. Signed-off-by: Frank Henigman fjhenig...@google.com --- v2 - value, not mere

Re: [waffle] [PATCH 07/10] waffle: add full screen window request

2015-04-22 Thread Chad Versace
On Fri 10 Apr 2015, Emil Velikov wrote: On 09/04/15 22:48, Chad Versace wrote: On Mon 30 Mar 2015, Frank Henigman wrote: You can now put WAFFLE_WINDOW_FULLSCREEN in the attribute list passed to waffle_window_create2() and get a full screen window. Only glx and x11_egl implemented so far.

Re: [waffle] [PATCH 1/4] waffle: put waffle_enum items in a macro

2015-04-22 Thread Jordan Justen
On 2015-04-22 11:03:47, Frank Henigman wrote: List all waffle_enum items in a big #define to avoid duplicating the list when a case is needed for each item, e.g. enum to string. This looks kind of yucky. :) When you recently mentioned the idea of changing wflinfo to be written in python, it

Re: [waffle] [PATCH 1/4] waffle: put waffle_enum items in a macro

2015-04-22 Thread Frank Henigman
On Wed, Apr 22, 2015 at 8:09 PM, Jordan Justen jordan.l.jus...@intel.com wrote: On 2015-04-22 11:03:47, Frank Henigman wrote: List all waffle_enum items in a big #define to avoid duplicating the list when a case is needed for each item, e.g. enum to string. This looks kind of yucky. :) When