[waffle] [PATCH v2 4/4] wflinfo.c: Add a --json flag that prints json

2016-01-05 Thread baker . dylan . c
From: Dylan Baker This adds some code to print a JSON formatted version of data provided by wflinfo. Signed-off-by: Dylan Baker v2: - Add -j short options (Frank) - Make context flags always an array (Chad) - Remove explicit returns from void functions (Chad) - Fix spaces around "*

[waffle] [PATCH v2 2/4] wflinfo.c: use ARRAY_SIZE macro

2016-01-05 Thread baker . dylan . c
From: Dylan Baker v2: - add this patch Signed-off-by: Dylan Baker --- src/utils/wflinfo.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/utils/wflinfo.c b/src/utils/wflinfo.c index eefb605..4b9 100644 --- a/src/utils/wflinfo.c +++ b/src/utils/wflinfo.c @@ -5

[waffle] [PATCH v2 3/4] wflinfo.c: split version, renderer, and vendor checks

2016-01-05 Thread baker . dylan . c
From: Dylan Baker Pull these out into helper functions, this change will be used in a following patch to add a JSON printer. Signed-off-by: Dylan Baker v2: - change "const char * name" to "const char *name" (Frank) --- src/utils/wflinfo.c | 50 -

[waffle] [PATCH v2 1/4] wflinfo.c: split out flags struct

2016-01-05 Thread baker . dylan . c
From: Dylan Baker This is groundwork for adding a json interface to wflinfo. v2: - remove extra return statement (Frank) - rename flags to context_flags (Chad) --- src/utils/wflinfo.c | 33 + 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src

[waffle] [PATCH v2 0/4] Add JSON interface to wflinfo

2016-01-05 Thread baker . dylan . c
From: Dylan Baker This is a second go at this series. Notable changes from the first version: - Style cleanups as suggested by Chad and Frank - Restructuring the JSON output to have nested dictionaries for waffle and OpenGL specific information (this way it can be easily distinguished and ea

Re: [waffle] [RFC 3/3] wflinfo.c: Add a --json flag that prints json

2016-01-05 Thread Dylan Baker
Okay. I'll send out a v2 shortly. On Tue, Jan 5, 2016 at 9:24 AM, Chad Versace wrote: > On 12/31/2015 09:51 AM, Dylan Baker wrote: > > > > > > On Wed, Dec 30, 2015 at 4:32 PM, Chad Versace > wrote: > > > > On 12/27/2015 07:49 AM, Frank Henigman wrote: > >

Re: [waffle] [RFC 3/3] wflinfo.c: Add a --json flag that prints json

2016-01-05 Thread Chad Versace
On 12/31/2015 09:51 AM, Dylan Baker wrote: > > > On Wed, Dec 30, 2015 at 4:32 PM, Chad Versace > wrote: > > On 12/27/2015 07:49 AM, Frank Henigman wrote: > > On Wed, Dec 16, 2015 at 8:37 PM, > wrote: > >> From: Dylan B