File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / miniupnpd / ifacewatcher.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 00:32:35 2013 UTC (11 years, 5 months ago) by misho
Branches: miniupnpd, elwix, MAIN
CVS tags: v1_8p0, v1_8, HEAD
1.8

    1: /* $Id: ifacewatcher.h,v 1.1.1.2 2013/07/22 00:32:35 misho Exp $ */
    2: /* MiniUPnP project
    3:  * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
    4:  * (c) 2006-2009 Thomas Bernard
    5:  *
    6:  * ifacewatcher.h
    7:  *
    8:  * This file implements dynamic serving of new network interfaces
    9:  * which weren't available during daemon start. It also takes care
   10:  * of interfaces which become unavailable.
   11:  *
   12:  * Copyright (c) 2011, Alexey Osipov <simba@lerlan.ru>
   13:  * All rights reserved.
   14:  *
   15:  * Redistribution and use in source and binary forms, with or without
   16:  * modification, are permitted provided that the following conditions are met:
   17:  *
   18:  *    * Redistributions of source code must retain the above copyright notice,
   19:  *      this list of conditions and the following disclaimer.
   20:  *    * Redistributions in binary form must reproduce the above copyright notice,
   21:  *      this list of conditions and the following disclaimer in the documentation
   22:  *      and/or other materials provided with the distribution.
   23:  *    * The name of the author may not be used to endorse or promote products
   24:  *      derived from this software without specific prior written permission.
   25:  *
   26:  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   27:  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   28:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   29:  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   30:  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   31:  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   32:  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   33:  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   34:  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   35:  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   36:  * POSSIBILITY OF SUCH DAMAGE. */
   37: 
   38: #ifndef IFACEWATCHER_H_INCLUDED
   39: #define IFACEWATCHER_H_INCLUDED
   40: 
   41: #include "config.h"
   42: 
   43: #ifdef USE_IFACEWATCHER
   44: int OpenAndConfInterfaceWatchSocket(void);
   45: void ProcessInterfaceWatchNotify(int s);
   46: #endif
   47: 
   48: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>