Re-format new C++ files
[babeltrace.git] / src / plugins / ctf / fs-src / lttng-index.hpp
index 46eafa6b13ba729f276abb2441061a22e5adf818..644f57dec17c5c34f7610f9213fbedf458570973 100644 (file)
 #include <stddef.h>
 #include "compat/limits.h"
 
-#define CTF_INDEX_MAGIC 0xC1F1DCC1
-#define CTF_INDEX_MAJOR 1
-#define CTF_INDEX_MINOR 1
+#define CTF_INDEX_MAGIC    0xC1F1DCC1
+#define CTF_INDEX_MAJOR    1
+#define CTF_INDEX_MINOR    1
 #define CTF_INDEX_1_0_SIZE offsetof(struct ctf_packet_index, stream_instance_id)
 
 /*
  * Header at the beginning of each index file.
  * All integer fields are stored in big endian.
  */
-struct ctf_packet_index_file_hdr {
-       uint32_t magic;
-       uint32_t index_major;
-       uint32_t index_minor;
-       /* size of struct ctf_packet_index, in bytes. */
-       uint32_t packet_index_len;
+struct ctf_packet_index_file_hdr
+{
+    uint32_t magic;
+    uint32_t index_major;
+    uint32_t index_minor;
+    /* size of struct ctf_packet_index, in bytes. */
+    uint32_t packet_index_len;
 } __attribute__((__packed__));
 
 /*
  * Packet index generated for each trace packet store in a trace file.
  * All integer fields are stored in big endian.
  */
-struct ctf_packet_index {
-       uint64_t offset;                /* offset of the packet in the file, in bytes */
-       uint64_t packet_size;           /* packet size, in bits */
-       uint64_t content_size;          /* content size, in bits */
-       uint64_t timestamp_begin;
-       uint64_t timestamp_end;
-       uint64_t events_discarded;
-       uint64_t stream_id;
-       /* CTF_INDEX 1.0 limit */
-       uint64_t stream_instance_id;    /* ID of the channel instance */
-       uint64_t packet_seq_num;        /* packet sequence number */
+struct ctf_packet_index
+{
+    uint64_t offset;       /* offset of the packet in the file, in bytes */
+    uint64_t packet_size;  /* packet size, in bits */
+    uint64_t content_size; /* content size, in bits */
+    uint64_t timestamp_begin;
+    uint64_t timestamp_end;
+    uint64_t events_discarded;
+    uint64_t stream_id;
+    /* CTF_INDEX 1.0 limit */
+    uint64_t stream_instance_id; /* ID of the channel instance */
+    uint64_t packet_seq_num;     /* packet sequence number */
 } __attribute__((__packed__));
 
 #endif /* LTTNG_INDEX_H */
This page took 0.024127 seconds and 4 git commands to generate.