Loading...
Searching...
No Matches
ss7_link.h
Go to the documentation of this file.
#pragma once
#include <stdint.h>
#include <osmocom/core/linuxlist.h>
/***********************************************************************
* SS7 Linksets
***********************************************************************/
struct osmo_ss7_linkset;
enum osmo_ss7_link_adm_state {
OSMO_SS7_LS_SHUTDOWN,
OSMO_SS7_LS_INHIBITED,
OSMO_SS7_LS_ENABLED,
_NUM_OSMO_SS7_LS
};
struct osmo_ss7_link {
struct osmo_ss7_linkset *linkset;
struct {
char *name;
char *description;
uint32_t id;
enum osmo_ss7_link_adm_state adm_state;
} cfg;
};
void ss7_link_destroy(struct osmo_ss7_link *link);
struct osmo_ss7_link *
ss7_link_find_or_create(struct osmo_ss7_linkset *lset, uint32_t id);
ss7_link_destroy
void ss7_link_destroy(struct osmo_ss7_link *link)
Destroy SS7 Link.
Definition osmo_ss7_link.c:38
osmo_ss7_link_adm_state
osmo_ss7_link_adm_state
Definition ss7_link.h:12
OSMO_SS7_LS_ENABLED
@ OSMO_SS7_LS_ENABLED
Definition ss7_link.h:15
OSMO_SS7_LS_INHIBITED
@ OSMO_SS7_LS_INHIBITED
Definition ss7_link.h:14
OSMO_SS7_LS_SHUTDOWN
@ OSMO_SS7_LS_SHUTDOWN
Definition ss7_link.h:13
_NUM_OSMO_SS7_LS
@ _NUM_OSMO_SS7_LS
Definition ss7_link.h:16
ss7_link_find_or_create
struct osmo_ss7_link * ss7_link_find_or_create(struct osmo_ss7_linkset *lset, uint32_t id)
Find or create SS7 Link with given ID in given Linkset.
Definition osmo_ss7_link.c:55
osmo_ss7_link
Definition ss7_link.h:19
osmo_ss7_link::name
char * name
Definition ss7_link.h:23
osmo_ss7_link::description
char * description
Definition ss7_link.h:24
osmo_ss7_link::id
uint32_t id
Definition ss7_link.h:25
osmo_ss7_link::cfg
struct osmo_ss7_link::@166076217155223373264177365231026313314133214070 cfg
osmo_ss7_link::linkset
struct osmo_ss7_linkset * linkset
osmo_ss7_linkset to which we belong
Definition ss7_link.h:21
osmo_ss7_link::adm_state
enum osmo_ss7_link_adm_state adm_state
Definition ss7_link.h:27
osmo_ss7_linkset
Definition ss7_linkset.h:13