Wed, 05 Sep 2007 22:32:14 +0000
propagate from branch 'im.pidgin.pidgin' (head 0853a065e5c3fcb5a6bb13fc23bec44ecf510ecd)
to branch 'im.pidgin.soc.2007.xmpp' (head b273d0db2bdd4a80d0fb22d32fe186e1f496933f)
| 7014 | 1 | /** |
| 2 | * @file jutil.h utility functions | |
| 3 | * | |
| 15884 | 4 | * purple |
| 7014 | 5 | * |
| 6 | * Copyright (C) 2003 Nathan Walp <faceprint@faceprint.com> | |
| 7 | * | |
| 8 | * This program is free software; you can redistribute it and/or modify | |
| 9 | * it under the terms of the GNU General Public License as published by | |
| 10 | * the Free Software Foundation; either version 2 of the License, or | |
| 11 | * (at your option) any later version. | |
| 12 | * | |
| 13 | * This program is distributed in the hope that it will be useful, | |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 16 | * GNU General Public License for more details. | |
| 17 | * | |
| 18 | * You should have received a copy of the GNU General Public License | |
| 19 | * along with this program; if not, write to the Free Software | |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 21 | */ | |
| 15884 | 22 | #ifndef _PURPLE_JABBER_JUTIL_H_ |
| 23 | #define _PURPLE_JABBER_JUTIL_H_ | |
| 7014 | 24 | |
|
17769
69d98a4da006
applied patch for supporting XEP-0199: XMPP Ping
Andreas Monitzer <am@adiumx.com>
parents:
15952
diff
changeset
|
25 | #include "account.h" |
|
69d98a4da006
applied patch for supporting XEP-0199: XMPP Ping
Andreas Monitzer <am@adiumx.com>
parents:
15952
diff
changeset
|
26 | |
| 7014 | 27 | typedef struct _JabberID { |
| 28 | char *node; | |
| 29 | char *domain; | |
| 30 | char *resource; | |
| 31 | } JabberID; | |
| 32 | ||
| 33 | JabberID* jabber_id_new(const char *str); | |
| 34 | void jabber_id_free(JabberID *jid); | |
| 35 | ||
| 7306 | 36 | char *jabber_get_resource(const char *jid); |
| 7014 | 37 | char *jabber_get_bare_jid(const char *jid); |
| 38 | ||
| 15884 | 39 | const char *jabber_normalize(const PurpleAccount *account, const char *in); |
| 7261 | 40 | |
| 7310 | 41 | gboolean jabber_nodeprep_validate(const char *); |
| 42 | gboolean jabber_nameprep_validate(const char *); | |
| 43 | gboolean jabber_resourceprep_validate(const char *); | |
| 44 | ||
| 15884 | 45 | PurpleConversation *jabber_find_unnormalized_conv(const char *name, PurpleAccount *account); |
| 8043 | 46 | |
| 15884 | 47 | #endif /* _PURPLE_JABBER_JUTIL_H_ */ |