From 50bfa774f69cd3ee62477f3d21f2b2b25e8d82c6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 3 Feb 2009 03:08:14 +0100 Subject: add new error code PA_ERR_NOTIMPLEMENTED --- src/pulse/def.h | 1 + src/pulse/error.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pulse/def.h b/src/pulse/def.h index 85ac701d..1acf19a0 100644 --- a/src/pulse/def.h +++ b/src/pulse/def.h @@ -364,6 +364,7 @@ enum { PA_ERR_UNKNOWN, /**< The error code was unknown to the client */ PA_ERR_NOEXTENSION, /**< Extension does not exist. \since 0.9.12 */ PA_ERR_OBSOLETE, /**< Obsolete functionality. \since 0.9.15 */ + PA_ERR_NOTIMPLEMENTED, /**< Missing implementation. \since 0.9.15 */ PA_ERR_MAX /**< Not really an error but the first invalid error code */ }; diff --git a/src/pulse/error.c b/src/pulse/error.c index d9d0a8c6..d37084bb 100644 --- a/src/pulse/error.c +++ b/src/pulse/error.c @@ -61,7 +61,9 @@ const char*pa_strerror(int error) { [PA_ERR_TOOLARGE] = N_("Too large"), [PA_ERR_NOTSUPPORTED] = N_("Not supported"), [PA_ERR_UNKNOWN] = N_("Unknown error code"), - [PA_ERR_NOEXTENSION] = N_("No such extension") + [PA_ERR_NOEXTENSION] = N_("No such extension"), + [PA_ERR_OBSOLETE] = N_("Obsolete functionality"), + [PA_ERR_NOTIMPLEMENTED] = N_("Missing implementation") }; pa_init_i18n(); -- cgit