mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 14:18:07 +00:00
Card context has to work even without vCard support for fetching friend from db...
Cherry pick from master ae708bdd8c
This commit is contained in:
parent
6256cf1636
commit
2f928c41b8
1 changed files with 8 additions and 4 deletions
|
|
@ -20,15 +20,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include "vcard.h"
|
||||
|
||||
struct _LinphoneVcardContext {
|
||||
void *dummy;
|
||||
void *user_data;
|
||||
};
|
||||
|
||||
LinphoneVcardContext* linphone_vcard_context_new(void) {
|
||||
return NULL;
|
||||
LinphoneVcardContext* context = ms_new0(LinphoneVcardContext, 1);
|
||||
context->user_data = NULL;
|
||||
return context;
|
||||
}
|
||||
|
||||
void linphone_vcard_context_destroy(LinphoneVcardContext *context) {
|
||||
|
||||
if (context) {
|
||||
ms_free(context);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -37,7 +41,7 @@ void* linphone_vcard_context_get_user_data(const LinphoneVcardContext *context)
|
|||
}
|
||||
|
||||
void linphone_vcard_context_set_user_data(LinphoneVcardContext *context, void *data) {
|
||||
|
||||
if (context) context->user_data = data;
|
||||
}
|
||||
|
||||
struct _LinphoneVcard {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue