/* Represents values defined in enum lttng_rotation_state. */
int32_t status;
/* Represents values defined in enum lttng_rotation_state. */
- uint8_t location_type;
+ int8_t location_type;
union {
struct {
char absolute_path[LTTNG_PATH_MAX];
* Represents values defined in
* enum lttng_trace_archive_location_relay_protocol_type.
*/
- uint8_t protocol;
+ int8_t protocol;
struct {
uint16_t control;
uint16_t data;
current_tracing_path_reply_len =
sizeof(info_return->location.local.absolute_path);
info_return->location_type =
- (uint8_t) LTTNG_TRACE_ARCHIVE_LOCATION_TYPE_LOCAL;
+ (int8_t) LTTNG_TRACE_ARCHIVE_LOCATION_TYPE_LOCAL;
break;
case CONSUMER_DST_NET:
current_tracing_path_reply =
sizeof(info_return->location.relay.relative_path);
/* Currently the only supported relay protocol. */
info_return->location.relay.protocol =
- (uint8_t) LTTNG_TRACE_ARCHIVE_LOCATION_RELAY_PROTOCOL_TYPE_TCP;
+ (int8_t) LTTNG_TRACE_ARCHIVE_LOCATION_RELAY_PROTOCOL_TYPE_TCP;
ret = lttng_strncpy(info_return->location.relay.host,
session_get_net_consumer_hostname(session),
&info_return->location.relay.ports.control,
&info_return->location.relay.ports.data);
info_return->location_type =
- (uint8_t) LTTNG_TRACE_ARCHIVE_LOCATION_TYPE_RELAY;
+ (int8_t) LTTNG_TRACE_ARCHIVE_LOCATION_TYPE_RELAY;
break;
default:
abort();