diff libpurple/protocols/jabber/jutil.h @ 27023:e8795ced8c9b

Add two helper functions useful for matching the 'from' attribute on packets to either our server or our account.
author Paul Aurich <paul@darkrain42.org>
date Sat, 23 May 2009 17:42:34 +0000
parents 5767b7698c73
children b0f0579f5f22
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jutil.h	Sat May 23 07:08:00 2009 +0000
+++ b/libpurple/protocols/jabber/jutil.h	Sat May 23 17:42:34 2009 +0000
@@ -36,6 +36,12 @@
 
 const char *jabber_normalize(const PurpleAccount *account, const char *in);
 
+/* Returns true if JID is the bare JID of our server. */
+gboolean jabber_is_own_server(JabberStream *js, const char *jid);
+
+/* Returns true if JID is the bare JID of our account. */
+gboolean jabber_is_own_account(JabberStream *js, const char *jid);
+
 gboolean jabber_nodeprep_validate(const char *);
 gboolean jabber_nameprep_validate(const char *);
 gboolean jabber_resourceprep_validate(const char *);