X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace2%2Fgraph%2Fport-const.h;h=eda9ccb9acff0d48cec54053db0b83c1bdc5166d;hb=1cda4ff4025e4b3f7bd2a861baa51d2113c4cbf9;hp=adb4622c5f299aa314f4742200a8cc3b58464d28;hpb=3fadfbc0c91f82c46bd36e6e0657ea93570c9db1;p=babeltrace.git diff --git a/include/babeltrace2/graph/port-const.h b/include/babeltrace2/graph/port-const.h index adb4622c..eda9ccb9 100644 --- a/include/babeltrace2/graph/port-const.h +++ b/include/babeltrace2/graph/port-const.h @@ -1,9 +1,8 @@ -#ifndef BABELTRACE_GRAPH_PORT_CONST_H -#define BABELTRACE_GRAPH_PORT_CONST_H +#ifndef BABELTRACE2_GRAPH_PORT_CONST_H +#define BABELTRACE2_GRAPH_PORT_CONST_H /* - * Copyright 2017-2018 Philippe Proulx - * Copyright 2017 Jérémie Galarneau + * 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 @@ -24,9 +23,12 @@ * SOFTWARE. */ +#ifndef __BT_IN_BABELTRACE_H +# error "Please include instead." +#endif + #include -/* For bt_bool, bt_port, bt_connection, bt_component */ #include #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); @@ -83,4 +85,4 @@ extern void bt_port_put_ref(const bt_port *port); } #endif -#endif /* BABELTRACE_GRAPH_PORT_CONST_H */ +#endif /* BABELTRACE2_GRAPH_PORT_CONST_H */