projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make API CTF-agnostic
[babeltrace.git]
/
include
/
babeltrace
/
ctf-writer
/
serialize-internal.h
diff --git
a/include/babeltrace/ctf-writer/serialize-internal.h
b/include/babeltrace/ctf-writer/serialize-internal.h
index 7e6073a04a39ee34a2f3dec6cff4f533176c2358..85e2fec348bd96dbdccf139b0279fd42c89d503b 100644
(file)
--- a/
include/babeltrace/ctf-writer/serialize-internal.h
+++ b/
include/babeltrace/ctf-writer/serialize-internal.h
@@
-34,6
+34,7
@@
#include <sys/stat.h>
#include <fcntl.h>
#include <babeltrace/align-internal.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <babeltrace/align-internal.h>
+#include <babeltrace/endian-internal.h>
#include <babeltrace/common-internal.h>
#include <babeltrace/mmap-align-internal.h>
#include <babeltrace/types.h>
#include <babeltrace/common-internal.h>
#include <babeltrace/mmap-align-internal.h>
#include <babeltrace/types.h>
@@
-44,6
+45,12
@@
#define PACKET_LEN_INCREMENT (bt_common_get_page_size() * 8 * CHAR_BIT)
#define PACKET_LEN_INCREMENT (bt_common_get_page_size() * 8 * CHAR_BIT)
+#if (BYTE_ORDER == BIG_ENDIAN)
+# define BT_CTF_MY_BYTE_ORDER BT_CTF_BYTE_ORDER_BIG_ENDIAN
+#else
+# define BT_CTF_MY_BYTE_ORDER BT_CTF_BYTE_ORDER_LITTLE_ENDIAN
+#endif
+
struct bt_ctf_stream_pos {
int fd;
int prot; /* mmap protection */
struct bt_ctf_stream_pos {
int fd;
int prot; /* mmap protection */
This page took
0.024576 seconds
and
4
git commands to generate.