FreeCalypso > hg > themwi-interim
comparison libutil/mncc_utils.c @ 1:b161dbfffdaa
include, libutil: port from old ThemWi
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 08 Jun 2024 23:06:53 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:214716b13c61 | 1:b161dbfffdaa |
---|---|
1 /* simple utility functions for MNCC */ | |
2 | |
3 #include <sys/types.h> | |
4 #include <sys/socket.h> | |
5 #include <stdio.h> | |
6 #include <stdint.h> | |
7 #include <stdlib.h> | |
8 #include "../include/mncc.h" | |
9 #include "../include/gsm48_const.h" | |
10 | |
11 mncc_set_cause(msg, loc, val) | |
12 struct gsm_mncc *msg; | |
13 { | |
14 msg->fields |= MNCC_F_CAUSE; | |
15 msg->cause.coding = GSM48_CAUSE_CODING_GSM; | |
16 msg->cause.location = loc; | |
17 msg->cause.value = val; | |
18 } |