27#ifndef LIBE3_E2SM_DAPP_C_H
28#define LIBE3_E2SM_DAPP_C_H
e3_error_t libe3_e2sm_dapp_decode_ctrl_outcome(const uint8_t *buf, size_t len, libe3_e2sm_dapp_ctrl_outcome_t *out)
libe3_e2sm_dapp_event_trigger_format_e
@ LIBE3_E2SM_DAPP_EVENT_TRIGGER_FORMAT_1
Format 1.
e3_error_t libe3_e2sm_dapp_encode_ctrl_hdr(const libe3_e2sm_dapp_ctrl_hdr_t *in, libe3_e2sm_dapp_bytes_t *out)
libe3_e2sm_dapp_ctrl_outcome_format_e
@ LIBE3_E2SM_DAPP_CTRL_OUTCOME_FORMAT_1
Format 1.
e3_error_t libe3_e2sm_dapp_decode_ctrl_hdr(const uint8_t *buf, size_t len, libe3_e2sm_dapp_ctrl_hdr_t *out)
e3_error_t libe3_e2sm_dapp_encode_ind_msg(const libe3_e2sm_dapp_ind_msg_t *in, libe3_e2sm_dapp_bytes_t *out)
e3_error_t libe3_e2sm_dapp_encode_ctrl_outcome(const libe3_e2sm_dapp_ctrl_outcome_t *in, libe3_e2sm_dapp_bytes_t *out)
e3_error_t libe3_e2sm_dapp_encode_action_definition(const libe3_e2sm_dapp_action_definition_t *in, libe3_e2sm_dapp_bytes_t *out)
void libe3_e2sm_dapp_free_event_trigger(libe3_e2sm_dapp_event_trigger_t *v)
e3_error_t libe3_e2sm_dapp_encode_event_trigger(const libe3_e2sm_dapp_event_trigger_t *in, libe3_e2sm_dapp_bytes_t *out)
e3_error_t libe3_e2sm_dapp_decode_action_definition(const uint8_t *buf, size_t len, libe3_e2sm_dapp_action_definition_t *out)
void libe3_e2sm_dapp_free_ctrl_outcome(libe3_e2sm_dapp_ctrl_outcome_t *v)
e3_error_t libe3_e2sm_dapp_decode_ctrl_msg(const uint8_t *buf, size_t len, libe3_e2sm_dapp_ctrl_msg_t *out)
void libe3_e2sm_dapp_free_ran_function_definition(libe3_e2sm_dapp_ran_function_definition_t *v)
void libe3_e2sm_dapp_free_ind_msg(libe3_e2sm_dapp_ind_msg_t *v)
e3_error_t libe3_e2sm_dapp_encode_ctrl_msg(const libe3_e2sm_dapp_ctrl_msg_t *in, libe3_e2sm_dapp_bytes_t *out)
e3_error_t libe3_e2sm_dapp_decode_ind_hdr(const uint8_t *buf, size_t len, libe3_e2sm_dapp_ind_hdr_t *out)
e3_error_t libe3_e2sm_dapp_encode_ind_hdr(const libe3_e2sm_dapp_ind_hdr_t *in, libe3_e2sm_dapp_bytes_t *out)
libe3_e2sm_dapp_ctrl_hdr_format_e
@ LIBE3_E2SM_DAPP_CTRL_HDR_FORMAT_1
Format 1.
e3_error_t libe3_e2sm_dapp_decode_event_trigger(const uint8_t *buf, size_t len, libe3_e2sm_dapp_event_trigger_t *out)
void libe3_e2sm_dapp_free_ctrl_msg(libe3_e2sm_dapp_ctrl_msg_t *v)
e3_error_t libe3_e2sm_dapp_decode_ind_msg(const uint8_t *buf, size_t len, libe3_e2sm_dapp_ind_msg_t *out)
void libe3_e2sm_dapp_bytes_free(libe3_e2sm_dapp_bytes_t *b)
void libe3_e2sm_dapp_free_ctrl_hdr(libe3_e2sm_dapp_ctrl_hdr_t *v)
libe3_e2sm_dapp_ind_hdr_format_e
@ LIBE3_E2SM_DAPP_IND_HDR_FORMAT_2
Format 2.
@ LIBE3_E2SM_DAPP_IND_HDR_FORMAT_1
Format 1.
libe3_e2sm_dapp_ctrl_msg_format_e
@ LIBE3_E2SM_DAPP_CTRL_MSG_FORMAT_1
Format 1.
libe3_e2sm_dapp_ind_msg_format_e
@ LIBE3_E2SM_DAPP_IND_MSG_FORMAT_1
Format 1.
@ LIBE3_E2SM_DAPP_IND_MSG_FORMAT_2
Format 2.
e3_error_t libe3_e2sm_dapp_decode_ran_function_definition(const uint8_t *buf, size_t len, libe3_e2sm_dapp_ran_function_definition_t *out)
void libe3_e2sm_dapp_free_action_definition(libe3_e2sm_dapp_action_definition_t *v)
void libe3_e2sm_dapp_free_ind_hdr(libe3_e2sm_dapp_ind_hdr_t *v)
libe3_e2sm_dapp_action_definition_format_e
@ LIBE3_E2SM_DAPP_ACTION_DEFINITION_FORMAT_1
Format 1.
e3_error_t libe3_e2sm_dapp_encode_ran_function_definition(const libe3_e2sm_dapp_ran_function_definition_t *in, libe3_e2sm_dapp_bytes_t *out)
libe3 error codes - shared C/C++ definitions
int e3_error_t
C error type alias.
int64_t ric_style_type
Report style the subscription selects (1 or 2); it selects the indication formats.
libe3_e2sm_dapp_action_definition_format_e format
uint8_t * data
The bytes, heap allocated.
size_t len
Number of bytes in data.
uint32_t ran_function_id
E3 RAN function id the control is for.
uint32_t dapp_id
The dApp that is the target of the control.
int64_t timestamp
When the xApp built the control, in nanoseconds on the realtime clock of its host.
bool has_sequence_id
true when sequence_id is present
bool has_timestamp
true when timestamp is present
int64_t sequence_id
Id of the procedure, echoed from the indication header; absent or 0 means the RAN cannot defer the ac...
libe3_e2sm_dapp_ctrl_hdr_format_e format
Selected format.
libe3_e2sm_dapp_ctrl_msg_format_e format
Selected format.
libe3_e2sm_dapp_bytes_t data
bool has_e3_control_outcome
true when e3_control_outcome is present
int64_t sequence_id
Procedure this outcome answers, copied from the control header.
libe3_e2sm_dapp_ctrl_outcome_format_e format
Selected format.
libe3_e2sm_dapp_bytes_t e3_control_outcome
bool has_timestamp
true when timestamp is present
bool has_sequence_id
true when sequence_id is present
int64_t timestamp
When the RAN built the outcome, in nanoseconds on its realtime clock.
int64_t ctrl_outcome_format_type
Control outcome format the style uses.
bool has_dapp_e3_subscriptions
true when dapp_e3_subscriptions is present
libe3_e2sm_dapp_sub_list_t dapp_e3_subscriptions
dApp E3 subscription map
int64_t ctrl_style_type
Control style number (1).
libe3_e2sm_dapp_bytes_t name
int64_t ctrl_msg_format_type
Control message format the style uses.
int64_t ctrl_hdr_format_type
Control header format the style uses.
libe3_e2sm_dapp_event_trigger_format_e format
libe3_e2sm_dapp_ind_hdr_format1_t frmt_1
libe3_e2sm_dapp_ind_hdr_format2_t frmt_2
libe3_e2sm_dapp_ind_hdr_format_e format
Selected format.
libe3_e2sm_dapp_ind_msg_format_e format
Selected format.
libe3_e2sm_dapp_ind_msg_format1_t frmt_1
Content when format is FORMAT_1.
libe3_e2sm_dapp_ind_msg_format2_t frmt_2
Content when format is FORMAT_2.
libe3_e2sm_dapp_report_style_t * report_styles
Array of n_report_styles report styles.
bool has_ctrl
true when the control section is present
libe3_e2sm_dapp_ctrl_style_t * ctrl_styles
Array of n_ctrl_styles control styles.
libe3_e2sm_dapp_ran_function_name_t name
Name of the RAN function.
bool has_report
true when the report section is present
int64_t instance
Instance number; not used, a sender shall not set it.
libe3_e2sm_dapp_bytes_t e2sm_oid
bool has_instance
true when instance is present
libe3_e2sm_dapp_bytes_t short_name
libe3_e2sm_dapp_bytes_t description
int64_t ind_hdr_format_type
Indication header format the style produces.
int64_t report_style_type
Report style number (1 or 2).
libe3_e2sm_dapp_sub_list_t dapp_e3_subscriptions
dApp E3 subscription map
bool has_dapp_e3_subscriptions
true when dapp_e3_subscriptions is present
libe3_e2sm_dapp_bytes_t name
int64_t ind_msg_format_type
Indication message format the style produces.
uint32_t dapp_id
The dApp.
libe3_e2sm_dapp_sub_item_t * items
Array of n_items subscription items.