Set private port's user data on creation
[babeltrace.git] / include / babeltrace / graph / port-internal.h
index 85d9d76bfa7ade1698f3900b8abe95f642a7a033..807728cb2eb51bb5aa638605939251cab122e780 100644 (file)
@@ -38,6 +38,7 @@ struct bt_port {
        enum bt_port_type type;
        GString *name;
        struct bt_connection *connection;
+       void *user_data;
 };
 
 static inline
@@ -56,7 +57,7 @@ struct bt_private_port *bt_private_port_from_port(
 
 BT_HIDDEN
 struct bt_port *bt_port_create(struct bt_component *parent_component,
-               enum bt_port_type type, const char *name);
+               enum bt_port_type type, const char *name, void *user_data);
 
 BT_HIDDEN
 void bt_port_set_connection(struct bt_port *port,
This page took 0.023247 seconds and 4 git commands to generate.