X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fctf-writer%2Ffield-types.h;h=a891b068614b732f2d82b409e26e7758de1968e4;hb=768f9bcbf4b5acd09dda85ab32c0ea30d8826136;hp=ce4dafe65afc2309f28cef3235bd022391307843;hpb=217cf9d33a3ffc88e6eeaf21f3d46ee00cbeb0c4;p=babeltrace.git diff --git a/src/ctf-writer/field-types.h b/src/ctf-writer/field-types.h index ce4dafe6..a891b068 100644 --- a/src/ctf-writer/field-types.h +++ b/src/ctf-writer/field-types.h @@ -1,33 +1,16 @@ -#ifndef BABELTRACE_CTF_WRITER_FIELD_TYPES_INTERNAL_H -#define BABELTRACE_CTF_WRITER_FIELD_TYPES_INTERNAL_H - /* - * Copyright 2013, 2014 Jérémie Galarneau - * - * Author: Jérémie Galarneau - * - * 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: + * SPDX-License-Identifier: MIT * - * 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. + * Copyright 2013, 2014 Jérémie Galarneau * * The Common Trace Format (CTF) Specification is available at * http://www.efficios.com/ctf */ +#ifndef BABELTRACE_CTF_WRITER_FIELD_TYPES_INTERNAL_H +#define BABELTRACE_CTF_WRITER_FIELD_TYPES_INTERNAL_H + +#include #include #include @@ -449,6 +432,22 @@ struct bt_ctf_field_type_enumeration_mapping_iterator * bt_ctf_field_type_common_enumeration_unsigned_find_mappings_by_value( struct bt_ctf_field_type_common *ft, uint64_t value); +BT_HIDDEN +int bt_ctf_field_type_enumeration_mapping_iterator_next( + struct bt_ctf_field_type_enumeration_mapping_iterator *iter); + +BT_HIDDEN +int bt_ctf_field_type_enumeration_mapping_iterator_signed_get( + struct bt_ctf_field_type_enumeration_mapping_iterator *iter, + const char **mapping_name, int64_t *range_begin, + int64_t *range_end); + +BT_HIDDEN +int bt_ctf_field_type_enumeration_mapping_iterator_unsigned_get( + struct bt_ctf_field_type_enumeration_mapping_iterator *iter, + const char **mapping_name, uint64_t *range_begin, + uint64_t *range_end); + BT_HIDDEN int bt_ctf_field_type_common_enumeration_signed_get_mapping_by_index( struct bt_ctf_field_type_common *ft, uint64_t index,