A phone is a device that can ring to signal an incoming call and that you can pick up to answer the call and hang up to terminate the call. More...
Data Fields | |
const struct GNUNET_CONFIGURATION_Handle * | cfg |
Our configuration. More... | |
struct GNUNET_CONVERSATION_Caller * | caller_head |
We keep all callers in a DLL. More... | |
struct GNUNET_CONVERSATION_Caller * | caller_tail |
We keep all callers in a DLL. More... | |
GNUNET_CONVERSATION_PhoneEventHandler | event_handler |
Function to call for phone events. More... | |
void * | event_handler_cls |
Closure for event_handler. More... | |
struct GNUNET_NAMESTORE_Handle * | ns |
Connection to NAMESTORE (for reverse lookup). More... | |
struct GNUNET_MQ_Handle * | mq |
Handle for transmitting to the CONVERSATION service. More... | |
struct GNUNET_CONVERSATION_PhoneRecord | my_record |
This phone's record. More... | |
struct GNUNET_CRYPTO_PrivateKey | my_zone |
My GNS zone. More... | |
enum PhoneState | state |
State machine for the phone. More... | |
A phone is a device that can ring to signal an incoming call and that you can pick up to answer the call and hang up to terminate the call.
You can also hang up a ringing phone immediately (without picking it up) to stop it from ringing. Phones have caller ID. You can ask the phone for its record and make that record available (via GNS) to enable others to call you. Multiple phones maybe connected to the same line (the line is something rather internal to a phone and not obvious from it). You can only have one conversation per phone at any time.
Definition at line 150 of file conversation_api.c.
const struct GNUNET_CONFIGURATION_Handle* GNUNET_CONVERSATION_Phone::cfg |
Our configuration.
Definition at line 155 of file conversation_api.c.
Referenced by GNUNET_CONVERSATION_phone_create(), and reconnect_phone().
struct GNUNET_CONVERSATION_Caller* GNUNET_CONVERSATION_Phone::caller_head |
We keep all callers in a DLL.
Definition at line 160 of file conversation_api.c.
Referenced by clean_up_callers(), find_caller(), GNUNET_CONVERSATION_caller_hang_up(), handle_phone_hangup(), and handle_phone_ring().
struct GNUNET_CONVERSATION_Caller* GNUNET_CONVERSATION_Phone::caller_tail |
We keep all callers in a DLL.
Definition at line 165 of file conversation_api.c.
Referenced by GNUNET_CONVERSATION_caller_hang_up(), handle_phone_hangup(), and handle_phone_ring().
GNUNET_CONVERSATION_PhoneEventHandler GNUNET_CONVERSATION_Phone::event_handler |
Function to call for phone events.
Definition at line 170 of file conversation_api.c.
Referenced by clean_up_callers(), GNUNET_CONVERSATION_phone_create(), handle_phone_hangup(), and handle_phone_ring().
void* GNUNET_CONVERSATION_Phone::event_handler_cls |
Closure for event_handler.
Definition at line 175 of file conversation_api.c.
Referenced by clean_up_callers(), GNUNET_CONVERSATION_phone_create(), handle_phone_hangup(), and handle_phone_ring().
struct GNUNET_NAMESTORE_Handle* GNUNET_CONVERSATION_Phone::ns |
Connection to NAMESTORE (for reverse lookup).
Definition at line 180 of file conversation_api.c.
Referenced by GNUNET_CONVERSATION_phone_create(), and GNUNET_CONVERSATION_phone_destroy().
struct GNUNET_MQ_Handle* GNUNET_CONVERSATION_Phone::mq |
Handle for transmitting to the CONVERSATION service.
Definition at line 185 of file conversation_api.c.
Referenced by GNUNET_CONVERSATION_caller_hang_up(), GNUNET_CONVERSATION_caller_pick_up(), GNUNET_CONVERSATION_caller_resume(), GNUNET_CONVERSATION_caller_suspend(), GNUNET_CONVERSATION_phone_create(), GNUNET_CONVERSATION_phone_destroy(), reconnect_phone(), and transmit_phone_audio().
struct GNUNET_CONVERSATION_PhoneRecord GNUNET_CONVERSATION_Phone::my_record |
This phone's record.
Definition at line 190 of file conversation_api.c.
Referenced by GNUNET_CONVERSATION_phone_create(), GNUNET_CONVERSATION_phone_get_record(), and reconnect_phone().
struct GNUNET_CRYPTO_PrivateKey GNUNET_CONVERSATION_Phone::my_zone |
My GNS zone.
Definition at line 195 of file conversation_api.c.
Referenced by GNUNET_CONVERSATION_phone_create().
enum PhoneState GNUNET_CONVERSATION_Phone::state |
State machine for the phone.
Definition at line 200 of file conversation_api.c.
Referenced by handle_phone_ring(), and reconnect_phone().