projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add query executor
[babeltrace.git]
/
plugins
/
ctf
/
lttng-live
/
lttng-live-internal.h
diff --git
a/plugins/ctf/lttng-live/lttng-live-internal.h
b/plugins/ctf/lttng-live/lttng-live-internal.h
index fa5409270865c77daa746807b7134a684f4a9fb9..bf94314e6dfcd63be84d1d26e0c3f1286a56836d 100644
(file)
--- a/
plugins/ctf/lttng-live/lttng-live-internal.h
+++ b/
plugins/ctf/lttng-live/lttng-live-internal.h
@@
-28,18
+28,13
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
-extern int bt_lttng_live_log_level;
-
#include <stdbool.h>
#include <babeltrace/babeltrace-internal.h>
#include <stdbool.h>
#include <babeltrace/babeltrace-internal.h>
-
-#define BT_LOG_OUTPUT_LEVEL bt_lttng_live_log_level
-#include <babeltrace/logging-internal.h>
-
#include <babeltrace/graph/component.h>
#include <babeltrace/graph/notification-iterator.h>
#include <babeltrace/graph/clock-class-priority-map.h>
#include <babeltrace/graph/component.h>
#include <babeltrace/graph/notification-iterator.h>
#include <babeltrace/graph/clock-class-priority-map.h>
+#include <babeltrace/types.h>
#include "viewer-connection.h"
//TODO: this should not be used by plugins. Should copy code into plugin
#include "viewer-connection.h"
//TODO: this should not be used by plugins. Should copy code into plugin
@@
-79,7
+74,7
@@
struct lttng_live_stream_iterator {
struct bt_ctf_stream *stream;
struct lttng_live_trace *trace;
struct bt_ctf_stream *stream;
struct lttng_live_trace *trace;
- struct bt_private_port *port;
+ struct bt_private_port *port;
/* weak ref. */
/* Node of stream list within the trace. */
struct bt_list_head node;
/* Node of stream list within the trace. */
struct bt_list_head node;
@@
-115,7
+110,7
@@
struct lttng_live_no_stream_iterator {
struct lttng_live_stream_iterator_generic p;
struct lttng_live_component *lttng_live;
struct lttng_live_stream_iterator_generic p;
struct lttng_live_component *lttng_live;
- struct bt_private_port *port;
+ struct bt_private_port *port;
/* weak ref. */
};
struct lttng_live_component_options {
};
struct lttng_live_component_options {
@@
-163,6
+158,9
@@
struct lttng_live_session {
struct lttng_live_component *lttng_live;
struct lttng_live_component *lttng_live;
+ GString *hostname;
+ GString *session_name;
+
uint64_t id;
/* List of struct lttng_live_trace */
uint64_t id;
/* List of struct lttng_live_trace */
@@
-189,11
+187,10
@@
struct lttng_live_component {
size_t max_query_size;
struct lttng_live_component_options options;
size_t max_query_size;
struct lttng_live_component_options options;
- struct bt_private_port *no_stream_port;
+ struct bt_private_port *no_stream_port;
/* weak */
struct lttng_live_no_stream_iterator *no_stream_iter;
struct bt_component *downstream_component;
struct lttng_live_no_stream_iterator *no_stream_iter;
struct bt_component *downstream_component;
- struct bt_graph *graph; /* weak */
};
enum bt_ctf_lttng_live_iterator_status {
};
enum bt_ctf_lttng_live_iterator_status {
@@
-218,7
+215,9
@@
enum bt_ctf_lttng_live_iterator_status {
enum bt_component_status lttng_live_component_init(struct bt_private_component *source,
struct bt_value *params, void *init_method_data);
enum bt_component_status lttng_live_component_init(struct bt_private_component *source,
struct bt_value *params, void *init_method_data);
-struct bt_value *lttng_live_query(struct bt_component_class *comp_class,
+struct bt_component_class_query_return lttng_live_query(
+ struct bt_component_class *comp_class,
+ struct bt_query_executor *query_exec,
const char *object, struct bt_value *params);
void lttng_live_component_finalize(struct bt_private_component *component);
const char *object, struct bt_value *params);
void lttng_live_component_finalize(struct bt_private_component *component);
@@
-243,7
+242,10
@@
int lttng_live_detach_session(struct lttng_live_session *session);
enum bt_ctf_lttng_live_iterator_status lttng_live_get_new_streams(
struct lttng_live_session *session);
enum bt_ctf_lttng_live_iterator_status lttng_live_get_new_streams(
struct lttng_live_session *session);
-int lttng_live_add_session(struct lttng_live_component *lttng_live, uint64_t session_id);
+int lttng_live_add_session(struct lttng_live_component *lttng_live,
+ uint64_t session_id,
+ const char *hostname,
+ const char *session_name);
ssize_t lttng_live_get_one_metadata_packet(struct lttng_live_trace *trace,
FILE *fp);
ssize_t lttng_live_get_one_metadata_packet(struct lttng_live_trace *trace,
FILE *fp);
@@
-266,4
+268,6
@@
struct lttng_live_trace *lttng_live_ref_trace(
void lttng_live_unref_trace(struct lttng_live_trace *trace);
void lttng_live_need_new_streams(struct lttng_live_component *lttng_live);
void lttng_live_unref_trace(struct lttng_live_trace *trace);
void lttng_live_need_new_streams(struct lttng_live_component *lttng_live);
+bt_bool lttng_live_is_canceled(struct lttng_live_component *lttng_live);
+
#endif /* BABELTRACE_PLUGIN_CTF_LTTNG_LIVE_INTERNAL_H */
#endif /* BABELTRACE_PLUGIN_CTF_LTTNG_LIVE_INTERNAL_H */
This page took
0.026113 seconds
and
4
git commands to generate.