Add optional type
authorOlivier Dion <odion@efficios.com>
Tue, 15 Oct 2024 16:27:50 +0000 (12:27 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 23 Oct 2024 16:08:41 +0000 (12:08 -0400)
commitdea07f7af00b24e3b7486198f626dec793a0b4f2
treedcb7c5cc49272477f6a15961a30d7a62ded2653f
parent88dd38a6c22298daa9be339f15d75300e433e294
Add optional type

The `SIDE_TYPE_OPTIONAL' denotes a field that can be absent from the
trace.  Such field has no attribute.  Instead, the optional type is
simply a pointer to another type.

The determination of absence for an optional field is determined by the
`selector' member of the `side_arg_optional' structure, which must be
the constant value `SIDE_OPTIONAL_ENABLED' if the field is present,
otherwise `SIDE_OPTION_DISABLED'.

Change-Id: Ie23bcac27efef66938981d59b715a950465ede75
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/side/abi/type-argument.h
include/side/abi/type-description.h
include/side/instrumentation-c-api.h
src/tracer.c
src/visit-arg-vec.c
src/visit-description.c
src/visit-description.h
tests/unit/test.c
This page took 0.024813 seconds and 4 git commands to generate.