White space cleanup and logic clearification, no functional
[mpls-ldp-portable.git] / ldp / ldp_hop_list.h
blob915b2b349b1114604da6d298445b5903ad40d5f5
2 /*
3 * Copyright (C) James R. Leu 2001
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_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,
27 ldp_tunnel * t);
28 extern mpls_return_enum _ldp_hop_list_del_tunnel(ldp_hop_list * h);
30 #endif