source: trunk/third-party/libnatpmp/getgateway.h @ 10284

Last change on this file since 10284 was 10284, checked in by livings124, 12 years ago

update libnatpmp to 20100202

File size: 1.2 KB
Line 
1/* $Id: getgateway.h,v 1.4 2009/12/19 12:00:00 nanard Exp $ */
2/* libnatpmp
3 * Copyright (c) 2007, Thomas BERNARD <miniupnp@free.fr>
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
16#ifndef __GETGATEWAY_H__
17#define __GETGATEWAY_H__
18
19#ifdef WIN32
20#if !defined(_MSC_VER)
21#include <stdint.h>
22#else
23typedef unsigned long uint32_t;
24typedef unsigned short uint16_t;
25#endif
26#define in_addr_t uint32_t
27#endif
28#include "declspec.h"
29
30/* getdefaultgateway() :
31 * return value :
32 *    0 : success
33 *   -1 : failure    */
34LIBSPEC int getdefaultgateway(in_addr_t * addr);
35
36#endif
Note: See TracBrowser for help on using the repository browser.