00001 /* 00002 * $Id$ 00003 * 00004 * eXtended JABber module 00005 * 00006 * 00007 * Copyright (C) 2001-2003 FhG Fokus 00008 * 00009 * This file is part of ser, a free SIP server. 00010 * 00011 * ser is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation; either version 2 of the License, or 00014 * (at your option) any later version 00015 * 00016 * For a license to use the ser software under conditions 00017 * other than those described here, or to purchase support for this 00018 * software, please contact iptel.org by e-mail at the following addresses: 00019 * info@iptel.org 00020 * 00021 * ser is distributed in the hope that it will be useful, 00022 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00023 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00024 * GNU General Public License for more details. 00025 * 00026 * You should have received a copy of the GNU General Public License 00027 * along with this program; if not, write to the Free Software 00028 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00029 */ 00030 00031 00032 #ifndef _XJAB_JCONF_H_ 00033 #define _XHAB_JCONF_H_ 00034 00035 #include "../../str.h" 00036 00037 #define XJ_JCONF_NULL 0 00038 #define XJ_JCONF_READY 1 00039 #define XJ_JCONF_WAITING 2 00040 #define XJ_JCONF_AUTH 4 00041 00042 /********** ***/ 00043 00044 typedef struct _xj_jconf 00045 { 00046 int jcid; 00047 int status; 00048 str uri; 00049 str room; 00050 str server; 00051 str nick; 00052 str passwd; 00053 } t_xj_jconf, *xj_jconf; 00054 00055 xj_jconf xj_jconf_new(str *u); 00056 int xj_jconf_init_sip(xj_jconf jcf, str *sid, char dl); 00057 int xj_jconf_init_jab(xj_jconf jcf); 00058 00059 int xj_jconf_set_status(xj_jconf jcf, int s); 00060 00061 int xj_jconf_cmp(void *a, void *b); 00062 int xj_jconf_free(xj_jconf jcf); 00063 int xj_jconf_check_addr(str *addr, char dl); 00064 00065 #endif 00066
1.7.1