26#include <osmocom/core/msgb.h>
Specification of the IPC protocol used on the CTL UNIX domain socket between osmo-e1d and its client ...
uint8_t mode
Definition proto.h:0
uint8_t line
Definition proto.h:5
osmo_e1dp_line_mode
e1d CTL protocol line mode.
Definition proto.h:102
osmo_e1dp_msg_type
e1d CTL protocol message type definition.
Definition proto.h:36
uint16_t read_bufsize
Definition proto.h:2
uint8_t intf
Definition proto.h:4
uint16_t len
Definition proto.h:1
osmo_e1dp_ts_mode
e1d CTL protocol timeslot mode.
Definition proto.h:114
uint8_t ts
Definition proto.h:6
int osmo_e1dp_client_line_query(struct osmo_e1dp_client *clnt, struct osmo_e1dp_line_info **li, int *n, uint8_t intf, uint8_t line)
Query osmo-e1d for information about a specific E1 line.
Definition proto_clnt.c:294
void osmo_e1dp_client_destroy(struct osmo_e1dp_client *clnt)
Destroy a previously created client.
Definition proto_clnt.c:158
int osmo_e1dp_client_ts_query(struct osmo_e1dp_client *clnt, struct osmo_e1dp_ts_info **ti, int *n, uint8_t intf, uint8_t line, uint8_t ts)
Query osmo-e1d for information about a specific E1 timeslot.
Definition proto_clnt.c:334
int osmo_e1dp_client_ts_open_force(struct osmo_e1dp_client *clnt, uint8_t intf, uint8_t line, uint8_t ts, enum osmo_e1dp_ts_mode mode, uint16_t read_bufsize)
Force-Open a specific E1 timeslot of osmo-e1d.
Definition proto_clnt.c:500
void osmo_e1dp_client_event_register(struct osmo_e1dp_client *clnt, void(*cb)(enum osmo_e1dp_msg_type event, uint8_t intf, uint8_t line, uint8_t ts, uint8_t *data, int len))
Register event handler for incoming event messages.
Definition proto_clnt.c:510
int osmo_e1dp_client_intf_query(struct osmo_e1dp_client *clnt, struct osmo_e1dp_intf_info **ii, int *n, uint8_t intf)
Query osmo-e1d for information about a specific E1 interface.
Definition proto_clnt.c:255
int osmo_e1dp_client_set_sa_bits(struct osmo_e1dp_client *clnt, uint8_t intf, uint8_t line, uint8_t sa_bits)
Set Sa-bits of a specific E1 line in osmo-e1d.
Definition proto_clnt.c:409
struct osmo_e1dp_client * osmo_e1dp_client_create(void *ctx, const char *path)
Create a new client talking to the CTL server socket of osmo-e1d.
Definition proto_clnt.c:127
int osmo_e1dp_client_ts_open(struct osmo_e1dp_client *clnt, uint8_t intf, uint8_t line, uint8_t ts, enum osmo_e1dp_ts_mode mode, uint16_t read_bufsize)
Open a specific E1 timeslot of osmo-e1d.
Definition proto_clnt.c:481
int osmo_e1dp_client_line_config(struct osmo_e1dp_client *clnt, uint8_t intf, uint8_t line, enum osmo_e1dp_line_mode mode)
Configure a specific E1 line in osmo-e1d.
Definition proto_clnt.c:371
Internal representation of client program connected to the CTL socket.
Definition proto_clnt.c:70
void * ctx
talloc context
Definition proto_clnt.c:71
Information about an E1 interface.
Definition proto.h:154
Information about an E1 line.
Definition proto.h:165
Information about an E1 timeslot.
Definition proto.h:179