00001 /* 00002 * $Id: dlist.h 5160 2008-11-03 17:51:22Z henningw $ 00003 * 00004 * Copyright (C) 2001-2003 FhG Fokus 00005 * 00006 * This file is part of Kamailio, a free SIP server. 00007 * 00008 * Kamailio is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version 00012 * 00013 * Kamailio is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 * 00022 * History: 00023 * ======== 00024 * 2006-11-28 Added get_number_of_users() (Jeffrey Magder - SOMA Networks) 00025 * 2007-09-12 added partitioning support for fetching all ul contacts 00026 * (bogdan) 00027 */ 00028 00035 #ifndef DLIST_H 00036 #define DLIST_H 00037 00038 #include <stdio.h> 00039 #include "udomain.h" 00040 #include "../../str.h" 00041 #include "../usrloc/usrloc.h" 00042 00043 00047 struct domain_list_item { 00048 str name; 00049 udomain_t domain; 00050 struct domain_list_item*next; 00051 }; 00052 00053 00057 void free_all_udomains(void); 00058 00059 00064 int synchronize_all_udomains(void); 00065 00070 unsigned long get_number_of_users(void); 00071 00072 00083 int register_udomain(const char* _n, udomain_t** _d); 00084 00117 int get_all_ucontacts(void *, int, unsigned int, 00118 unsigned int part_idx, unsigned int part_max); 00119 00126 int find_domain(str* _d, udomain_t** _p); 00127 00128 00129 #endif
1.7.1