projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring: introduce lttng_tracker_ids data structure
[lttng-tools.git]
/
include
/
lttng
/
condition
/
evaluation-internal.h
diff --git
a/include/lttng/condition/evaluation-internal.h
b/include/lttng/condition/evaluation-internal.h
index e2b6c38489386ee00ceba2c66c111f3b306814e9..45a72daa0401a5ec920d19a9991f46b21719c8e6 100644
(file)
--- a/
include/lttng/condition/evaluation-internal.h
+++ b/
include/lttng/condition/evaluation-internal.h
@@
-21,12
+21,14
@@
#include <lttng/condition/evaluation.h>
#include <common/macros.h>
#include <common/buffer-view.h>
#include <lttng/condition/evaluation.h>
#include <common/macros.h>
#include <common/buffer-view.h>
+#include <common/dynamic-buffer.h>
#include <stdbool.h>
#include <sys/types.h>
typedef void (*evaluation_destroy_cb)(struct lttng_evaluation *evaluation);
#include <stdbool.h>
#include <sys/types.h>
typedef void (*evaluation_destroy_cb)(struct lttng_evaluation *evaluation);
-typedef ssize_t (*evaluation_serialize_cb)(struct lttng_evaluation *evaluation,
- char *buf);
+typedef int (*evaluation_serialize_cb)(
+ const struct lttng_evaluation *evaluation,
+ struct lttng_dynamic_buffer *buf);
struct lttng_evaluation_comm {
/* enum lttng_condition_type type */
struct lttng_evaluation_comm {
/* enum lttng_condition_type type */
@@
-40,12
+42,16
@@
struct lttng_evaluation {
evaluation_destroy_cb destroy;
};
evaluation_destroy_cb destroy;
};
+LTTNG_HIDDEN
+void lttng_evaluation_init(struct lttng_evaluation *evaluation,
+ enum lttng_condition_type type);
+
LTTNG_HIDDEN
ssize_t lttng_evaluation_create_from_buffer(const struct lttng_buffer_view *view,
struct lttng_evaluation **evaluation);
LTTNG_HIDDEN
LTTNG_HIDDEN
ssize_t lttng_evaluation_create_from_buffer(const struct lttng_buffer_view *view,
struct lttng_evaluation **evaluation);
LTTNG_HIDDEN
-
ssize_t lttng_evaluation_serialize(
struct lttng_evaluation *evaluation,
-
cha
r *buf);
+
int lttng_evaluation_serialize(const
struct lttng_evaluation *evaluation,
+
struct lttng_dynamic_buffe
r *buf);
#endif /* LTTNG_EVALUATION_INTERNAL_H */
#endif /* LTTNG_EVALUATION_INTERNAL_H */
This page took
0.028239 seconds
and
4
git commands to generate.