Removed function pointers
This commit is contained in:
@@ -52,8 +52,8 @@
|
||||
static void _notify(const char * const message, int timeout,
|
||||
const char * const category);
|
||||
|
||||
static void
|
||||
_notifier_uninit(void)
|
||||
void
|
||||
notifier_uninit(void)
|
||||
{
|
||||
#ifdef HAVE_LIBNOTIFY
|
||||
if (notify_is_initted()) {
|
||||
@@ -62,8 +62,8 @@ _notifier_uninit(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
_notify_typing(const char * const handle)
|
||||
void
|
||||
notify_typing(const char * const handle)
|
||||
{
|
||||
char message[strlen(handle) + 1 + 11];
|
||||
sprintf(message, "%s: typing...", handle);
|
||||
@@ -71,8 +71,8 @@ _notify_typing(const char * const handle)
|
||||
_notify(message, 10000, "Incoming message");
|
||||
}
|
||||
|
||||
static void
|
||||
_notify_invite(const char * const from, const char * const room,
|
||||
void
|
||||
notify_invite(const char * const from, const char * const room,
|
||||
const char * const reason)
|
||||
{
|
||||
GString *message = g_string_new("Room invite\nfrom: ");
|
||||
@@ -88,8 +88,8 @@ _notify_invite(const char * const from, const char * const room,
|
||||
g_string_free(message, TRUE);
|
||||
}
|
||||
|
||||
static void
|
||||
_notify_message(const char * const handle, int win, const char * const text)
|
||||
void
|
||||
notify_message(const char * const handle, int win, const char * const text)
|
||||
{
|
||||
GString *message = g_string_new("");
|
||||
g_string_append_printf(message, "%s (win %d)", handle, win);
|
||||
@@ -102,8 +102,8 @@ _notify_message(const char * const handle, int win, const char * const text)
|
||||
g_string_free(message, TRUE);
|
||||
}
|
||||
|
||||
static void
|
||||
_notify_room_message(const char * const handle, const char * const room, int win, const char * const text)
|
||||
void
|
||||
notify_room_message(const char * const handle, const char * const room, int win, const char * const text)
|
||||
{
|
||||
GString *message = g_string_new("");
|
||||
g_string_append_printf(message, "%s in %s (win %d)", handle, room, win);
|
||||
@@ -116,8 +116,8 @@ _notify_room_message(const char * const handle, const char * const room, int win
|
||||
g_string_free(message, TRUE);
|
||||
}
|
||||
|
||||
static void
|
||||
_notify_subscription(const char * const from)
|
||||
void
|
||||
notify_subscription(const char * const from)
|
||||
{
|
||||
GString *message = g_string_new("Subscription request: \n");
|
||||
g_string_append(message, from);
|
||||
@@ -125,8 +125,8 @@ _notify_subscription(const char * const from)
|
||||
g_string_free(message, TRUE);
|
||||
}
|
||||
|
||||
static void
|
||||
_notify_remind(void)
|
||||
void
|
||||
notify_remind(void)
|
||||
{
|
||||
gint unread = ui_unread();
|
||||
gint open = muc_invites_count();
|
||||
@@ -272,17 +272,4 @@ _notify(const char * const message, int timeout,
|
||||
|
||||
g_string_free(notify_command, TRUE);
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
notifier_init_module(void)
|
||||
{
|
||||
notifier_uninit = _notifier_uninit;
|
||||
notify_typing = _notify_typing;
|
||||
notify_invite = _notify_invite;
|
||||
notify_message = _notify_message;
|
||||
notify_room_message = _notify_room_message;
|
||||
notify_subscription = _notify_subscription;
|
||||
notify_remind = _notify_remind;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user