projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: use object pool for event and packet notifications
[babeltrace.git]
/
include
/
babeltrace
/
graph
/
connection-internal.h
diff --git
a/include/babeltrace/graph/connection-internal.h
b/include/babeltrace/graph/connection-internal.h
index 7b4d26d221911a1e4d955e611a622fd390ee692a..c1eea4b18a25f71004fcb4f5e5b33f60c9886677 100644
(file)
--- a/
include/babeltrace/graph/connection-internal.h
+++ b/
include/babeltrace/graph/connection-internal.h
@@
-1,5
+1,5
@@
-#ifndef BABELTRACE_
COMPONENT
_CONNECTION_INTERNAL_H
-#define BABELTRACE_
COMPONENT
_CONNECTION_INTERNAL_H
+#ifndef BABELTRACE_
GRAPH
_CONNECTION_INTERNAL_H
+#define BABELTRACE_
GRAPH
_CONNECTION_INTERNAL_H
/*
* BabelTrace - Component Connection Internal
/*
* BabelTrace - Component Connection Internal
@@
-29,8
+29,10
@@
#include <babeltrace/graph/connection.h>
#include <babeltrace/graph/notification-iterator.h>
#include <babeltrace/graph/connection.h>
#include <babeltrace/graph/notification-iterator.h>
+#include <babeltrace/graph/notification-iterator-internal.h>
#include <babeltrace/graph/private-connection.h>
#include <babeltrace/object-internal.h>
#include <babeltrace/graph/private-connection.h>
#include <babeltrace/object-internal.h>
+#include <babeltrace/assert-internal.h>
#include <stdbool.h>
struct bt_graph;
#include <stdbool.h>
struct bt_graph;
@@
-58,13
+60,6
@@
struct bt_connection {
GPtrArray *iterators;
};
GPtrArray *iterators;
};
-static inline
-struct bt_connection *bt_connection_from_private(
- struct bt_private_connection *private_connection)
-{
- return (void *) private_connection;
-}
-
static inline
struct bt_private_connection *bt_private_connection_from_connection(
struct bt_connection *connection)
static inline
struct bt_private_connection *bt_private_connection_from_connection(
struct bt_connection *connection)
@@
-82,12
+77,12
@@
void bt_connection_end(struct bt_connection *conn, bool try_remove_from_graph);
BT_HIDDEN
void bt_connection_remove_iterator(struct bt_connection *conn,
BT_HIDDEN
void bt_connection_remove_iterator(struct bt_connection *conn,
- struct bt_notification_iterator *iterator);
+ struct bt_notification_iterator
_private_connection
*iterator);
static inline
struct bt_graph *bt_connection_borrow_graph(struct bt_connection *conn)
{
static inline
struct bt_graph *bt_connection_borrow_graph(struct bt_connection *conn)
{
-
assert
(conn);
+
BT_ASSERT
(conn);
return (void *) conn->base.parent;
}
return (void *) conn->base.parent;
}
@@
-143,4
+138,4
@@
const char *bt_connection_status_string(enum bt_connection_status status)
}
}
}
}
-#endif /* BABELTRACE_
COMPONENT
_CONNECTION_INTERNAL_H */
+#endif /* BABELTRACE_
GRAPH
_CONNECTION_INTERNAL_H */
This page took
0.025363 seconds
and
4
git commands to generate.