urlmap.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of the Sofia-SIP package
00003  *
00004  * Copyright (C) 2005 Nokia Corporation.
00005  *
00006  * Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public License
00010  * as published by the Free Software Foundation; either version 2.1 of
00011  * the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00021  * 02110-1301 USA
00022  *
00023  */
00024 
00025 #ifndef URLMAP_H
00026 
00027 #define URLMAP_H
00028 
00038 #ifndef URL_H
00039 #include <sofia-sip/url.h>
00040 #endif
00041 
00042 SOFIA_BEGIN_DECLS
00043 
00045 typedef struct _UrlMap UrlMap;
00046 
00047 struct _UrlMap {
00048   UrlMap        *um_left, *um_right, *um_dad;
00049   unsigned       um_black:1;
00050   unsigned       um_inserted:1;
00051   unsigned       :0;
00052   url_t          um_url[1];
00053 };
00054 
00055 UrlMap *url_map_new(su_home_t *home, url_string_t const *url, unsigned size);
00056 
00057 int url_map_insert(UrlMap **tree, UrlMap * um, UrlMap **return_old);
00058 void url_map_remove(UrlMap **tree, UrlMap *ume);
00059 
00060 UrlMap *url_map_find(UrlMap *tree, url_string_t const *u, int relative);
00061 
00062 
00063 SOFIA_END_DECLS
00064 #endif /* !defined URLMAP_H */
00065 

Sofia-SIP 1.12.6 - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.