Now `muxer.c` does not include internal library headers.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I33a9cf2db3df6a8d06d385f352280d90a922c4d9
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1465
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
#include <babeltrace2/trace-ir/event-class-const.h>
#include <babeltrace2/trace-ir/field-class-const.h>
#include <babeltrace2/trace-ir/field-path-const.h>
+#include <babeltrace2/graph/self-component.h>
+#include <babeltrace2/graph/message-iterator-const.h>
#include <babeltrace2/logging.h>
#include <babeltrace2/value.h>
}
};
+static inline
+const char *bt_self_component_status_string(
+ enum bt_self_component_status status)
+{
+ switch (status) {
+ case BT_SELF_COMPONENT_STATUS_OK:
+ return "BT_SELF_COMPONENT_STATUS_OK";
+ case BT_SELF_COMPONENT_STATUS_END:
+ return "BT_SELF_COMPONENT_STATUS_END";
+ case BT_SELF_COMPONENT_STATUS_AGAIN:
+ return "BT_SELF_COMPONENT_STATUS_AGAIN";
+ case BT_SELF_COMPONENT_STATUS_REFUSE_PORT_CONNECTION:
+ return "BT_SELF_COMPONENT_STATUS_REFUSE_PORT_CONNECTION";
+ case BT_SELF_COMPONENT_STATUS_ERROR:
+ return "BT_SELF_COMPONENT_STATUS_ERROR";
+ case BT_SELF_COMPONENT_STATUS_NOMEM:
+ return "BT_SELF_COMPONENT_STATUS_NOMEM";
+ default:
+ return "(unknown)";
+ }
+}
+
+static inline
+const char *bt_message_iterator_status_string(
+ enum bt_message_iterator_status status)
+{
+ switch (status) {
+ case BT_MESSAGE_ITERATOR_STATUS_AGAIN:
+ return "BT_MESSAGE_ITERATOR_STATUS_AGAIN";
+ case BT_MESSAGE_ITERATOR_STATUS_END:
+ return "BT_MESSAGE_ITERATOR_STATUS_END";
+ case BT_MESSAGE_ITERATOR_STATUS_OK:
+ return "BT_MESSAGE_ITERATOR_STATUS_OK";
+ case BT_MESSAGE_ITERATOR_STATUS_ERROR:
+ return "BT_MESSAGE_ITERATOR_STATUS_ERROR";
+ case BT_MESSAGE_ITERATOR_STATUS_NOMEM:
+ return "BT_MESSAGE_ITERATOR_STATUS_NOMEM";
+ default:
+ return "(unknown)";
+ }
+}
+
#define NS_PER_S_I INT64_C(1000000000)
#define NS_PER_S_U UINT64_C(1000000000)
void bt_component_remove_destroy_listener(struct bt_component *component,
bt_component_destroy_listener_func func, void *data);
-static inline
-const char *bt_self_component_status_string(
- enum bt_self_component_status status)
-{
- switch (status) {
- case BT_SELF_COMPONENT_STATUS_OK:
- return "BT_SELF_COMPONENT_STATUS_OK";
- case BT_SELF_COMPONENT_STATUS_END:
- return "BT_SELF_COMPONENT_STATUS_END";
- case BT_SELF_COMPONENT_STATUS_AGAIN:
- return "BT_SELF_COMPONENT_STATUS_AGAIN";
- case BT_SELF_COMPONENT_STATUS_REFUSE_PORT_CONNECTION:
- return "BT_SELF_COMPONENT_STATUS_REFUSE_PORT_CONNECTION";
- case BT_SELF_COMPONENT_STATUS_ERROR:
- return "BT_SELF_COMPONENT_STATUS_ERROR";
- case BT_SELF_COMPONENT_STATUS_NOMEM:
- return "BT_SELF_COMPONENT_STATUS_NOMEM";
- default:
- return "(unknown)";
- }
-}
-
#endif /* BABELTRACE_GRAPH_COMPONENT_INTERNAL_H */
#include "lib/object.h"
#include "lib/object-pool.h"
#include "common/assert.h"
+#include "common/common.h"
#include <stdlib.h>
#include <glib.h>
struct bt_self_component_port_input_message_iterator *iterator,
struct bt_connection *connection);
-static inline
-const char *bt_message_iterator_status_string(
- enum bt_message_iterator_status status)
-{
- switch (status) {
- case BT_MESSAGE_ITERATOR_STATUS_AGAIN:
- return "BT_MESSAGE_ITERATOR_STATUS_AGAIN";
- case BT_MESSAGE_ITERATOR_STATUS_END:
- return "BT_MESSAGE_ITERATOR_STATUS_END";
- case BT_MESSAGE_ITERATOR_STATUS_OK:
- return "BT_MESSAGE_ITERATOR_STATUS_OK";
- case BT_MESSAGE_ITERATOR_STATUS_ERROR:
- return "BT_MESSAGE_ITERATOR_STATUS_ERROR";
- case BT_MESSAGE_ITERATOR_STATUS_NOMEM:
- return "BT_MESSAGE_ITERATOR_STATUS_NOMEM";
- default:
- return "(unknown)";
- }
-};
-
static inline
const char *bt_self_component_port_input_message_iterator_state_string(
enum bt_self_component_port_input_message_iterator_state state)
#include "common/macros.h"
#include "compat/uuid.h"
#include <babeltrace2/babeltrace.h>
-#include "lib/value.h"
-#include "lib/graph/component.h"
-#include "lib/graph/message/iterator.h"
-#include "lib/graph/connection.h"
#include <glib.h>
#include <stdbool.h>
#include <inttypes.h>