#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
#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);