Added comments to clarify the relationships
[mpls-ldp-portable.git] / ldp / ldp_resource.h
blob7bd2b8a60f483909072b0bb6bc5b79328521dc37
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_RESOURCE_H_
11 #define _LDP_RESOURCE_H_
13 #include "ldp_struct.h"
15 extern ldp_resource *ldp_resource_create();
16 extern void ldp_resource_delete(ldp_resource * r);
17 extern uint32_t _ldp_resource_get_next_index();
19 extern mpls_return_enum _ldp_resource_add_tunnel(ldp_resource * r,
21 ldp_tunnel * t);
22 extern mpls_return_enum _ldp_resource_del_tunnel(ldp_resource * r);
24 extern mpls_bool ldp_resource_in_use(ldp_resource * r);
26 #endif