SHARE
TWEET

Untitled

a guest Aug 20th, 2015 19 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/libpurple/protocols/jabber/jabber.c b/libpurple/protocols/jabber/jabber.c
  2. --- a/libpurple/protocols/jabber/jabber.c
  3. +++ b/libpurple/protocols/jabber/jabber.c
  4. @@ -3980,10 +3980,15 @@ static gboolean xmpp_uri_handler(const c
  5.         }
  6.  
  7.         return FALSE;
  8.  }
  9.  
  10. +static void signed_on_cb(PurpleConnection *gc, void *data)
  11. +{
  12. +       printf("Callback called\n");
  13. +}
  14. +
  15.  static void
  16.  jabber_do_init(void)
  17.  {
  18.         GHashTable *ui_info = purple_core_get_ui_info();
  19.         const gchar *ui_type;
  20. @@ -4181,10 +4186,13 @@ static void jabber_init_protocol(PurpleP
  21.         purple_signal_connect(protocol, "jabber-register-namespace-watcher",
  22.                         protocol, PURPLE_CALLBACK(jabber_iq_signal_register), NULL);
  23.         purple_signal_connect(protocol, "jabber-unregister-namespace-watcher",
  24.                         protocol, PURPLE_CALLBACK(jabber_iq_signal_unregister), NULL);
  25.  
  26. +       purple_signal_connect(purple_connections_get_handle(), "signed-on",
  27. +                       protocol, PURPLE_CALLBACK(signed_on_cb), NULL);
  28. +
  29.  
  30.         purple_signal_register(protocol, "jabber-receiving-xmlnode",
  31.                         purple_marshal_VOID__POINTER_POINTER, G_TYPE_NONE, 2,
  32.                         PURPLE_TYPE_CONNECTION,
  33.                         G_TYPE_POINTER); /* pointer to a PurpleXmlNode* */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top