X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace2%2Ffunc-status.h;h=444b219ec2228433fbc754172ea5aa70f1f0f508;hb=ce34b0392921093a8e86661c485a132c479abb05;hp=c817b38842a7fdad7fb5d188a17b588342abaa69;hpb=2c1d3e9111d8f1b55361b9b880350c2680c90093;p=babeltrace.git diff --git a/include/babeltrace2/func-status.h b/include/babeltrace2/func-status.h index c817b388..444b219e 100644 --- a/include/babeltrace2/func-status.h +++ b/include/babeltrace2/func-status.h @@ -37,25 +37,21 @@ */ /* Value is too large for the given data type */ -#ifndef __BT_FUNC_STATUS_OVERFLOW -# define __BT_FUNC_STATUS_OVERFLOW -75 +#ifndef __BT_FUNC_STATUS_OVERFLOW_ERROR +# define __BT_FUNC_STATUS_OVERFLOW_ERROR -75 #endif -/* Invalid query parameters */ -#ifndef __BT_FUNC_STATUS_INVALID_PARAMS -# define __BT_FUNC_STATUS_INVALID_PARAMS -24 -#endif - -/* Invalid query object */ -#ifndef __BT_FUNC_STATUS_INVALID_OBJECT -# define __BT_FUNC_STATUS_INVALID_OBJECT -23 -#endif /* Memory allocation error */ #ifndef __BT_FUNC_STATUS_MEMORY_ERROR # define __BT_FUNC_STATUS_MEMORY_ERROR -12 #endif +/* User function error */ +#ifndef __BT_FUNC_STATUS_USER_ERROR +# define __BT_FUNC_STATUS_USER_ERROR -2 +#endif + /* General error */ #ifndef __BT_FUNC_STATUS_ERROR # define __BT_FUNC_STATUS_ERROR -1 @@ -76,12 +72,22 @@ # define __BT_FUNC_STATUS_NOT_FOUND 2 #endif +/* Object is interrupted */ +#ifndef __BT_FUNC_STATUS_INTERRUPTED +# define __BT_FUNC_STATUS_INTERRUPTED 4 +#endif + +/* No match found */ +#ifndef __BT_FUNC_STATUS_NO_MATCH +# define __BT_FUNC_STATUS_NO_MATCH 6 +#endif + /* Try operation again later */ #ifndef __BT_FUNC_STATUS_AGAIN # define __BT_FUNC_STATUS_AGAIN 11 #endif -/* Object is canceled */ -#ifndef __BT_FUNC_STATUS_CANCELED -# define __BT_FUNC_STATUS_CANCELED 125 +/* Unknown query object */ +#ifndef __BT_FUNC_STATUS_UNKNOWN_OBJECT +# define __BT_FUNC_STATUS_UNKNOWN_OBJECT 42 #endif