-mostly finished call API
[oweals/gnunet.git] / src / conversation / conversation.h
index f15c48b9a4a19b63a46c691c3b130279e85feb5b..50a169a281d061f2d2589679ce6c79d8b1d5dd20 100644 (file)
@@ -443,6 +443,19 @@ struct ClientPhoneRingMessage
 };
 
 
+/**
+ * Service -> Client message for phone is busy.
+ */
+struct ClientPhoneBusyMessage
+{
+  /**
+   * Type is: #GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_BUSY
+   */
+  struct GNUNET_MessageHeader header;
+
+};
+
+
 /**
  * Client -> Service pick up phone that is ringing.
  */
@@ -459,7 +472,7 @@ struct ClientPhonePickupMessage
 
 
 /**
- * Client -> Service hang up phone that may or may not be ringing.
+ * Client <-> Service hang up phone that may or may not be ringing.
  * Also sent in response to a (failed) `struct ClientCallMessage`.
  */
 struct ClientPhoneHangupMessage
@@ -495,7 +508,7 @@ struct ClientAudioMessage
 struct ClientCallMessage
 {
   /**
-   * Type is: #GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_REGISTER
+   * Type is: #GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_CALL
    */
   struct GNUNET_MessageHeader header;
 
@@ -520,10 +533,10 @@ struct ClientCallMessage
  * Service -> Client: other peer has picked up the phone, we are
  * now talking.
  */
-struct ClientPhoneHangupMessage
+struct ClientPhonePickedupMessage
 {
   /**
-   * Type is: #GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_ESTABLISHED
+   * Type is: #GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_PICKED_UP
    */
   struct GNUNET_MessageHeader header;
   
@@ -608,6 +621,20 @@ struct MeshPhonePickupMessage
 };
 
 
+/**
+ * Mesh message for phone busy.
+ */
+struct MeshPhoneBusyMessage
+{
+  /**
+   * Type is: #GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_PHONE_BUSY
+   */
+  struct GNUNET_MessageHeader header;
+
+  /* followed by variable-size 0-terminated metadata string??? */
+};
+
+
 /**
  * Mesh message to transmit the audio.
  */