]> sjero.net Git - linphone/commitdiff
update documentation
authorSimon Morlat <simon.morlat@linphone.org>
Thu, 23 Feb 2012 12:25:48 +0000 (13:25 +0100)
committerSimon Morlat <simon.morlat@linphone.org>
Thu, 23 Feb 2012 12:25:48 +0000 (13:25 +0100)
coreapi/help/doxygen.dox
coreapi/linphonecore.c
coreapi/linphonecore.h

index d1ec25b9ced38d5ebd34fb3e62b77626a9d13c96..87229f276855ccd333bcd6027aac1b08e62682e2 100644 (file)
@@ -10,8 +10,9 @@
  * video calls into any applications. All variants of linphone are directly based
  * on it:
  * - linphone (gtk interface)
- *
  * - linphonec (console interface)
+ * - linphone for iOS
+ * - linphone for Android
  *
  * Liblinphone is GPL (see COPYING file). Please understand the licencing details
  * before using it!
index dd41305b4094866c90cc9aca65b36d2de4b7549c..8760f1a385bc548af70290f82e989b319e4e3cc5 100644 (file)
@@ -2284,7 +2284,9 @@ bool_t linphone_core_inc_invite_pending(LinphoneCore*lc){
  * - changing the size of the transmitted video after calling linphone_core_set_preferred_video_size()
  *
  * In case no changes are requested through the LinphoneCallParams argument, then this argument can be omitted and set to NULL.
- *
+ * @param lc the core
+ * @param call the call to be updated
+ * @param params the new call parameters to use. (may be NULL)
  * @return 0 if successful, -1 otherwise.
 **/
 int linphone_core_update_call(LinphoneCore *lc, LinphoneCall *call, const LinphoneCallParams *params){
@@ -2318,9 +2320,10 @@ int linphone_core_update_call(LinphoneCore *lc, LinphoneCall *call, const Linpho
 }
 
 /**
- * When receiving a LinphoneCallUpdatedByRemote state notification, prevent LinphoneCore from performing an automatic answer.
+ * @ingroup call_control
+ * When receiving a #LinphoneCallUpdatedByRemote state notification, prevent LinphoneCore from performing an automatic answer.
  * 
- * When receiving a LinphoneCallUpdatedByRemote state notification (ie an incoming reINVITE), the default behaviour of
+ * When receiving a #LinphoneCallUpdatedByRemote state notification (ie an incoming reINVITE), the default behaviour of
  * LinphoneCore is to automatically answer the reINIVTE with call parameters unchanged.
  * However when for example when the remote party updated the call to propose a video stream, it can be useful
  * to prompt the user before answering. This can be achieved by calling linphone_core_defer_call_update() during 
@@ -2328,7 +2331,7 @@ int linphone_core_update_call(LinphoneCore *lc, LinphoneCall *call, const Linpho
  * Then, when the user responds to dialog prompt, it becomes possible to call linphone_core_accept_call_update() to answer
  * the reINVITE, with eventually video enabled in the LinphoneCallParams argument.
  * 
- * @Returns 0 if successful, -1 if the linphone_core_defer_call_update() was done outside a LinphoneCallUpdatedByRemote notification, which is illegal.
+ * @Returns 0 if successful, -1 if the linphone_core_defer_call_update() was done outside a #LinphoneCallUpdatedByRemote notification, which is illegal.
 **/
 int linphone_core_defer_call_update(LinphoneCore *lc, LinphoneCall *call){
        if (call->state==LinphoneCallUpdatedByRemote){
@@ -2340,7 +2343,23 @@ int linphone_core_defer_call_update(LinphoneCore *lc, LinphoneCall *call){
 }
 
 /**
+ * @ingroup call_control
+ * Accept call modifications initiated by other end.
  * 
+ * This call may be performed in response to a #LinphoneCallUpdatedByRemote state notification.
+ * When such notification arrives, the application can decide to call linphone_core_defer_update_call() so that it can
+ * have the time to prompt the user. linphone_call_get_remote_params() can be used to get information about the call parameters
+ * requested by the other party, such as whether a video stream is requested.
+ * 
+ * When the user accepts or refuse the change, linphone_core_accept_update() can be done to answer to the other party.
+ * If params is NULL, then the same call parameters established before the update request will continue to be used (no change).
+ * If params is not NULL, then the update will be accepted according to the parameters passed.
+ * Typical example is when a user accepts to start video, then params should indicate that video stream should be used 
+ * (see linphone_call_params_enable_video()).
+ * @param lc the linphone core object.
+ * @param call the LinphoneCall object
+ * @param params a LinphoneCallParams object describing the call parameters to accept.
+ * @Returns 0 if sucessful, -1 otherwise (actually when this function call is performed outside ot #LinphoneCallUpdatedByRemote state).
 **/
 int linphone_core_accept_call_update(LinphoneCore *lc, LinphoneCall *call, const LinphoneCallParams *params){
        SalMediaDescription *md;
@@ -2369,8 +2388,7 @@ int linphone_core_accept_call_update(LinphoneCore *lc, LinphoneCall *call, const
  * Basically the application is notified of incoming calls within the
  * call_state_changed callback of the #LinphoneCoreVTable structure, where it will receive
  * a LinphoneCallIncoming event with the associated LinphoneCall object.
- * The application can later accept the call using
- * this method.
+ * The application can later accept the call using this method.
  * @param lc the LinphoneCore object
  * @param call the LinphoneCall object representing the call to be answered.
  *
index e2c46bf7bf28b57279f1ae42a1b12624b3290b51..2c0aa16653b3bc21482c9c624715879036b7f785 100644 (file)
@@ -247,7 +247,7 @@ typedef enum _LinphoneCallState{
        LinphoneCallError, /**<The call encountered an error*/
        LinphoneCallEnd, /**<The call ended normally*/
        LinphoneCallPausedByRemote, /**<The call is paused by remote end*/
-       LinphoneCallUpdatedByRemote, /**<The call's parameters are updated, used for example when video is asked by remote */
+       LinphoneCallUpdatedByRemote, /**<The call's parameters change is requested by remote end, used for example when video is added by remote */
        LinphoneCallIncomingEarlyMedia, /**<We are proposing early media to an incoming call */
        LinphoneCallUpdated, /**<The remote accepted the call update initiated by us */
        LinphoneCallReleased /**< The call object is no more retained by the core */