lib: bt_graph_create(): accept MIP version
[babeltrace.git] / include / babeltrace2 / graph / self-component.h
index 4d53697f953dd8de1ba5d1f57f8a7b7068704021..ba722d9813cfd95e6e87c5899b5cfa507e9250e1 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef BABELTRACE_GRAPH_SELF_COMPONENT_H
-#define BABELTRACE_GRAPH_SELF_COMPONENT_H
+#ifndef BABELTRACE2_GRAPH_SELF_COMPONENT_H
+#define BABELTRACE2_GRAPH_SELF_COMPONENT_H
 
 /*
- * Copyright 2017-2018 Philippe Proulx <pproulx@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.
  */
 
-/* For bt_component, bt_self_component, __BT_UPCAST */
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 #include <babeltrace2/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-typedef enum bt_self_component_status {
-       BT_SELF_COMPONENT_STATUS_OK = 0,
-       BT_SELF_COMPONENT_STATUS_END = 1,
-       BT_SELF_COMPONENT_STATUS_AGAIN = 11,
-       BT_SELF_COMPONENT_STATUS_ERROR = -1,
-       BT_SELF_COMPONENT_STATUS_NOMEM = -12,
-} bt_self_component_status;
+typedef enum bt_self_component_add_port_status {
+       BT_SELF_COMPONENT_ADD_PORT_STATUS_OK            = __BT_FUNC_STATUS_OK,
+       BT_SELF_COMPONENT_ADD_PORT_STATUS_ERROR         = __BT_FUNC_STATUS_ERROR,
+       BT_SELF_COMPONENT_ADD_PORT_STATUS_MEMORY_ERROR  = __BT_FUNC_STATUS_MEMORY_ERROR,
+} bt_self_component_add_port_status;
 
 static inline
 const bt_component *bt_self_component_as_component(
@@ -45,6 +46,9 @@ const bt_component *bt_self_component_as_component(
        return __BT_UPCAST(bt_component, self_component);
 }
 
+extern
+uint64_t bt_self_component_get_graph_mip_version(bt_self_component *self_component);
+
 extern void *bt_self_component_get_data(
                const bt_self_component *self_component);
 
@@ -55,4 +59,4 @@ extern void bt_self_component_set_data(
 }
 #endif
 
-#endif /* BABELTRACE_GRAPH_SELF_COMPONENT_H */
+#endif /* BABELTRACE2_GRAPH_SELF_COMPONENT_H */
This page took 0.026935 seconds and 4 git commands to generate.