X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-writer%2Ffields.h;fp=include%2Fbabeltrace%2Fctf-writer%2Ffields.h;h=0000000000000000000000000000000000000000;hp=2ff25abdac3f02b555b4b8350c7246e346bcbc75;hb=3fadfbc0c91f82c46bd36e6e0657ea93570c9db1;hpb=7e69c04f557e46fb50e5a888a3bc3451afbd3b8e diff --git a/include/babeltrace/ctf-writer/fields.h b/include/babeltrace/ctf-writer/fields.h deleted file mode 100644 index 2ff25abd..00000000 --- a/include/babeltrace/ctf-writer/fields.h +++ /dev/null @@ -1,139 +0,0 @@ -#ifndef BABELTRACE_CTF_WRITER_FIELDS_H -#define BABELTRACE_CTF_WRITER_FIELDS_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: - * - * 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. - * - * The Common Trace Format (CTF) Specification is available at - * http://www.efficios.com/ctf - */ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct bt_ctf_field; -struct bt_ctf_event_class; -struct bt_ctf_event; -struct bt_ctf_field_type; -struct bt_ctf_field_type_enumeration_mapping_iterator; - -extern struct bt_ctf_field *bt_ctf_field_create( - struct bt_ctf_field_type *field_type); - -extern struct bt_ctf_field_type *bt_ctf_field_get_type( - struct bt_ctf_field *field); - -extern enum bt_ctf_field_type_id bt_ctf_field_get_type_id( - struct bt_ctf_field *field); - -extern struct bt_ctf_field *bt_ctf_field_copy(struct bt_ctf_field *field); - -extern int bt_ctf_field_integer_signed_get_value( - struct bt_ctf_field *integer_field, int64_t *value); - -/* Pre-2.0 CTF writer compatibility */ -static inline -int bt_ctf_field_signed_integer_set_value( - struct bt_ctf_field *integer_field, int64_t *value) -{ - return bt_ctf_field_integer_signed_get_value(integer_field, value); -} - -extern int bt_ctf_field_integer_signed_set_value( - struct bt_ctf_field *integer_field, int64_t value); - -extern int bt_ctf_field_integer_unsigned_get_value( - struct bt_ctf_field *integer_field, uint64_t *value); - -extern int bt_ctf_field_integer_unsigned_set_value( - struct bt_ctf_field *integer_field, uint64_t value); - -/* Pre-2.0 CTF writer compatibility */ -static inline -int bt_ctf_field_unsigned_integer_set_value( - struct bt_ctf_field *integer_field, uint64_t *value) -{ - return bt_ctf_field_integer_unsigned_get_value(integer_field, value); -} - -extern int bt_ctf_field_floating_point_get_value( - struct bt_ctf_field *float_field, double *value); - -extern int bt_ctf_field_floating_point_set_value( - struct bt_ctf_field *float_field, double value); - -extern struct bt_ctf_field *bt_ctf_field_enumeration_get_container( - struct bt_ctf_field *enum_field); - -extern const char *bt_ctf_field_string_get_value( - struct bt_ctf_field *string_field); - -extern int bt_ctf_field_string_set_value(struct bt_ctf_field *string_field, - const char *value); - -extern int bt_ctf_field_string_append(struct bt_ctf_field *string_field, - const char *value); - -extern int bt_ctf_field_string_append_len( - struct bt_ctf_field *string_field, const char *value, - unsigned int length); - -extern struct bt_ctf_field *bt_ctf_field_structure_get_field_by_name( - struct bt_ctf_field *struct_field, const char *name); - -/* Pre-2.0 CTF writer compatibility */ -static inline -struct bt_ctf_field *bt_ctf_field_structure_get_field( - struct bt_ctf_field *structure, const char *name) -{ - return bt_ctf_field_structure_get_field_by_name(structure, name); -} - -extern struct bt_ctf_field *bt_ctf_field_structure_get_field_by_index( - struct bt_ctf_field *struct_field, uint64_t index); - -extern struct bt_ctf_field *bt_ctf_field_array_get_field( - struct bt_ctf_field *array_field, uint64_t index); - -extern struct bt_ctf_field *bt_ctf_field_sequence_get_field( - struct bt_ctf_field *sequence_field, uint64_t index); - -extern int bt_ctf_field_sequence_set_length(struct bt_ctf_field *sequence_field, - struct bt_ctf_field *length_field); - -extern struct bt_ctf_field *bt_ctf_field_variant_get_field( - struct bt_ctf_field *variant_field, - struct bt_ctf_field *tag_field); - -extern struct bt_ctf_field *bt_ctf_field_variant_get_current_field( - struct bt_ctf_field *variant_field); - -#ifdef __cplusplus -} -#endif - -#endif /* BABELTRACE_CTF_WRITER_FIELDS_H */