Commit 4f96c41e authored by Erwan Croze's avatar Erwan Croze 👋🏻

Fixing magic search constructor for wrapper

parent 8e7791e3
......@@ -115,6 +115,14 @@ LINPHONE_PUBLIC LinphonePlayer *linphone_core_create_local_player(LinphoneCore *
**/
LINPHONE_PUBLIC LinphoneInfoMessage *linphone_core_create_info_message(LinphoneCore*lc);
/**
* Create a #LinphoneMagicSearch object.
* @param[in] lc #LinphoneCore object
* @return The create #LinphoneMagicSearch object
* @ingroup misc
*/
LINPHONE_PUBLIC LinphoneMagicSearch *linphone_core_create_magic_search(LinphoneCore *lc);
/**
* Checks if a new version of the application is available.
* @param lc LinphoneCore object
......
......@@ -24,7 +24,7 @@ using namespace std;
L_DECLARE_C_OBJECT_IMPL(MagicSearch);
LinphoneMagicSearch *linphone_magic_search_new(LinphoneCore *lc) {
LinphoneMagicSearch *linphone_core_create_magic_search(LinphoneCore *lc) {
shared_ptr<LinphonePrivate::MagicSearch> cppPtr = make_shared<LinphonePrivate::MagicSearch>(L_GET_CPP_PTR_FROM_C_OBJECT(lc));
LinphoneMagicSearch *object = L_INIT(MagicSearch);
......@@ -32,6 +32,10 @@ LinphoneMagicSearch *linphone_magic_search_new(LinphoneCore *lc) {
return object;
}
LinphoneMagicSearch *linphone_new_magic_search(LinphoneCore *lc) {
return linphone_core_create_magic_search(lc);
}
LinphoneMagicSearch *linphone_magic_search_ref(LinphoneMagicSearch *magicSearch) {
belle_sip_object_ref(magicSearch);
return magicSearch;
......
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