1
0
Fork 0

xep-0084: add test stub file

This commit is contained in:
Michael Vetter 2019-12-18 15:44:59 +01:00
parent 53b92561cb
commit 9ac72980d1
4 changed files with 10 additions and 2 deletions

View File

@ -105,6 +105,7 @@ unittest_sources = \
src/event/server_events.c src/event/server_events.h \
src/event/client_events.c src/event/client_events.h \
src/ui/tray.h src/ui/tray.c \
tests/unittests/xmpp/stub_avatar.c \
tests/unittests/xmpp/stub_xmpp.c \
tests/unittests/xmpp/stub_message.c \
tests/unittests/ui/stub_ui.c tests/unittests/ui/stub_ui.h \

View File

@ -76,7 +76,7 @@ avatar_pep_subscribe(void)
//caps_add_feature(XMPP_FEATURE_USER_AVATAR_METADATA_NOTIFY);
}
bool
gboolean
avatar_get_by_nick(const char* nick)
{
caps_remove_feature(XMPP_FEATURE_USER_AVATAR_METADATA_NOTIFY);

View File

@ -39,6 +39,6 @@
#include <glib.h>
void avatar_pep_subscribe(void);
bool avatar_get_by_nick(const char* nick);
gboolean avatar_get_by_nick(const char* nick);
#endif

View File

@ -0,0 +1,7 @@
#include <stdio.h>
#include <glib.h>
#include <stdlib.h>
void avatar_pep_subscribe(void) {};
gboolean avatar_get_by_nick(const char* nick) {return TRUE;}