projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring: UST types public interfaces
[lttng-ust.git]
/
liblttng-ust
/
event-notifier-notification.c
diff --git
a/liblttng-ust/event-notifier-notification.c
b/liblttng-ust/event-notifier-notification.c
index eb3c0bce1da35436cec17a21bb72f470349195d8..199e615b15fe0e065d375b3a9991a0ba0c79fe0f 100644
(file)
--- a/
liblttng-ust/event-notifier-notification.c
+++ b/
liblttng-ust/event-notifier-notification.c
@@
-60,11
+60,11
@@
void capture_enum(struct lttng_msgpack_writer *writer,
static
int64_t capture_sequence_element_signed(uint8_t *ptr,
static
int64_t capture_sequence_element_signed(uint8_t *ptr,
-
const struct lttng_integer_type *
type)
+
struct lttng_ust_type_integer *integer_
type)
{
int64_t value;
{
int64_t value;
- unsigned int size = type->size;
- bool byte_order_reversed = type->reverse_byte_order;
+ unsigned int size =
integer_
type->size;
+ bool byte_order_reversed =
integer_
type->reverse_byte_order;
switch (size) {
case 8:
switch (size) {
case 8:
@@
-109,11
+109,11
@@
int64_t capture_sequence_element_signed(uint8_t *ptr,
static
uint64_t capture_sequence_element_unsigned(uint8_t *ptr,
static
uint64_t capture_sequence_element_unsigned(uint8_t *ptr,
-
const struct lttng_integer_type *
type)
+
struct lttng_ust_type_integer *integer_
type)
{
uint64_t value;
{
uint64_t value;
- unsigned int size = type->size;
- bool byte_order_reversed = type->reverse_byte_order;
+ unsigned int size =
integer_
type->size;
+ bool byte_order_reversed =
integer_
type->reverse_byte_order;
switch (size) {
case 8:
switch (size) {
case 8:
@@
-160,8
+160,8
@@
static
void capture_sequence(struct lttng_msgpack_writer *writer,
struct lttng_interpreter_output *output)
{
void capture_sequence(struct lttng_msgpack_writer *writer,
struct lttng_interpreter_output *output)
{
-
const struct lttng_integer_type
*integer_type;
-
const struct lttng_type
*nested_type;
+
struct lttng_ust_type_integer
*integer_type;
+
struct lttng_ust_type_common
*nested_type;
uint8_t *ptr;
bool signedness;
int i;
uint8_t *ptr;
bool signedness;
int i;
@@
-170,13
+170,13
@@
void capture_sequence(struct lttng_msgpack_writer *writer,
ptr = (uint8_t *) output->u.sequence.ptr;
nested_type = output->u.sequence.nested_type;
ptr = (uint8_t *) output->u.sequence.ptr;
nested_type = output->u.sequence.nested_type;
- switch (nested_type->
a
type) {
- case
a
type_integer:
- integer_type =
&nested_type->u.integer
;
+ switch (nested_type->type) {
+ case
lttng_ust_
type_integer:
+ integer_type =
lttng_ust_get_type_integer(nested_type)
;
break;
break;
- case
atype_enum_nestable
:
+ case
lttng_ust_type_enum
:
/* Treat enumeration as an integer. */
/* Treat enumeration as an integer. */
- integer_type =
&nested_type->u.enum_nestable.container_type->u.integer
;
+ integer_type =
lttng_ust_get_type_integer(lttng_ust_get_type_enum(nested_type)->container_type)
;
break;
default:
/* Capture of array of non-integer are not supported. */
break;
default:
/* Capture of array of non-integer are not supported. */
This page took
0.024819 seconds
and
4
git commands to generate.