libosmo-sigtran 2.2.1.56-7580 Osmocom SIGTRAN library

ss7_linkset.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4#include <osmocom/core/linuxlist.h>
5
6/***********************************************************************
7 * SS7 Linksets
8 ***********************************************************************/
9
10 struct osmo_ss7_instance;
11 struct osmo_ss7_link;
12
13 struct osmo_ss7_linkset {
14 struct llist_head list;
16 struct osmo_ss7_instance *inst;
18 struct osmo_ss7_link *links[16];
19
20 struct {
21 char *name;
22 char *description;
23 uint32_t adjacent_pc;
24 uint32_t local_pc;
25 } cfg;
26};
27
28 void ss7_linkset_destroy(struct osmo_ss7_linkset *lset);
29 struct osmo_ss7_linkset *
30 ss7_linkset_find_by_name(struct osmo_ss7_instance *inst, const char *name);
31 struct osmo_ss7_linkset *
32 ss7_linkset_find_or_create(struct osmo_ss7_instance *inst, const char *name, uint32_t pc);
33
34 bool
35 ss7_linkset_is_available(const struct osmo_ss7_linkset *lset);
ss7_linkset_find_or_create
struct osmo_ss7_linkset * ss7_linkset_find_or_create(struct osmo_ss7_instance *inst, const char *name, uint32_t pc)
Find or allocate SS7 Linkset.
Definition: ss7_linkset.c:83
ss7_linkset_find_by_name
struct osmo_ss7_linkset * ss7_linkset_find_by_name(struct osmo_ss7_instance *inst, const char *name)
Find SS7 Linkset by given name.
Definition: ss7_linkset.c:66
ss7_linkset_destroy
void ss7_linkset_destroy(struct osmo_ss7_linkset *lset)
Destroy a SS7 Linkset.
Definition: ss7_linkset.c:40
ss7_linkset_is_available
bool ss7_linkset_is_available(const struct osmo_ss7_linkset *lset)
Definition: ss7_linkset.c:105
osmo_ss7_instance
Definition: ss7_instance.h:45
osmo_ss7_link
Definition: ss7_link.h:19
osmo_ss7_linkset
Definition: ss7_linkset.h:13
osmo_ss7_linkset::links
struct osmo_ss7_link * links[16]
array of osmo_ss7_link
Definition: ss7_linkset.h:18
osmo_ss7_linkset::inst
struct osmo_ss7_instance * inst
osmo_ss7_instance to which we belong
Definition: ss7_linkset.h:16
osmo_ss7_linkset::adjacent_pc
uint32_t adjacent_pc
Definition: ss7_linkset.h:23
osmo_ss7_linkset::local_pc
uint32_t local_pc
Definition: ss7_linkset.h:24
osmo_ss7_linkset::name
char * name
Definition: ss7_linkset.h:21
osmo_ss7_linkset::list
struct llist_head list
Definition: ss7_linkset.h:14
osmo_ss7_linkset::description
char * description
Definition: ss7_linkset.h:22
osmo_ss7_linkset::cfg
struct osmo_ss7_linkset::@34 cfg
pc
uint32_t pc
Definition: tcap_as_loadshare.c:2