FreeCalypso > hg > themwi-system-sw
comparison libutil/mncc_utils.c @ 1:dbc0a8677b69
libutil: import from ThemWi1
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Sat, 25 Jun 2022 18:33:29 -0800 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 0:0e907d59d815 | 1:dbc0a8677b69 |
|---|---|
| 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 } |
