FreeCalypso > hg > themwi-system-sw
diff mncc/struct.h @ 15:ccc5ab6d8388
first version of themwi-mncc for ThemWi2
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 26 Jun 2022 16:31:47 -0800 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mncc/struct.h Sun Jun 26 16:31:47 2022 -0800 @@ -0,0 +1,29 @@ +/* + * This header file defines internal data structures + * for ThemWi MNCC daemon, talking to OsmoMSC. + */ + +#ifndef __STRUCT_H +#define __STRUCT_H + +struct socket_conn { + int fd; + unsigned ncalls; + struct socket_conn *next; +}; + +/* GSM call leg on MNCC-MSC side, either MO or MT */ +struct gsm_call { + /* always present */ + uint32_t callref; + /* only for internal switching */ + struct gsm_call *other_leg; + /* only for external calls */ + struct socket_conn *socket; + uint32_t socket_ref; + /* linked list management */ + int gc_flag; + struct gsm_call *next; +}; + +#endif /* include guard */