vcard_stubs.c 4.05 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/*
vcard_stubs.c
Copyright (C) 2015  Belledonne Communications SARL

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/

#include "vcard.h"

22
struct _LinphoneVcardContext {
23
	void *user_data;
24 25 26
};

LinphoneVcardContext* linphone_vcard_context_new(void) {
27 28 29
	LinphoneVcardContext* context = ms_new0(LinphoneVcardContext, 1);
	context->user_data = NULL;
	return context;
30 31 32
}

void linphone_vcard_context_destroy(LinphoneVcardContext *context) {
33 34 35
	if (context) {
		ms_free(context);
	}
36 37
}

38
void* linphone_vcard_context_get_user_data(const LinphoneVcardContext *context) {
39
	return context ? context->user_data : NULL;
40 41 42
}

void linphone_vcard_context_set_user_data(LinphoneVcardContext *context, void *data) {
43
	if (context) context->user_data = data;
44 45
}

46
struct _LinphoneVcard {
47
	void *dummy;
48 49
};

50
LinphoneVcard* linphone_vcard_new(void) {
51 52 53
	return NULL;
}

54
void linphone_vcard_free(LinphoneVcard *vCard) {
55 56
}

57
MSList* linphone_vcard_context_get_vcard_list_from_file(LinphoneVcardContext *context, const char *filename) {
58 59 60
	return NULL;
}

61
MSList* linphone_vcard_context_get_vcard_list_from_buffer(LinphoneVcardContext *context, const char *buffer) {
62 63 64
	return NULL;
}

65
LinphoneVcard* linphone_vcard_context_get_vcard_from_buffer(LinphoneVcardContext *context, const char *buffer) {
66 67 68
	return NULL;
}

69
const char * linphone_vcard_as_vcard4_string(LinphoneVcard *vCard) {
70 71 72
	return NULL;
}

73
void linphone_vcard_set_full_name(LinphoneVcard *vCard, const char *name) {
74 75
}

76
const char* linphone_vcard_get_full_name(const LinphoneVcard *vCard) {
77 78 79
	return NULL;
}

Ghislain MARY's avatar
Ghislain MARY committed
80
void linphone_vcard_set_family_name(LinphoneVcard *vCard, const char *name) {
81 82
}

Ghislain MARY's avatar
Ghislain MARY committed
83
const char* linphone_vcard_get_family_name(const LinphoneVcard *vCard) {
84 85 86 87 88 89 90 91 92 93
	return NULL;
}

void linphone_vcard_set_given_name(LinphoneVcard *vCard, const char *name) {
}

const char* linphone_vcard_get_given_name(const LinphoneVcard *vCard) {
	return NULL;
}

94
void linphone_vcard_add_sip_address(LinphoneVcard *vCard, const char *sip_address) {
95 96
}

97
void linphone_vcard_remove_sip_address(LinphoneVcard *vCard, const char *sip_address) {
98 99
}

100
void linphone_vcard_edit_main_sip_address(LinphoneVcard *vCard, const char *sip_address) {
101 102
}

103
MSList* linphone_vcard_get_sip_addresses(const LinphoneVcard *vCard) {
104
	return NULL;
105 106
}

107 108 109 110 111 112 113 114 115 116
void linphone_vcard_add_phone_number(LinphoneVcard *vCard, const char *phone) {
}

void linphone_vcard_remove_phone_number(LinphoneVcard *vCard, const char *phone) {
}

MSList* linphone_vcard_get_phone_numbers(const LinphoneVcard *vCard) {
	return NULL;
}

117 118 119 120 121 122 123
void linphone_vcard_set_organization(LinphoneVcard *vCard, const char *organization) {
}

const char* linphone_vcard_get_organization(const LinphoneVcard *vCard) {
	return NULL;
}

124
bool_t linphone_vcard_generate_unique_id(LinphoneVcard *vCard) {
125 126 127
	return FALSE;
}

128
void linphone_vcard_set_uid(LinphoneVcard *vCard, const char *uid) {
129 130
}

131
const char* linphone_vcard_get_uid(const LinphoneVcard *vCard) {
132 133 134
	return NULL;
}

135
void linphone_vcard_set_etag(LinphoneVcard *vCard, const char * etag) {
136 137
}

138
const char* linphone_vcard_get_etag(const LinphoneVcard *vCard) {
139 140 141
	return NULL;
}

142
void linphone_vcard_set_url(LinphoneVcard *vCard, const char * url) {
143 144
}

145
const char* linphone_vcard_get_url(const LinphoneVcard *vCard) {
146
	return NULL;
147 148
}

149
void linphone_vcard_compute_md5_hash(LinphoneVcard *vCard) {
150 151 152
	
}

153
bool_t linphone_vcard_compare_md5_hash(LinphoneVcard *vCard) {
154
	return FALSE;
155
}