X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace2%2Ffunc-status.h;h=bba3882a609b34ab0cf5ea84117223ab344c5ed7;hp=74fc101251359f93f1186871fb195748783ab9bc;hb=0235b0db7de5bcacdb3650c92461f2ce5eb2143d;hpb=a635e50750a3c1e8907b38c8311dc0b8bb0f09c3 diff --git a/include/babeltrace2/func-status.h b/include/babeltrace2/func-status.h index 74fc1012..bba3882a 100644 --- a/include/babeltrace2/func-status.h +++ b/include/babeltrace2/func-status.h @@ -1,28 +1,12 @@ /* - * No include guards here: it is safe to include this file multiple - * times. + * SPDX-License-Identifier: MIT + * + * Copyright (C) 2010-2019 EfficiOS Inc. and Linux Foundation */ /* - * Copyright (c) 2010-2019 EfficiOS Inc. and Linux Foundation - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * No include guards here: it is safe to include this file multiple + * times. */ #ifndef __BT_IN_BABELTRACE_H @@ -37,13 +21,8 @@ */ /* Value is too large for the given data type */ -#ifndef __BT_FUNC_STATUS_OVERFLOW -# define __BT_FUNC_STATUS_OVERFLOW -75 -#endif - -/* Invalid query object */ -#ifndef __BT_FUNC_STATUS_INVALID_OBJECT -# define __BT_FUNC_STATUS_INVALID_OBJECT -23 +#ifndef __BT_FUNC_STATUS_OVERFLOW_ERROR +# define __BT_FUNC_STATUS_OVERFLOW_ERROR -75 #endif /* Memory allocation error */ @@ -51,6 +30,11 @@ # 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,7 +60,17 @@ # 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 + +/* Unknown query object */ +#ifndef __BT_FUNC_STATUS_UNKNOWN_OBJECT +# define __BT_FUNC_STATUS_UNKNOWN_OBJECT 42 +#endif