/* * Copyright (C) James R. Leu 2000 * jleu@mindspring.com * * This software is covered under the LGPL, for more * info check out http://www.gnu.org/copyleft/lgpl.html */ #ifndef _LDP_MPLS_IMPL_H_ #define _LDP_MPLS_IMPL_H_ #include "ldp_struct.h" /* * in: handle * return: ldp_bool */ extern ldp_bool ldp_mpls_handle_verify(ldp_mpls_handle handle); /* * in: handle * return: ldp_mpls_handle */ extern ldp_mpls_handle ldp_mpls_open(ldp_instance_handle handle); /* * in: handle */ extern void ldp_mpls_close(ldp_mpls_handle handle); /* * in: handle, o * return: ldp_return_enum */ extern ldp_return_enum ldp_mpls_outlabel_add(ldp_mpls_handle handle, ldp_outlabel* o); /* * in: handle, o */ extern void ldp_mpls_outlabel_del(ldp_mpls_handle handle, ldp_outlabel* o); /* * in: handle, i * return: ldp_return_enum */ extern ldp_return_enum ldp_mpls_inlabel_add(ldp_mpls_handle handle, ldp_inlabel* i); /* * in: handle, i */ extern void ldp_mpls_inlabel_del(ldp_mpls_handle handle, ldp_inlabel* i); /* * in: handle, i, o * return: ldp_return_enum */ extern ldp_return_enum ldp_mpls_in2out_add(ldp_mpls_handle handle, ldp_inlabel* i,ldp_outlabel* o); /* * in: handle, i, o */ extern void ldp_mpls_in2out_del(ldp_mpls_handle handle, ldp_inlabel* i,ldp_outlabel* o); /* * in: handle, f, o * return: ldp_return_enum */ extern ldp_return_enum ldp_mpls_fec2out_add(ldp_mpls_handle handle, ldp_fec* f, ldp_outlabel* o); /* * in: handle, f, o */ extern void ldp_mpls_fec2out_del(ldp_mpls_handle handle, ldp_fec* f, ldp_outlabel* o); #endif