X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-writer%2Fresolve-internal.h;fp=include%2Fbabeltrace%2Fctf-writer%2Fresolve-internal.h;h=0000000000000000000000000000000000000000;hp=340694e5ab0e87cfeb107209eedcf5f3e9049133;hb=3fadfbc0c91f82c46bd36e6e0657ea93570c9db1;hpb=7e69c04f557e46fb50e5a888a3bc3451afbd3b8e diff --git a/include/babeltrace/ctf-writer/resolve-internal.h b/include/babeltrace/ctf-writer/resolve-internal.h deleted file mode 100644 index 340694e5..00000000 --- a/include/babeltrace/ctf-writer/resolve-internal.h +++ /dev/null @@ -1,70 +0,0 @@ -#ifndef BABELTRACE_CTF_WRITER_RESOLVE_INTERNAL_H -#define BABELTRACE_CTF_WRITER_RESOLVE_INTERNAL_H - -/* - * Copyright 2015 Jérémie Galarneau - * Copyright 2016 Philippe Proulx - * - * Authors: Jérémie Galarneau - * Philippe Proulx - * - * 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. - */ - -#include -#include -#include -#include -#include - -enum bt_ctf_resolve_flag { - BT_CTF_RESOLVE_FLAG_PACKET_HEADER = 0x01, - BT_CTF_RESOLVE_FLAG_PACKET_CONTEXT = 0x02, - BT_CTF_RESOLVE_FLAG_EVENT_HEADER = 0x04, - BT_CTF_RESOLVE_FLAG_STREAM_EVENT_CTX = 0x08, - BT_CTF_RESOLVE_FLAG_EVENT_CONTEXT = 0x10, - BT_CTF_RESOLVE_FLAG_EVENT_PAYLOAD = 0x20, -}; - -/* - * Resolves CTF IR field types: recursively locates the tag and length - * field types of resp. variant and sequence field types. - * - * All `*_type` parameters may be resolved, and may as well serve as - * resolving targets. - * - * Resolving is performed based on the flags in `flags`. - * - * It is expected that, amongst all the provided types, no common - * references to sequence variant field types exist. In other words, - * this function does not copy field types. - * - * All parameters are owned by the caller. - */ -BT_HIDDEN -int bt_ctf_resolve_types(struct bt_ctf_private_value *environment, - struct bt_ctf_field_type_common *packet_header_type, - struct bt_ctf_field_type_common *packet_context_type, - struct bt_ctf_field_type_common *event_header_type, - struct bt_ctf_field_type_common *stream_event_ctx_type, - struct bt_ctf_field_type_common *event_context_type, - struct bt_ctf_field_type_common *event_payload_type, - enum bt_ctf_resolve_flag flags); - -#endif /* BABELTRACE_CTF_WRITER_RESOLVE_INTERNAL_H */