speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/3] Factor out common audio module stuff into a macro


From: Trevor Saunders
Subject: [PATCH 2/3] Factor out common audio module stuff into a macro
Date: Wed, 25 Jul 2012 00:41:26 -0400

> +#define SPD_AUDIO_PLUGIN(modname) \
> +     spd_audio_plugin_t * modname##_plugin_get(void) { return 
> &modname##_functions; }\
> +     spd_audio_plugin_t * SPD_AUDIO_PLUGIN_ENTRY (void) __attribute__ 
> ((weak, alias(#modname "_plugin_get")));

I wonder if we can come up with a name that makes it clearer what this
macro is for, maybe REGISTER_AUDIO_PLUGIN()? or
GET_AUDIO_PLUGIN_VTABLE()?

Trev

> +
> +#endif
> -- 
> 1.7.7.5 (Apple Git-26)
> 
> 
> _______________________________________________
> Speechd mailing list
> Speechd at lists.freebsoft.org
> http://lists.freebsoft.org/mailman/listinfo/speechd



reply via email to

[Prev in Thread] Current Thread [Next in Thread]