From 2150ce6f5c2437fd5436f14e43233b5b41981248 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 8 Sep 2014 11:31:01 +0200 Subject: [PATCH] Add missing const to linphone_core_get_user_data signature. --- coreapi/linphonecore.c | 2 +- coreapi/linphonecore.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index ca1d20c0c..7ef04632c 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -5375,7 +5375,7 @@ void linphone_core_stop_dtmf(LinphoneCore *lc){ * * @ingroup initializing **/ -void *linphone_core_get_user_data(LinphoneCore *lc){ +void *linphone_core_get_user_data(const LinphoneCore *lc){ return lc->data; } diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index 65cce6847..c2af4cdaf 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -2593,7 +2593,7 @@ LINPHONE_PUBLIC void linphone_core_enable_keep_alive(LinphoneCore* lc,bool_t ena */ LINPHONE_PUBLIC bool_t linphone_core_keep_alive_enabled(LinphoneCore* lc); -LINPHONE_PUBLIC void *linphone_core_get_user_data(LinphoneCore *lc); +LINPHONE_PUBLIC void *linphone_core_get_user_data(const LinphoneCore *lc); LINPHONE_PUBLIC void linphone_core_set_user_data(LinphoneCore *lc, void *userdata); /* returns LpConfig object to read/write to the config file: usefull if you wish to extend