summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Meerwald <p.meerwald@bct-electronic.com>2011-12-12 10:59:46 +0100
committerTanu Kaskinen <tanuk@iki.fi>2012-01-14 16:30:45 +0200
commit910bc7c2b4c56f0a8d0c1ed2f9ab98bb8f51d579 (patch)
tree56e6336660f38ed76db62b7d29ada55740a1546e
parent177cfb1f1c24ad2a6efe36eadc59750b4e3193d6 (diff)
downloadpulseaudio-panda-910bc7c2b4c56f0a8d0c1ed2f9ab98bb8f51d579.tar.gz
pulseaudio-panda-910bc7c2b4c56f0a8d0c1ed2f9ab98bb8f51d579.tar.bz2
pulseaudio-panda-910bc7c2b4c56f0a8d0c1ed2f9ab98bb8f51d579.zip
pulse: Turn the anonymous error code enum into pa_error_code_t.
The purpose is to make it possible to link to the enumeration in doxygen.
-rw-r--r--src/pulse/def.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulse/def.h b/src/pulse/def.h
index 98d36517..7ca0c4ba 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