]> code.delx.au - pulseaudio/commitdiff
libpulse: add new error code PA_ERR_BUSY
authorLennart Poettering <lennart@poettering.net>
Thu, 10 Sep 2009 23:20:45 +0000 (01:20 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Sep 2009 23:20:45 +0000 (01:20 +0200)
src/pulse/def.h
src/pulse/error.c

index 08399ca84735aba42f23a289b1cfe1837458d54f..1a7da974c3947be9ca0f78b21d4d32dd724ec7c8 100644 (file)
@@ -394,6 +394,7 @@ enum {
     PA_ERR_NOTIMPLEMENTED,         /**< Missing implementation. \since 0.9.15 */
     PA_ERR_FORKED,                 /**< The caller forked without calling execve() and tried to reuse the context. \since 0.9.15 */
     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 */
 };
 
index 93a13fc6e8589893fb396cb6115c2e9748ad93c0..e8276990203fd5489fb9a1b791c18d1ac867bfd3 100644 (file)
@@ -64,7 +64,9 @@ const char*pa_strerror(int error) {
         [PA_ERR_NOEXTENSION] = N_("No such extension"),
         [PA_ERR_OBSOLETE] = N_("Obsolete functionality"),
         [PA_ERR_NOTIMPLEMENTED] = N_("Missing implementation"),
-        [PA_ERR_FORKED] = N_("Client forked")
+        [PA_ERR_FORKED] = N_("Client forked"),
+        [PA_ERR_IO] = N_("Input/Output error"),
+        [PA_ERR_BUSY] = N_("Device or resource busy")
     };
 
     pa_init_i18n();