Changed the relationship between entity-adj-sessios (again)
[mpls-ldp-portable.git] / common / mpls_mpls_impl.h
blob332cbe85b82a739b04c061573d02acbb5c961cb7
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_MPLS_IMPL_H_
11 #define _MPLS_MPLS_IMPL_H_
13 #include "mpls_struct.h"
15 struct ldp_inlabel;
16 struct ldp_outlabel;
19 * in: handle
20 * return: mpls_bool
22 extern mpls_bool mpls_mpls_handle_verify(mpls_mpls_handle handle);
25 * in: handle
26 * return: mpls_mpls_handle
28 extern mpls_mpls_handle mpls_mpls_open(mpls_instance_handle handle);
31 * in: handle
33 extern void mpls_mpls_close(mpls_mpls_handle handle);
36 * in: handle, o
37 * return: mpls_return_enum
39 extern mpls_return_enum mpls_mpls_outsegment_add(mpls_mpls_handle handle,
40 struct mpls_outsegment * o);
43 * in: handle, o
45 extern void mpls_mpls_outsegment_del(mpls_mpls_handle handle, struct mpls_outsegment * o);
48 * in: handle, i
49 * return: mpls_return_enum
51 extern mpls_return_enum mpls_mpls_insegment_add(mpls_mpls_handle handle,
52 struct mpls_insegment * i);
55 * in: handle, i
57 extern void mpls_mpls_insegment_del(mpls_mpls_handle handle, struct mpls_insegment * i);
60 * in: handle, i, o
61 * return: mpls_return_enum
63 extern mpls_return_enum mpls_mpls_xconnect_add(mpls_mpls_handle handle,
64 struct mpls_insegment * i, struct mpls_outsegment * o);
67 * in: handle, i, o
69 extern void mpls_mpls_xconnect_del(mpls_mpls_handle handle,
70 struct mpls_insegment * i, struct mpls_outsegment * o);
73 * in: handle, f, o
74 * return: mpls_return_enum
76 extern mpls_return_enum mpls_mpls_fec2out_add(mpls_mpls_handle handle,
77 mpls_fec * f, struct mpls_outsegment * o);
80 * in: handle, f, o
82 extern void mpls_mpls_fec2out_del(mpls_mpls_handle handle,
83 mpls_fec * f, struct mpls_outsegment * o);
85 extern mpls_return_enum mpls_mpls_get_label_space_range(mpls_mpls_handle handle,
86 mpls_range *range);
88 #endif