For the series: Reviewed-by: Chris Bagwell <ch...@cnpbagwell.com>
On Sun, Dec 18, 2011 at 9:37 PM, Peter Hutterer <peter.hutte...@who-t.net> wrote: > We need a copy of it in the driver. This is just the one the driver uses for > pre-ABI 14 compatibility, we don't need the server's exact copy since we're > not testing that API (that's the server's job), only our use of the API. > > Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> > --- > test/fake-symbols.c | 35 +++++++++++++++++++++++++++++++++++ > 1 files changed, 35 insertions(+), 0 deletions(-) > > diff --git a/test/fake-symbols.c b/test/fake-symbols.c > index e25dd34..9607bf3 100644 > --- a/test/fake-symbols.c > +++ b/test/fake-symbols.c > @@ -461,3 +461,38 @@ void > xf86UnblockSIGIO (int wasset) > { > } > + > +/* This is not the same as the X server one, but it'll do for the tests */ > +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 14 > +typedef struct _InputOption { > + struct _InputOption *next; > + char *key; > + char *value; > +} InputOption; > + > +InputOption* > +input_option_new(InputOption *list, const char *key, const char *value) > +{ > + InputOption *new; > + > + new = calloc(1, sizeof(InputOption)); > + new->key = strdup(key); > + new->value = strdup(value); > + new->next = list; > + return new; > +} > + > +void > +input_option_free_list(InputOption **opts) > +{ > + InputOption *tmp = *opts; > + while(*opts) > + { > + tmp = (*opts)->next; > + free((*opts)->key); > + free((*opts)->value); > + free((*opts)); > + *opts = tmp; > + } > +} > +#endif > -- > 1.7.7.1 > > > ------------------------------------------------------------------------------ > Learn Windows Azure Live! Tuesday, Dec 13, 2011 > Microsoft is holding a special Learn Windows Azure training event for > developers. It will provide a great way to learn Windows Azure and what it > provides. You can attend the event by watching it streamed LIVE online. > Learn more at http://p.sf.net/sfu/ms-windowsazure > _______________________________________________ > Linuxwacom-devel mailing list > Linuxwacom-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel ------------------------------------------------------------------------------ Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel