root/trunk/src/jid.h

Revision 680, 1.3 kB (checked in by jajcus, 3 years ago)

- dates in the copyright header updated

Line 
1 /* $Id: jid.h,v 1.6 2004/04/13 17:44:07 jajcus Exp $ */
2
3 /*
4  *  (C) Copyright 2002-2006 Jacek Konieczny [jajcus(a)jajcus,net]
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License Version 2 as
8  *  published by the Free Software Foundation.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program; if not, write to the Free Software
17  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19
20 #ifndef jid_h
21 #define jid_h
22
23 int jid_is_my(const char *jid);
24 int jid_is_me(const char *jid);
25 int jid_has_uin(const char *jid);
26 int jid_get_uin(const char *jid);
27 const char *jid_get_resource(const char *jid);
28
29 /* Functions below return strings which must be freed */
30
31 /* returns normalized (all parts stringpreped) jid. Bare jid (no resource) is returned if full=0 */
32 char * jid_normalized(const char *jid,int full);
33 char * jid_my_registered();
34 char * jid_build(long unsigned int uin);
35 char * jid_build_full(long unsigned int uin);
36
37 #endif
Note: See TracBrowser for help on using the browser.