4 #include <osmocom/core/endian.h> 27 #define OSMUX_FT_SIGNAL 0 28 #define OSMUX_FT_VOICE_AMR 1 29 #define OSMUX_FT_DUMMY 2 32 #if OSMO_IS_BIG_ENDIAN 38 #elif OSMO_IS_LITTLE_ENDIAN 46 #define OSMUX_CID_MAX 255 48 #if OSMO_IS_BIG_ENDIAN 51 #elif OSMO_IS_LITTLE_ENDIAN 55 } __attribute__((packed));
64 uint32_t input_rtp_msgs;
65 uint32_t output_osmux_msgs;
66 uint64_t input_rtp_bytes;
67 uint64_t output_osmux_bytes;
70 void (*deliver)(
struct msgb *msg,
void *data);
75 #define OSMUX_MAX_CONCURRENT_CALLS 8 80 uint32_t rtp_timestamp;
84 static inline uint8_t *osmux_get_payload(
struct osmux_hdr *osmuxh)
86 return (uint8_t *)osmuxh +
sizeof(
struct osmux_hdr);
92 #define OSMUX_BATCH_DEFAULT_MAX 1472 97 int osmux_xfrm_input_open_circuit(
struct osmux_in_handle *h,
int ccid,
int dummy);
98 void osmux_xfrm_input_close_circuit(
struct osmux_in_handle *h,
int ccid);
105 struct osmux_hdr *osmux_xfrm_output_pull(
struct msgb *msg);
107 void osmux_tx_sched(
struct llist_head *list,
void (*tx_cb)(
struct msgb *msg,
void *data),
void *data);
int osmux_xfrm_input(struct osmux_in_handle *h, struct msgb *msg, int ccid)
Definition: osmux.c:661
int osmux_snprintf(char *buf, size_t size, struct msgb *msg)
Definition: osmux.c:905