1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00
profanity/plugins/test-c-plugin/test-c-plugin.c

32 lines
597 B
C

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
static FILE * f = NULL;
void
prof_init (const char * const version, const char * const status)
{
fprintf (stderr, "called %s with args=<%s, %s>\n", __func__, version, status);
}
void
prof_on_start (void)
{
fprintf (stderr, "called %s with no args\n", __func__);
}
void
prof_on_connect (void)
{
fprintf (stderr, "called %s with no args\n", __func__);
}
void
prof_on_message_received (const char * const jid, const char * const message)
{
fprintf (stderr, "called %s with args=<%s, %s>\n", __func__, jid, message);
}