3 * Copyright (C) James R. Leu 2002
6 * This software is covered under the LGPL, for more
7 * info check out http://www.gnu.org/copyleft/lgpl.html
10 #ifndef _LSR_GLOBAL_H_
11 #define _LSR_GLOBAL_H_
13 #include "lsr_struct.h"
15 extern lsr_global
*lsr_global_create(mpls_instance_handle data
);
16 extern mpls_return_enum
lsr_global_delete(lsr_global
* g
);
17 extern mpls_return_enum
lsr_global_startup(lsr_global
* g
);
18 extern mpls_return_enum
lsr_global_shutdown(lsr_global
* g
);
20 extern mpls_return_enum
lsr_global_find_outsegment_index(lsr_global
* g
,
21 uint32_t index
, lsr_outsegment
**);
22 extern mpls_return_enum
_lsr_global_add_outsegment(lsr_global
* g
,
24 extern mpls_return_enum
_lsr_global_del_outsegment(lsr_global
* g
,
27 extern mpls_return_enum
lsr_global_find_insegment_index(lsr_global
* g
,
28 uint32_t index
, lsr_insegment
**);
29 extern mpls_return_enum
_lsr_global_add_insegment(lsr_global
* g
,
31 extern mpls_return_enum
_lsr_global_del_insegment(lsr_global
* g
,
34 extern mpls_return_enum
lsr_global_find_xconnect_index(lsr_global
* g
,
35 uint32_t index
, lsr_xconnect
**);
36 extern mpls_return_enum
lsr_global_find_xconnect_index2(lsr_global
* g
,
37 uint32_t in
, uint32_t out
, lsr_xconnect
**);
38 extern mpls_return_enum
_lsr_global_add_xconnect(lsr_global
* g
,
40 extern mpls_return_enum
_lsr_global_del_xconnect(lsr_global
* g
,
43 extern mpls_return_enum
lsr_global_find_if_index(lsr_global
* g
,
44 uint32_t index
, lsr_if
**);
45 extern mpls_return_enum
_lsr_global_add_if(lsr_global
* g
, lsr_if
* i
);
46 extern mpls_return_enum
_lsr_global_del_if(lsr_global
* g
, lsr_if
* i
);
47 extern lsr_if
* lsr_global_find_if_ifhandle(lsr_global
* g
, mpls_if_handle ifhandle
);
49 extern mpls_return_enum
lsr_global_find_ftn_index(lsr_global
*,
50 uint32_t, lsr_ftn
**);
51 extern mpls_return_enum
lsr_global_find_ftn_index2(lsr_global
*,
52 lsr_ftn
*, lsr_ftn
**);
53 extern mpls_return_enum
_lsr_global_add_ftn(lsr_global
*,
55 extern mpls_return_enum
_lsr_global_del_ftn(lsr_global
*,