]> sjero.net Git - linphone/blobdiff - coreapi/help/doxygen.dox.in
Merge branch 'dev_multicall'
[linphone] / coreapi / help / doxygen.dox.in
index 13502d42424b7f601c4eea830b7ce70ff517ed8c..cb05e05d71db1ce76a3567e9fb78047875aa8c4f 100644 (file)
  */
 
 /**
- * @defgroup tutorial_liblinphone Tutorial: Placing and receiving calls with liblinphone
- * 
-
-<H1>Initialize liblinphone</H1>
-
-The first thing to do is to initialize the library passing it a set of callbacks functions to receive
-various notifications: incoming calls, progress of calls etc...
-These callbacks are all grouped in the LinphoneCoreVTable structure.
-All are optionnals (use NULL if you don't need them).
-The following code shows how initialize liblinphone:
-
-<PRE>
-       ##include <linphonecore.h>
-
-       //callback function for notification of incoming calls
-       static void on_invite_recv(LinphoneCore *lc, const char *from){
-               printf("Receiving a call from %s\n",from);
-       }
-
-       //callback function for notification end of calls (by remote)
-       static void on_bye_recv(LinphoneCore *lc, const char *from){
-               printf("Remote end hangup\n");
-       }
-
-       /
-       static void on_display_status(LinphoneCore *lc, const char *msg){
-               printf("%s",msg);
-       }
-
-       int main(int argc, char *argv[]){
-               LinphoneCoreVTable vtable;
-               
-               memset(&vtable,0,sizeof(vtable));
-               vtable.inv_recv=&on_invite_recv;
-               vtable.bye_recv=&on_bye_recv;
-               vtable.display_status=&on_display_status;
-               
-       }
-
-</PRE>
-
-
-
-/** 
- * @defgroup initializing Initialization and destruction
- *
+ * @defgroup initializing Initializing liblinphone
 **/
 
 /**
- * @defgroup call_control Call control
- *
- * The application can initiate outgoing calls with linphone_core_invite().
- * It is notified of incoming call thanks to the inv_recv callback of the LinphoneCoreVTable
- * structure that is passed at creation of the LinphoneCore object.
- * It can then answer calls with linphone_core_accept_call().
- * Calls can be terminated or declined with linphone_core_terminate_call().
- * The application is notified when the remote party hangups thanks to 
- * bye_recv callback of the #LinphoneCoreVTable.
+ * @defgroup call_control Placing and receiving calls
 **/
 
 /**
@@ -109,6 +56,7 @@ The following code shows how initialize liblinphone:
  * @defgroup call_logs Managing call logs
 **/
 
+
 /**
  * @defgroup linphone_address SIP address parser API.
  * This api is useful for manipulating SIP addresses ('from' or 'to' headers).
@@ -117,3 +65,14 @@ The following code shows how initialize liblinphone:
 /**
  * @defgroup misc Miscenalleous: logs, version strings, config storage
 **/
+
+/**
+ * @defgroup tutorial_liblinphone Tutorial: Placing calls with liblinphone
+ *
+ * The minimalist program below illustrates how to initialize liblinphone and place and outgoing call.
+ * @include helloworld.c
+ *
+**/
+
+
+