From b6fa538ce7cdffec9fd3829317413d79f35190eb Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Wed, 3 Aug 2016 11:10:21 +0200 Subject: [PATCH] Oooopsss... Fix last commit. --- coreapi/account_creator.c | 24 ++++++++++++------------ coreapi/private.h | 12 ++++++------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/coreapi/account_creator.c b/coreapi/account_creator.c index 85746129a..5705cb2ec 100644 --- a/coreapi/account_creator.c +++ b/coreapi/account_creator.c @@ -61,51 +61,51 @@ void linphone_account_creator_cbs_set_user_data(LinphoneAccountCreatorCbs *cbs, cbs->user_data = ud; } -LinphoneAccountCreatorDefaultCb linphone_account_creator_cbs_get_is_account_used(const LinphoneAccountCreatorCbs *cbs) { +LinphoneAccountCreatorStatusCb linphone_account_creator_cbs_get_is_account_used(const LinphoneAccountCreatorCbs *cbs) { return cbs->is_account_used; } -void linphone_account_creator_cbs_set_is_account_used(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorDefaultCb cb) { +void linphone_account_creator_cbs_set_is_account_used(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorStatusCb cb) { cbs->is_account_used = cb; } -LinphoneAccountCreatorDefaultCb linphone_account_creator_cbs_get_create_account(const LinphoneAccountCreatorCbs *cbs) { +LinphoneAccountCreatorStatusCb linphone_account_creator_cbs_get_create_account(const LinphoneAccountCreatorCbs *cbs) { return cbs->create_account; } -void linphone_account_creator_cbs_set_create_account(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorDefaultCb cb) { +void linphone_account_creator_cbs_set_create_account(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorStatusCb cb) { cbs->create_account = cb; } -LinphoneAccountCreatorDefaultCb linphone_account_creator_cbs_get_activate_account(const LinphoneAccountCreatorCbs *cbs) { +LinphoneAccountCreatorStatusCb linphone_account_creator_cbs_get_activate_account(const LinphoneAccountCreatorCbs *cbs) { return cbs->activate_account; } -void linphone_account_creator_cbs_set_activate_account(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorDefaultCb cb) { +void linphone_account_creator_cbs_set_activate_account(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorStatusCb cb) { cbs->activate_account = cb; } -LinphoneAccountCreatorDefaultCb linphone_account_creator_cbs_get_link_phone_number_with_account(const LinphoneAccountCreatorCbs *cbs) { +LinphoneAccountCreatorStatusCb linphone_account_creator_cbs_get_link_phone_number_with_account(const LinphoneAccountCreatorCbs *cbs) { return cbs->link_phone_number_with_account; } -void linphone_account_creator_cbs_set_link_phone_number_with_account(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorDefaultCb cb) { +void linphone_account_creator_cbs_set_link_phone_number_with_account(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorStatusCb cb) { cbs->link_phone_number_with_account = cb; } -LinphoneAccountCreatorDefaultCb linphone_account_creator_cbs_get_activate_phone_number_link(const LinphoneAccountCreatorCbs *cbs) { +LinphoneAccountCreatorStatusCb linphone_account_creator_cbs_get_activate_phone_number_link(const LinphoneAccountCreatorCbs *cbs) { return cbs->activate_phone_number_link; } -void linphone_account_creator_cbs_set_activate_phone_number_link(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorDefaultCb cb) { +void linphone_account_creator_cbs_set_activate_phone_number_link(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorStatusCb cb) { cbs->activate_phone_number_link = cb; } -LinphoneAccountCreatorDefaultCb linphone_account_creator_cbs_get_is_account_activated(const LinphoneAccountCreatorCbs *cbs) { +LinphoneAccountCreatorStatusCb linphone_account_creator_cbs_get_is_account_activated(const LinphoneAccountCreatorCbs *cbs) { return cbs->is_account_activated; } -void linphone_account_creator_cbs_set_is_account_activated(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorDefaultCb cb) { +void linphone_account_creator_cbs_set_is_account_activated(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorStatusCb cb) { cbs->is_account_activated = cb; } diff --git a/coreapi/private.h b/coreapi/private.h index 030422981..7e3514975 100644 --- a/coreapi/private.h +++ b/coreapi/private.h @@ -1280,13 +1280,13 @@ BELLE_SIP_DECLARE_VPTR(LinphoneXmlRpcSession); struct _LinphoneAccountCreatorCbs { belle_sip_object_t base; void *user_data; - LinphoneAccountCreatorDefaultCb is_account_used; - LinphoneAccountCreatorDefaultCb create_account; - LinphoneAccountCreatorDefaultCb activate_account; - LinphoneAccountCreatorDefaultCb is_account_activated; + LinphoneAccountCreatorStatusCb is_account_used; + LinphoneAccountCreatorStatusCb create_account; + LinphoneAccountCreatorStatusCb activate_account; + LinphoneAccountCreatorStatusCb is_account_activated; - LinphoneAccountCreatorDefaultCb link_phone_number_with_account; - LinphoneAccountCreatorDefaultCb activate_phone_number_link; + LinphoneAccountCreatorStatusCb link_phone_number_with_account; + LinphoneAccountCreatorStatusCb activate_phone_number_link; }; BELLE_SIP_DECLARE_VPTR(LinphoneAccountCreatorCbs);