Don't allow the user to delete a fec that still has nexthops
[mpls-ldp-portable.git] / common / mpls_ifmgr_impl.h
blobcbaeffae578d9da872849d17f7e28fc9c0d9b6d1
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 "mpls_handle_type.h"
17 * in: handle,cfg
18 * return: mpls_ifmgr_handle
20 extern mpls_ifmgr_handle mpls_ifmgr_open(const mpls_instance_handle handle,
21 const mpls_cfg_handle cfg);
24 * in: handle
26 extern void mpls_ifmgr_close(const mpls_ifmgr_handle handle);
29 * in: handle,iff,mtu
30 * out: mtu
31 * return: mpls_return_enum
33 extern mpls_return_enum mpls_ifmgr_get_mtu(const mpls_ifmgr_handle,
34 const mpls_if_handle iff, int *mtu);
37 * in: handle,iff,name,size
38 * out: name
39 * return: mpls_return_enum
41 extern mpls_return_enum mpls_ifmgr_get_name(const mpls_ifmgr_handle,
42 const mpls_if_handle iff, char *name, int len);
45 * in: handle, handle, addr
46 * return: mpls_return_enum
48 extern mpls_return_enum mpls_ifmgr_getfirst_address(const mpls_ifmgr_handle,
49 mpls_if_handle*, mpls_inet_addr*);
52 * in: handle, handle, addr
53 * return: mpls_return_enum
55 extern mpls_return_enum mpls_ifmgr_getnext_address(const mpls_ifmgr_handle,
56 mpls_if_handle*, mpls_inet_addr*);
58 #endif