[pulseaudio-discuss] [PATCH] turn anonymous error code enum into pa_error_code / pa_error_code_t for the purpose of linking to it in doxygen

Tanu Kaskinen tanuk at iki.fi
Sat Jan 14 06:36:57 PST 2012


Hi,

Thanks, I've applied this to my tree now, will push soon. I will
probably have some comments still for the patch that actually uses the
doxygen linking, but that will have to wait a bit still.

-- 
Tanu


On Mon, 2011-12-12 at 10:59 +0100, Peter Meerwald wrote:
> From: Peter Meerwald <p.meerwald at bct-electronic.com>
> 
> ---
>  src/pulse/def.h |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/pulse/def.h b/src/pulse/def.h
> index 98d3651..7ca0c4b 100644
> --- a/src/pulse/def.h
> +++ b/src/pulse/def.h
> @@ -399,7 +399,7 @@ typedef struct pa_buffer_attr {
>  } pa_buffer_attr;
>  
>  /** Error values as used by pa_context_errno(). Use pa_strerror() to convert these values to human readable strings */
> -enum {
> +typedef enum pa_error_code {
>      PA_OK = 0,                     /**< No error */
>      PA_ERR_ACCESS,                 /**< Access failure */
>      PA_ERR_COMMAND,                /**< Unknown command */
> @@ -428,7 +428,7 @@ enum {
>      PA_ERR_IO,                     /**< An IO error happened. \since 0.9.16 */
>      PA_ERR_BUSY,                   /**< Device or resource busy. \since 0.9.17 */
>      PA_ERR_MAX                     /**< Not really an error but the first invalid error code */
> -};
> +} pa_error_code_t;
>  
>  /** \cond fulldocs */
>  #define PA_OK PA_OK




More information about the pulseaudio-discuss mailing list