diff --git a/src/polyp/def.h b/src/polyp/def.h index 517dd4226..edada3800 100644 --- a/src/polyp/def.h +++ b/src/polyp/def.h @@ -160,6 +160,7 @@ enum { PA_ERR_BADSTATE, /**< Bad state */ PA_ERR_NODATA, /**< No data */ PA_ERR_VERSION, /**< Incompatible protocol version \since 0.8 */ + PA_ERR_TOOLARGE, /**< Data too large \since 0.8.1 */ PA_ERR_MAX /**< Not really an error but the first invalid error code */ }; diff --git a/src/polyp/error.c b/src/polyp/error.c index 3f3e637f9..e78d072e8 100644 --- a/src/polyp/error.c +++ b/src/polyp/error.c @@ -49,6 +49,7 @@ static const char* const errortab[PA_ERR_MAX] = { [PA_ERR_BADSTATE] = "Bad state", [PA_ERR_NODATA] = "No data", [PA_ERR_VERSION] = "Incompatible protocol version", + [PA_ERR_TOOLARGE] = "Too large" }; const char*pa_strerror(int error) {