X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf%2Fmetadata.h;fp=include%2Fbabeltrace%2Fctf%2Fmetadata.h;h=0000000000000000000000000000000000000000;hp=1b78762b2a9e1da9a12dc793c10a92507b6b1558;hb=dc3fffef7b84cc4af1a7c99828fd57a106cd2257;hpb=f3985ab106d89d8e764c1a8dd0c8bda09b755d10 diff --git a/include/babeltrace/ctf/metadata.h b/include/babeltrace/ctf/metadata.h deleted file mode 100644 index 1b78762b..00000000 --- a/include/babeltrace/ctf/metadata.h +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef _BABELTRACE_CTF_METADATA_H -#define _BABELTRACE_CTF_METADATA_H - -/* - * BabelTrace - * - * CTF Metadata Header - * - * Copyright 2011 - Mathieu Desnoyers - * - * 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 -#include -#include -#include -#include -#include - -#define CTF_MAGIC 0xC1FC1FC1 -#define TSDL_MAGIC 0x75D11D57 - -struct ctf_file_stream { - struct ctf_stream_definition parent; - struct ctf_stream_pos pos; /* current stream position */ -}; - -#define HEADER_END char end_field -#define header_sizeof(type) offsetof(typeof(type), end_field) - -struct metadata_packet_header { - uint32_t magic; /* 0x75D11D57 */ - uint8_t uuid[16]; /* Unique Universal Identifier */ - uint32_t checksum; /* 0 if unused */ - uint32_t content_size; /* in bits */ - uint32_t packet_size; /* in bits */ - uint8_t compression_scheme; /* 0 if unused */ - uint8_t encryption_scheme; /* 0 if unused */ - uint8_t checksum_scheme; /* 0 if unused */ - uint8_t major; /* CTF spec major version number */ - uint8_t minor; /* CTF spec minor version number */ - HEADER_END; -}; - -#endif /* _BABELTRACE_CTF_METADATA_H */