Re-work iff, addr, fec, nexthop life cycle.
[mpls-ldp-portable.git] / lsr / lsr_outsegment.h
blob5e1bc980b7ac52a97a88ec78efc034c00e98e310
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 _LSR_OUTSEGMENT_H_
11 #define _LSR_OUTSEGMENT_H_
13 #include "lsr_struct.h"
15 extern lsr_outsegment *lsr_outsegment_create();
16 extern void lsr_outsegment_delete(lsr_outsegment * i);
17 extern uint32_t _lsr_outsegment_get_next_index();
18 extern mpls_return_enum lsr_outsegment_add_xconnect(lsr_outsegment *out, lsr_xconnect *x);
19 extern mpls_return_enum lsr_outsegment_del_xconnect(lsr_outsegment *out, lsr_xconnect *x);
20 extern mpls_return_enum _lsr_outsegment_add_if(lsr_outsegment * o, lsr_if * iff);
21 extern mpls_return_enum _lsr_outsegment_del_if(lsr_outsegment * o);
22 extern mpls_return_enum lsr_outsegment_add_ftn(lsr_outsegment *out, lsr_ftn *x);
23 extern mpls_return_enum lsr_outsegment_del_ftn(lsr_outsegment *out, lsr_ftn *x);
25 #endif