1 /*
2 vcard_stubs.c
3 Copyright (C) 2015  Belledonne Communications SARL
4 
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18 */
19 
20 #include "linphone/core.h"
21 #include "vcard_private.h"
22 
23 struct _LinphoneVcardContext {
24 	void *user_data;
25 };
26 
linphone_vcard_context_new(void)27 LinphoneVcardContext* linphone_vcard_context_new(void) {
28 	LinphoneVcardContext* context = ms_new0(LinphoneVcardContext, 1);
29 	context->user_data = NULL;
30 	return context;
31 }
32 
linphone_vcard_context_destroy(LinphoneVcardContext * context)33 void linphone_vcard_context_destroy(LinphoneVcardContext *context) {
34 	if (context) {
35 		ms_free(context);
36 	}
37 }
38 
39 
linphone_vcard_context_get_user_data(const LinphoneVcardContext * context)40 void* linphone_vcard_context_get_user_data(const LinphoneVcardContext *context) {
41 	return context ? context->user_data : NULL;
42 }
43 
linphone_vcard_context_set_user_data(LinphoneVcardContext * context,void * data)44 void linphone_vcard_context_set_user_data(LinphoneVcardContext *context, void *data) {
45 	if (context) context->user_data = data;
46 }
47 
48 struct _LinphoneVcard {
49 	void *dummy;
50 };
51 
_linphone_vcard_new(void)52 LinphoneVcard* _linphone_vcard_new(void) {
53 	return NULL;
54 }
55 
linphone_vcard_new(void)56 LinphoneVcard* linphone_vcard_new(void) {
57 	return NULL;
58 }
59 
linphone_vcard_free(LinphoneVcard * vCard)60 void linphone_vcard_free(LinphoneVcard *vCard) {
61 }
62 
linphone_vcard_ref(LinphoneVcard * vCard)63 LinphoneVcard *linphone_vcard_ref(LinphoneVcard *vCard) {
64 	return NULL;
65 }
66 
linphone_vcard_unref(LinphoneVcard * vCard)67 void linphone_vcard_unref(LinphoneVcard *vCard) {
68 }
69 
linphone_vcard_context_get_vcard_list_from_file(LinphoneVcardContext * context,const char * filename)70 bctbx_list_t* linphone_vcard_context_get_vcard_list_from_file(LinphoneVcardContext *context, const char *filename) {
71 	return NULL;
72 }
73 
linphone_vcard_context_get_vcard_list_from_buffer(LinphoneVcardContext * context,const char * buffer)74 bctbx_list_t* linphone_vcard_context_get_vcard_list_from_buffer(LinphoneVcardContext *context, const char *buffer) {
75 	return NULL;
76 }
77 
linphone_vcard_context_get_vcard_from_buffer(LinphoneVcardContext * context,const char * buffer)78 LinphoneVcard* linphone_vcard_context_get_vcard_from_buffer(LinphoneVcardContext *context, const char *buffer) {
79 	return NULL;
80 }
81 
linphone_vcard_as_vcard4_string(LinphoneVcard * vCard)82 const char * linphone_vcard_as_vcard4_string(LinphoneVcard *vCard) {
83 	return NULL;
84 }
85 
linphone_vcard_set_full_name(LinphoneVcard * vCard,const char * name)86 void linphone_vcard_set_full_name(LinphoneVcard *vCard, const char *name) {
87 }
88 
linphone_vcard_get_full_name(const LinphoneVcard * vCard)89 const char* linphone_vcard_get_full_name(const LinphoneVcard *vCard) {
90 	return NULL;
91 }
92 
linphone_vcard_set_skip_validation(LinphoneVcard * vCard,bool_t skip)93 void linphone_vcard_set_skip_validation(LinphoneVcard *vCard, bool_t skip) {
94 }
95 
linphone_vcard_get_skip_validation(const LinphoneVcard * vCard)96 bool_t linphone_vcard_get_skip_validation(const LinphoneVcard *vCard) {
97 	return FALSE;
98 }
99 
linphone_vcard_set_family_name(LinphoneVcard * vCard,const char * name)100 void linphone_vcard_set_family_name(LinphoneVcard *vCard, const char *name) {
101 }
102 
linphone_vcard_get_family_name(const LinphoneVcard * vCard)103 const char* linphone_vcard_get_family_name(const LinphoneVcard *vCard) {
104 	return NULL;
105 }
106 
linphone_vcard_set_given_name(LinphoneVcard * vCard,const char * name)107 void linphone_vcard_set_given_name(LinphoneVcard *vCard, const char *name) {
108 }
109 
linphone_vcard_get_given_name(const LinphoneVcard * vCard)110 const char* linphone_vcard_get_given_name(const LinphoneVcard *vCard) {
111 	return NULL;
112 }
113 
linphone_vcard_add_sip_address(LinphoneVcard * vCard,const char * sip_address)114 void linphone_vcard_add_sip_address(LinphoneVcard *vCard, const char *sip_address) {
115 }
116 
linphone_vcard_remove_sip_address(LinphoneVcard * vCard,const char * sip_address)117 void linphone_vcard_remove_sip_address(LinphoneVcard *vCard, const char *sip_address) {
118 }
119 
linphone_vcard_edit_main_sip_address(LinphoneVcard * vCard,const char * sip_address)120 void linphone_vcard_edit_main_sip_address(LinphoneVcard *vCard, const char *sip_address) {
121 }
122 
linphone_vcard_get_sip_addresses(LinphoneVcard * vCard)123 const bctbx_list_t* linphone_vcard_get_sip_addresses(LinphoneVcard *vCard) {
124 	return NULL;
125 }
126 
linphone_vcard_add_phone_number(LinphoneVcard * vCard,const char * phone)127 void linphone_vcard_add_phone_number(LinphoneVcard *vCard, const char *phone) {
128 }
129 
linphone_vcard_remove_phone_number(LinphoneVcard * vCard,const char * phone)130 void linphone_vcard_remove_phone_number(LinphoneVcard *vCard, const char *phone) {
131 }
132 
linphone_vcard_get_phone_numbers(const LinphoneVcard * vCard)133 bctbx_list_t* linphone_vcard_get_phone_numbers(const LinphoneVcard *vCard) {
134 	return NULL;
135 }
136 
linphone_vcard_set_organization(LinphoneVcard * vCard,const char * organization)137 void linphone_vcard_set_organization(LinphoneVcard *vCard, const char *organization) {
138 }
139 
linphone_vcard_get_organization(const LinphoneVcard * vCard)140 const char* linphone_vcard_get_organization(const LinphoneVcard *vCard) {
141 	return NULL;
142 }
143 
linphone_vcard_generate_unique_id(LinphoneVcard * vCard)144 bool_t linphone_vcard_generate_unique_id(LinphoneVcard *vCard) {
145 	return FALSE;
146 }
147 
linphone_vcard_set_uid(LinphoneVcard * vCard,const char * uid)148 void linphone_vcard_set_uid(LinphoneVcard *vCard, const char *uid) {
149 }
150 
linphone_vcard_get_uid(const LinphoneVcard * vCard)151 const char* linphone_vcard_get_uid(const LinphoneVcard *vCard) {
152 	return NULL;
153 }
154 
linphone_vcard_set_etag(LinphoneVcard * vCard,const char * etag)155 void linphone_vcard_set_etag(LinphoneVcard *vCard, const char * etag) {
156 }
157 
linphone_vcard_get_etag(const LinphoneVcard * vCard)158 const char* linphone_vcard_get_etag(const LinphoneVcard *vCard) {
159 	return NULL;
160 }
161 
linphone_vcard_set_url(LinphoneVcard * vCard,const char * url)162 void linphone_vcard_set_url(LinphoneVcard *vCard, const char * url) {
163 }
164 
linphone_vcard_get_url(const LinphoneVcard * vCard)165 const char* linphone_vcard_get_url(const LinphoneVcard *vCard) {
166 	return NULL;
167 }
168 
linphone_vcard_compute_md5_hash(LinphoneVcard * vCard)169 void linphone_vcard_compute_md5_hash(LinphoneVcard *vCard) {
170 }
171 
linphone_vcard_compare_md5_hash(LinphoneVcard * vCard)172 bool_t linphone_vcard_compare_md5_hash(LinphoneVcard *vCard) {
173 	return FALSE;
174 }
175 
linphone_core_vcard_supported(void)176 bool_t linphone_core_vcard_supported(void) {
177 	return FALSE;
178 }
179 
linphone_vcard_clean_cache(LinphoneVcard * vCard)180 void linphone_vcard_clean_cache(LinphoneVcard *vCard) {
181 }
182