White space cleanup and logic clearification, no functional
[mpls-ldp-portable.git] / ldp / ldp_inlabel.h
blob0b695f447aa125fe26cc4958b2e4b4c2de04019c
2 /*
3 * Copyright (C) James R. Leu 2000
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 _LDP_INLABEL_H_
11 #define _LDP_INLABEL_H_
13 #include "ldp_struct.h"
15 extern ldp_inlabel *ldp_inlabel_create();
16 extern void ldp_inlabel_delete(ldp_inlabel * i);
18 extern ldp_inlabel *ldp_inlabel_create_complete(ldp_global * g, ldp_session * s,
19 ldp_attr * a);
20 extern void ldp_inlabel_delete_complete(ldp_global * g, ldp_inlabel * in,
21 ldp_session * s, ldp_attr * a);
23 extern mpls_return_enum ldp_inlabel_add_outlabel(ldp_global *g,
24 ldp_inlabel *i, ldp_outlabel *o);
25 extern mpls_return_enum ldp_inlabel_del_outlabel(ldp_global *g,
26 ldp_inlabel *i);
28 extern mpls_return_enum _ldp_inlabel_add_session(ldp_inlabel * i,
29 ldp_session * s);
30 extern void _ldp_inlabel_del_session(ldp_inlabel * i, ldp_session * s);
32 extern uint32_t _ldp_inlabel_get_next_index();
34 extern mpls_return_enum _ldp_inlabel_add_attr(ldp_inlabel * i, ldp_attr * a);
35 extern void _ldp_inlabel_del_attr(ldp_inlabel * i, ldp_attr * a);
37 #endif