00001 /* 00002 * $Id$ 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 "../../str.h" 00040 #include "usrloc.h" 00041 #include "udomain.h" 00042 00046 typedef struct dlist { 00047 str name; 00048 udomain_t* d; 00049 struct dlist* next; 00050 } dlist_t; 00051 00053 extern dlist_t* root; 00054 00055 00066 int register_udomain(const char* _n, udomain_t** _d); 00067 00068 00072 void free_all_udomains(void); 00073 00074 00079 void print_all_udomains(FILE* _f); 00080 00081 00086 int synchronize_all_udomains(int istart, int istep); 00087 00088 00121 int get_all_ucontacts(void *buf, int len, unsigned int flags, 00122 unsigned int part_idx, unsigned int part_max); 00123 00124 00132 int get_udomain(const char* _n, udomain_t** _d); 00133 00138 unsigned long get_number_of_users(void); 00139 00140 00147 int find_domain(str* _d, udomain_t** _p); 00148 00149 00150 #endif
1.7.1