Commit 3c381307 authored by smorlat's avatar smorlat

add persistent call logs feature + refkey

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@783 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 952094c2
...@@ -612,7 +612,7 @@ linphonec_init(int argc, char **argv) ...@@ -612,7 +612,7 @@ linphonec_init(int argc, char **argv)
/* /*
* Initialize linphone core * Initialize linphone core
*/ */
linphonec=linphone_core_new (&linphonec_vtable, configfile_name, linphonec=linphone_core_new (&linphonec_vtable, configfile_name, NULL,
NULL); NULL);
linphone_core_enable_video(linphonec,vcap_enabled,display_enabled); linphone_core_enable_video(linphonec,vcap_enabled,display_enabled);
linphone_core_enable_video_preview(linphonec,preview_enabled); linphone_core_enable_video_preview(linphonec,preview_enabled);
......
...@@ -85,7 +85,7 @@ INPUT = . ../ ...@@ -85,7 +85,7 @@ INPUT = . ../
FILE_PATTERNS = *.h \ FILE_PATTERNS = *.h \
*.c \ *.c \
*.dox *.dox
RECURSIVE = YES RECURSIVE = NO
EXCLUDE = EXCLUDE =
EXCLUDE_SYMLINKS = NO EXCLUDE_SYMLINKS = NO
EXCLUDE_PATTERNS = EXCLUDE_PATTERNS =
......
...@@ -3,6 +3,7 @@ EXTRA_DIST = Doxyfile.in doxygen.dox.in ...@@ -3,6 +3,7 @@ EXTRA_DIST = Doxyfile.in doxygen.dox.in
SOURCES=$(top_srcdir)/coreapi/*.h SOURCES=$(top_srcdir)/coreapi/*.h
#html doc #html doc
if HAVE_DOXYGEN if HAVE_DOXYGEN
......
/** /**
* @mainpage * @mainpage
* Project Website: http://savannah.gnu.org/projects/linphone
* *
* @verbinclude README * @see http://www.linphone.org
*
*/
/**
* @defgroup liblinphone liblinphone library - high level library for building SIP applications
* @brief liblinphone Version @LINPHONE_VERSION@
*
* @see http://savannah.gnu.org/projects/linphone
* *
* @section what_is_it What is liblinphone * @section what_is_it What is liblinphone
* *
...@@ -27,7 +18,8 @@ ...@@ -27,7 +18,8 @@
* GPL license, please contact Belledonne Communications * GPL license, please contact Belledonne Communications
* (contact@belledonne-communications.com) * (contact@belledonne-communications.com)
* *
* *
**/
/** /**
* @page liblinphone_license COPYING * @page liblinphone_license COPYING
...@@ -35,3 +27,15 @@ ...@@ -35,3 +27,15 @@
*/ */
/**
* @defgroup initializing Initialization and destruction
*
**/
/**
* @defgroup media_parameters Controlling media parameters
**/
/**
* @defgroup misc Miscenalleous: logs, version strings
**/
This diff is collapsed.
...@@ -188,7 +188,9 @@ typedef struct _LinphoneCallLog{ ...@@ -188,7 +188,9 @@ typedef struct _LinphoneCallLog{
LinphoneAddress *to; LinphoneAddress *to;
char start_date[128]; char start_date[128];
int duration; int duration;
char *refkey;
void *user_pointer; void *user_pointer;
struct _LinphoneCore *lc;
} LinphoneCallLog; } LinphoneCallLog;
...@@ -196,6 +198,8 @@ typedef struct _LinphoneCallLog{ ...@@ -196,6 +198,8 @@ typedef struct _LinphoneCallLog{
/*public: */ /*public: */
void linphone_call_log_set_user_pointer(LinphoneCallLog *cl, void *up); void linphone_call_log_set_user_pointer(LinphoneCallLog *cl, void *up);
void *linphone_call_log_get_user_pointer(const LinphoneCallLog *cl); void *linphone_call_log_get_user_pointer(const LinphoneCallLog *cl);
void linphone_call_log_set_ref_key(LinphoneCallLog *cl, const char *refkey);
const char *linphone_call_log_get_ref_key(const LinphoneCallLog *cl);
char * linphone_call_log_to_str(LinphoneCallLog *cl); char * linphone_call_log_to_str(LinphoneCallLog *cl);
typedef enum{ typedef enum{
...@@ -548,7 +552,7 @@ void linphone_core_set_user_agent(const char *ua_name, const char *version); ...@@ -548,7 +552,7 @@ void linphone_core_set_user_agent(const char *ua_name, const char *version);
const char *linphone_core_get_version(void); const char *linphone_core_get_version(void);
LinphoneCore *linphone_core_new(const LinphoneCoreVTable *vtable, LinphoneCore *linphone_core_new(const LinphoneCoreVTable *vtable,
const char *config_path, void* userdata); const char *config_path, const char *factory_config, void* userdata);
/* function to be periodically called in a main loop */ /* function to be periodically called in a main loop */
void linphone_core_iterate(LinphoneCore *lc); void linphone_core_iterate(LinphoneCore *lc);
...@@ -729,6 +733,7 @@ LinphoneFriend *linphone_core_get_friend_by_ref_key(const LinphoneCore *lc, cons ...@@ -729,6 +733,7 @@ LinphoneFriend *linphone_core_get_friend_by_ref_key(const LinphoneCore *lc, cons
/* returns a list of LinphoneCallLog */ /* returns a list of LinphoneCallLog */
const MSList * linphone_core_get_call_logs(LinphoneCore *lc); const MSList * linphone_core_get_call_logs(LinphoneCore *lc);
void linphone_core_clear_call_logs(LinphoneCore *lc);
/* video support */ /* video support */
void linphone_core_enable_video(LinphoneCore *lc, bool_t vcap_enabled, bool_t display_enabled); void linphone_core_enable_video(LinphoneCore *lc, bool_t vcap_enabled, bool_t display_enabled);
......
...@@ -190,8 +190,4 @@ void linphone_proxy_config_get_contact(LinphoneProxyConfig *cfg, const char **ip ...@@ -190,8 +190,4 @@ void linphone_proxy_config_get_contact(LinphoneProxyConfig *cfg, const char **ip
LinphoneProxyConfig * linphone_core_lookup_known_proxy(LinphoneCore *lc, const LinphoneAddress *uri); LinphoneProxyConfig * linphone_core_lookup_known_proxy(LinphoneCore *lc, const LinphoneAddress *uri);
int linphone_core_get_local_ip_for(const char *dest, char *result); int linphone_core_get_local_ip_for(const char *dest, char *result);
void linphone_core_init(LinphoneCore *lc, const LinphoneCoreVTable *vtable,
const char *config_path, void * userdata);
void linphone_core_uninit(LinphoneCore *lc);
#endif /* _PRIVATE_H */ #endif /* _PRIVATE_H */
...@@ -160,7 +160,7 @@ const char *linphone_gtk_get_config_file(){ ...@@ -160,7 +160,7 @@ const char *linphone_gtk_get_config_file(){
static void linphone_gtk_init_liblinphone(const char *file){ static void linphone_gtk_init_liblinphone(const char *file){
linphone_core_set_user_agent("Linphone", LINPHONE_VERSION); linphone_core_set_user_agent("Linphone", LINPHONE_VERSION);
the_core=linphone_core_new(&vtable,file,NULL); the_core=linphone_core_new(&vtable,file,NULL,NULL);
linphone_core_set_waiting_callback(the_core,linphone_gtk_wait,NULL); linphone_core_set_waiting_callback(the_core,linphone_gtk_wait,NULL);
} }
......
...@@ -1027,7 +1027,7 @@ msgid "" ...@@ -1027,7 +1027,7 @@ msgid ""
"Status: %s\n" "Status: %s\n"
"Duration: %i mn %i sec\n" "Duration: %i mn %i sec\n"
msgstr "" msgstr ""
"%s le %sDe: %s\n" "%s le %s\nDe: %s\n"
"A destination de: %s\n" "A destination de: %s\n"
"Etat: %s\n" "Etat: %s\n"
"Durée: %i mn %i sec\n" "Durée: %i mn %i sec\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment