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
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
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
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.
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
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
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.
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
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
9 matches
Mail list logo