Fix C++ wrapper generation when the VCard support of Liblinphone is disabled.

This commit is contained in:
François Grisez 2017-10-18 14:54:52 +02:00
parent 40b0857de0
commit 3fbe231594
2 changed files with 15 additions and 3 deletions

View file

@ -18,6 +18,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "linphone/core.h"
#include "linphone/wrapper_utils.h"
#include "vcard_private.h"
struct _LinphoneVcardContext {
@ -179,3 +180,11 @@ bool_t linphone_core_vcard_supported(void) {
void linphone_vcard_clean_cache(LinphoneVcard *vCard) {
}
void *linphone_vcard_get_belcard(LinphoneVcard *vCard) {
return NULL;
}
LinphoneVcard *linphone_vcard_clone(const LinphoneVcard *vCard) {
return NULL;
}

View file

@ -29,13 +29,16 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
{{/includes}}
#include "object.hh"
{{#_class}}{{#isVcard}}
#include <belcard/belcard.hpp>
{{/isVcard}}{{/_class}}
{{#_class}}{{#isfactory}}
#include "config.hh"
{{/isfactory}}{{/_class}}
{{#_class}}{{#isVcard}}
namespace belcard {
class BelCard;
}
{{/isVcard}}{{/_class}}
{{#_class}}
{{#isNotListener}}