00001 #ifndef foorlistfoo 00002 #define foorlistfoo 00003 00004 /* $Id: rlist.h 872 2005-10-26 01:21:30Z lennart $ */ 00005 00006 /*** 00007 This file is part of avahi. 00008 00009 avahi is free software; you can redistribute it and/or modify it 00010 under the terms of the GNU Lesser General Public License as 00011 published by the Free Software Foundation; either version 2.1 of the 00012 License, or (at your option) any later version. 00013 00014 avahi is distributed in the hope that it will be useful, but WITHOUT 00015 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00016 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General 00017 Public License for more details. 00018 00019 You should have received a copy of the GNU Lesser General Public 00020 License along with avahi; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00022 USA. 00023 ***/ 00024 00027 #include "llist.h" 00028 00029 AVAHI_C_DECL_BEGIN 00030 00032 typedef struct AvahiRList AvahiRList; 00033 00035 struct AvahiRList { 00036 AVAHI_LLIST_FIELDS(AvahiRList, rlist); 00037 void *data; 00038 }; 00039 00041 AvahiRList* avahi_rlist_prepend(AvahiRList *r, void *data); 00042 00044 AvahiRList* avahi_rlist_remove(AvahiRList *r, void *data); 00045 00047 AvahiRList* avahi_rlist_remove_by_link(AvahiRList *r, AvahiRList *n); 00048 00049 AVAHI_C_DECL_END 00050 00051 #endif