mirror of git://git.sysmocom.de/ofono
Add utility to get the next free call id
This commit is contained in:
parent
c7ac706de1
commit
0b754835f5
|
@ -112,6 +112,7 @@ void ofono_voicecall_remove(struct ofono_voicecall *vc);
|
|||
|
||||
void ofono_voicecall_set_data(struct ofono_voicecall *vc, void *data);
|
||||
void *ofono_voicecall_get_data(struct ofono_voicecall *vc);
|
||||
int ofono_voicecall_get_next_callid(struct ofono_voicecall *vc);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -1887,3 +1887,14 @@ void *ofono_voicecall_get_data(struct ofono_voicecall *vc)
|
|||
{
|
||||
return vc->driver_data;
|
||||
}
|
||||
|
||||
int ofono_voicecall_get_next_callid(struct ofono_voicecall *vc)
|
||||
{
|
||||
struct ofono_modem *modem;
|
||||
if (vc == NULL || vc->atom == NULL)
|
||||
return 0;
|
||||
|
||||
modem = __ofono_atom_get_modem(vc->atom);
|
||||
|
||||
return __ofono_modem_callid_next(modem);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue