Fix: src.ctf.lttng-live: emitting stream end msg with no stream
[babeltrace.git] / include / babeltrace2 / graph / port-const.h
index a6436a5daf1c1c7c5a66685430fc5d56a87c1091..eda9ccb9acff0d48cec54053db0b83c1bdc5166d 100644 (file)
@@ -2,8 +2,7 @@
 #define BABELTRACE2_GRAPH_PORT_CONST_H
 
 /*
- * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
- * Copyright 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * Copyright (c) 2010-2019 EfficiOS Inc. and Linux Foundation
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
  * SOFTWARE.
  */
 
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 #include <stdint.h>
 
-/* For bt_bool, bt_port, bt_connection, bt_component */
 #include <babeltrace2/types.h>
 
 #ifdef __cplusplus
@@ -34,8 +36,8 @@ extern "C" {
 #endif
 
 typedef enum bt_port_type {
-       BT_PORT_TYPE_INPUT = 0,
-       BT_PORT_TYPE_OUTPUT = 1,
+       BT_PORT_TYPE_INPUT      = 1 << 0,
+       BT_PORT_TYPE_OUTPUT     = 1 << 1,
 } bt_port_type;
 
 extern const char *bt_port_get_name(const bt_port *port);
This page took 0.023683 seconds and 4 git commands to generate.