3 * Copyright (C) James R. Leu 2001
6 * This software is covered under the LGPL, for more
7 * info check out http://www.gnu.org/copyleft/lgpl.html
10 #ifndef _LDP_HOP_LIST_H_
11 #define _LDP_HOP_LIST_H_
13 #include "ldp_struct.h"
15 extern ldp_hop_list
*ldp_hop_list_create();
16 extern void ldp_hop_list_delete(ldp_hop_list
* h
);
17 extern uint32_t _ldp_hop_list_get_next_index();
19 extern mpls_return_enum
ldp_hop_list_find_hop_index(ldp_hop_list
* hl
,
20 uint32_t index
, ldp_hop
** hop
);
22 extern mpls_return_enum
ldp_hop_list_add_hop(ldp_hop_list
* hl
, ldp_hop
* e
);
23 extern mpls_return_enum
ldp_hop_list_del_hop(ldp_hop_list
* hl
, ldp_hop
* e
);
25 extern mpls_return_enum
_ldp_hop_list_add_tunnel(ldp_hop_list
* h
,
28 extern mpls_return_enum
_ldp_hop_list_del_tunnel(ldp_hop_list
* h
);