From f934c5b59f2fe2c3c00a50135add4aec55ac4024 Mon Sep 17 00:00:00 2001 From: Marouane L Date: Tue, 6 Sep 2022 17:29:07 +0100 Subject: Add vCard support Only nicknames, photos, birthdays, addresses, telephone numbers, emails, JIDs, titles, roles, notes, and URLs are supported Due to the synopsis array not having enough space, `/vcard photo open-self` and `/vcard photo save-self` are not documented properly in the synopsis section of the `/vcard` command, but they are documented in the arguments section Fixed memory leak in vcard autocomplete (thanks to debXwoody) --- tests/unittests/ui/stub_ui.c | 5 +++++ tests/unittests/ui/stub_vcardwin.c | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 tests/unittests/ui/stub_vcardwin.c (limited to 'tests/unittests/ui') diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c index ee759bb2..f95ee0d8 100644 --- a/tests/unittests/ui/stub_ui.c +++ b/tests/unittests/ui/stub_ui.c @@ -1256,6 +1256,11 @@ win_create_plugin(const char* const plugin_name, const char* const tag) { return NULL; } +ProfWin* +win_create_vcard(vCard* vcard) +{ + return NULL; +} char* win_get_tab_identifier(ProfWin* window) diff --git a/tests/unittests/ui/stub_vcardwin.c b/tests/unittests/ui/stub_vcardwin.c new file mode 100644 index 00000000..e73eb04b --- /dev/null +++ b/tests/unittests/ui/stub_vcardwin.c @@ -0,0 +1,4 @@ +void +vcardwin_update(void) +{ +} -- cgit 1.4.1-2-gfad0