00001 /* 00002 * $Id$ 00003 * 00004 * Copyright (C) 2007-2008 1&1 Internet AG 00005 * 00006 * This file is part of SIP-router, a free SIP server. 00007 * 00008 * SIP-router 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 * SIP-router 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 00030 #ifndef CR_MAP_H 00031 #define CR_MAP_H 00032 00033 #include "../../str.h" 00034 00035 00039 struct name_map_t { 00040 str name; 00041 int id; 00042 }; 00043 00044 00045 00046 00056 int map_name2id(struct name_map_t * map, int size, const str * name); 00057 00058 00068 str * map_id2name(struct name_map_t * map, int size, int id); 00069 00070 00076 int compare_name_map(const void *v1, const void *v2); 00077 00078 00079 #endif
1.7.1