Add connection_get_profanity_identifier stub
And move defintion to xmpp.h
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <glib.h>
|
||||
|
||||
#include "event/server_events.h"
|
||||
#include "xmpp/xmpp.h"
|
||||
#include "xmpp/roster_list.h"
|
||||
#include "xmpp/chat_session.h"
|
||||
#include "config/preferences.h"
|
||||
|
||||
7
tests/unittests/xmpp/stub_connection.c
Normal file
7
tests/unittests/xmpp/stub_connection.c
Normal file
@@ -0,0 +1,7 @@
|
||||
#include "xmpp/message.h"
|
||||
|
||||
ProfMessage *message_init(void) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void message_free(ProfMessage *message) {}
|
||||
@@ -92,6 +92,10 @@ connection_supports(const char *const feature)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
char *connection_get_profanity_identifier(void) {
|
||||
return "profident";
|
||||
}
|
||||
|
||||
// message functions
|
||||
char* message_send_chat(const char * const barejid, const char * const msg, const char *const oob_url,
|
||||
gboolean request_receipt)
|
||||
|
||||
Reference in New Issue
Block a user