Clean up the FTN functions a bit. There is not reason to check for
[mpls-ldp-portable.git] / common / mpls_ifmgr_impl.h
blob2e3c3fd98ab1a6ab7cae1856595a2c579f304421
2 /*
3 * Copyright (C) James R. Leu 2002
4 * jleu@mindspring.com
6 * This software is covered under the LGPL, for more
7 * info check out http://www.gnu.org/copyleft/lgpl.html
8 */
10 #ifndef _MPLS_IFMGR_IMPL_H_
11 #define _MPLS_IFMGR_IMPL_H_
13 #include "mpls_struct.h"
14 #include "ldp_struct.h"
15 #include "ldp_struct.h"
16 #include "mpls_handle_type.h"
19 * in: handle,cfg,callback
20 * return: mpls_ifmgr_handle
22 extern mpls_ifmgr_handle mpls_ifmgr_open(const mpls_instance_handle handle,
23 const mpls_cfg_handle cfg, ldp_ifmgr_callback callback);
26 * in: handle
28 extern void mpls_ifmgr_close(const mpls_ifmgr_handle handle);
31 * in: handle,name
32 * return: mpls_if_handle
34 extern mpls_if_handle mpls_ifmgr_open_if(const mpls_ifmgr_handle,
35 const char *name);
38 * in: handle,iff
40 extern void mpls_ifmgr_close_if(const mpls_ifmgr_handle, const mpls_if_handle iff);
43 * in: handle,iff,addr,mask,flags
44 * out: addr,mask,flags
45 * return: mpls_return_enum
47 extern mpls_return_enum mpls_ifmgr_get_address(const mpls_ifmgr_handle,
48 const mpls_if_handle iff, mpls_inet_addr * addr, mpls_inet_addr * mask,
49 uint32_t * flags);
52 * in: handle,iff,mtu
53 * out: mtu
54 * return: mpls_return_enum
56 extern mpls_return_enum mpls_ifmgr_get_mtu(const mpls_ifmgr_handle,
57 const mpls_if_handle iff, int *mtu);
60 * in: handle, handle, addr
61 * return: mpls_return_enum
63 extern mpls_return_enum mpls_ifmgr_getfirst_address(const mpls_ifmgr_handle,
64 mpls_if_handle*, mpls_inet_addr*);
67 * in: handle, handle, addr
68 * return: mpls_return_enum
70 extern mpls_return_enum mpls_ifmgr_getnext_address(const mpls_ifmgr_handle,
71 mpls_if_handle*, mpls_inet_addr*);
73 #endif