add a new error code PA_ERR_NOEXTENSION

This commit is contained in:
Lennart Poettering 2008-08-03 18:54:55 +02:00
parent 23bde22b10
commit 114f290be7
2 changed files with 5 additions and 1 deletions

View file

@ -352,6 +352,7 @@ enum {
PA_ERR_TOOLARGE, /**< Data too large */ PA_ERR_TOOLARGE, /**< Data too large */
PA_ERR_NOTSUPPORTED, /**< Operation not supported \since 0.9.5 */ PA_ERR_NOTSUPPORTED, /**< Operation not supported \since 0.9.5 */
PA_ERR_UNKNOWN, /**< The error code was unknown to the client */ PA_ERR_UNKNOWN, /**< The error code was unknown to the client */
PA_ERR_NOEXTENSION, /**< Extension does not exist. \since 0.9.12 */
PA_ERR_MAX /**< Not really an error but the first invalid error code */ PA_ERR_MAX /**< Not really an error but the first invalid error code */
}; };

View file

@ -57,7 +57,10 @@ const char*pa_strerror(int error) {
[PA_ERR_BADSTATE] = "Bad state", [PA_ERR_BADSTATE] = "Bad state",
[PA_ERR_NODATA] = "No data", [PA_ERR_NODATA] = "No data",
[PA_ERR_VERSION] = "Incompatible protocol version", [PA_ERR_VERSION] = "Incompatible protocol version",
[PA_ERR_TOOLARGE] = "Too large" [PA_ERR_TOOLARGE] = "Too large",
[PA_ERR_NOTSUPPORTED] = "Not supported",
[PA_ERR_UNKNOWN] = "Unknown error code",
[PA_ERR_NOEXTENSION] = "No such extension"
}; };
if (error < 0 || error >= PA_ERR_MAX) if (error < 0 || error >= PA_ERR_MAX)