* may also specify the phone line that is used (typically zero).
* The version is also right now always zero.
*/
-struct GNUNET_CONVERSATION_PhoneRecord {
+struct GNUNET_CONVERSATION_PhoneRecord
+{
/**
* Version of the phone record, for now always one. We may
* use other versions for anonymously hosted phone lines in
/**
* Information about active callers to a phone.
*/
-enum GNUNET_CONVERSATION_PhoneEventCode {
+enum GNUNET_CONVERSATION_PhoneEventCode
+{
/**
* We are the callee and the phone is ringing.
* We should accept the call or hang up.
*/
typedef void
(*GNUNET_CONVERSATION_PhoneEventHandler)(void *cls,
- enum GNUNET_CONVERSATION_PhoneEventCode code,
- struct GNUNET_CONVERSATION_Caller *caller,
- const struct GNUNET_CRYPTO_EcdsaPublicKey *caller_id);
+ enum GNUNET_CONVERSATION_PhoneEventCode
+ code,
+ struct GNUNET_CONVERSATION_Caller *
+ caller,
+ const struct
+ GNUNET_CRYPTO_EcdsaPublicKey *caller_id);
/**
* progresses from ring over ready to terminated. Steps may
* be skipped.
*/
-enum GNUNET_CONVERSATION_CallerEventCode {
+enum GNUNET_CONVERSATION_CallerEventCode
+{
/**
* We are the callee and the caller suspended the call. Note that
* both sides can independently suspend and resume calls; a call is
*/
typedef void
(*GNUNET_CONVERSATION_CallerEventHandler)(void *cls,
- enum GNUNET_CONVERSATION_CallerEventCode code);
+ enum
+ GNUNET_CONVERSATION_CallerEventCode
+ code);
/**
* @param event_handler_cls closure for @a event_handler
*/
struct GNUNET_CONVERSATION_Phone *
-GNUNET_CONVERSATION_phone_create(const struct GNUNET_CONFIGURATION_Handle *cfg,
- const struct GNUNET_IDENTITY_Ego *ego,
- GNUNET_CONVERSATION_PhoneEventHandler event_handler,
- void *event_handler_cls);
+GNUNET_CONVERSATION_phone_create (const struct GNUNET_CONFIGURATION_Handle *cfg,
+ const struct GNUNET_IDENTITY_Ego *ego,
+ GNUNET_CONVERSATION_PhoneEventHandler
+ event_handler,
+ void *event_handler_cls);
/**
* @param rd namestore record to fill in
*/
void
-GNUNET_CONVERSATION_phone_get_record(struct GNUNET_CONVERSATION_Phone *phone,
- struct GNUNET_GNSRECORD_Data *rd);
+GNUNET_CONVERSATION_phone_get_record (struct GNUNET_CONVERSATION_Phone *phone,
+ struct GNUNET_GNSRECORD_Data *rd);
/**
* @param mic microphone to use
*/
void
-GNUNET_CONVERSATION_caller_pick_up(struct GNUNET_CONVERSATION_Caller *caller,
- GNUNET_CONVERSATION_CallerEventHandler event_handler,
- void *event_handler_cls,
- struct GNUNET_SPEAKER_Handle *speaker,
- struct GNUNET_MICROPHONE_Handle *mic);
+GNUNET_CONVERSATION_caller_pick_up (struct GNUNET_CONVERSATION_Caller *caller,
+ GNUNET_CONVERSATION_CallerEventHandler
+ event_handler,
+ void *event_handler_cls,
+ struct GNUNET_SPEAKER_Handle *speaker,
+ struct GNUNET_MICROPHONE_Handle *mic);
/**
* @param caller call to suspend
*/
void
-GNUNET_CONVERSATION_caller_suspend(struct GNUNET_CONVERSATION_Caller *caller);
+GNUNET_CONVERSATION_caller_suspend (struct GNUNET_CONVERSATION_Caller *caller);
/**
* @param mic microphone to use
*/
void
-GNUNET_CONVERSATION_caller_resume(struct GNUNET_CONVERSATION_Caller *caller,
- struct GNUNET_SPEAKER_Handle *speaker,
- struct GNUNET_MICROPHONE_Handle *mic);
+GNUNET_CONVERSATION_caller_resume (struct GNUNET_CONVERSATION_Caller *caller,
+ struct GNUNET_SPEAKER_Handle *speaker,
+ struct GNUNET_MICROPHONE_Handle *mic);
/**
* @param caller who should we hang up on
*/
void
-GNUNET_CONVERSATION_caller_hang_up(struct GNUNET_CONVERSATION_Caller *caller);
+GNUNET_CONVERSATION_caller_hang_up (struct GNUNET_CONVERSATION_Caller *caller);
/**
* @param phone phone to destroy
*/
void
-GNUNET_CONVERSATION_phone_destroy(struct GNUNET_CONVERSATION_Phone *phone);
+GNUNET_CONVERSATION_phone_destroy (struct GNUNET_CONVERSATION_Phone *phone);
/* *********************** CALL API ************************ */
/**
* Information about the current status of a call.
*/
-enum GNUNET_CONVERSATION_CallEventCode {
+enum GNUNET_CONVERSATION_CallEventCode
+{
/**
* We are the caller and are now ringing the other party (GNS lookup
* succeeded).
*/
typedef void
(*GNUNET_CONVERSATION_CallEventHandler)(void *cls,
- enum GNUNET_CONVERSATION_CallEventCode code);
+ enum GNUNET_CONVERSATION_CallEventCode
+ code);
/**
* @return handle for the call
*/
struct GNUNET_CONVERSATION_Call *
-GNUNET_CONVERSATION_call_start(const struct GNUNET_CONFIGURATION_Handle *cfg,
- struct GNUNET_IDENTITY_Ego *caller_id,
- const char *callee,
- struct GNUNET_SPEAKER_Handle *speaker,
- struct GNUNET_MICROPHONE_Handle *mic,
- GNUNET_CONVERSATION_CallEventHandler event_handler,
- void *event_handler_cls);
+GNUNET_CONVERSATION_call_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
+ struct GNUNET_IDENTITY_Ego *caller_id,
+ const char *callee,
+ struct GNUNET_SPEAKER_Handle *speaker,
+ struct GNUNET_MICROPHONE_Handle *mic,
+ GNUNET_CONVERSATION_CallEventHandler
+ event_handler,
+ void *event_handler_cls);
/**
* @param call call to pause
*/
void
-GNUNET_CONVERSATION_call_suspend(struct GNUNET_CONVERSATION_Call *call);
+GNUNET_CONVERSATION_call_suspend (struct GNUNET_CONVERSATION_Call *call);
/**
* @param mic microphone to use
*/
void
-GNUNET_CONVERSATION_call_resume(struct GNUNET_CONVERSATION_Call *call,
- struct GNUNET_SPEAKER_Handle *speaker,
- struct GNUNET_MICROPHONE_Handle *mic);
+GNUNET_CONVERSATION_call_resume (struct GNUNET_CONVERSATION_Call *call,
+ struct GNUNET_SPEAKER_Handle *speaker,
+ struct GNUNET_MICROPHONE_Handle *mic);
/**
* @param call call to terminate
*/
void
-GNUNET_CONVERSATION_call_stop(struct GNUNET_CONVERSATION_Call *call);
+GNUNET_CONVERSATION_call_stop (struct GNUNET_CONVERSATION_Call *call);
#if 0 /* keep Emacsens' auto-indent happy */