![Aim AFDX / ARINC 664 Скачать руководство пользователя страница 41](http://html1.mh-extra.com/html/aim/afdx-arinc-664/afdx-arinc-664_reference-manual_2871730041.webp)
Reference Manual AFDX / ARINC 664 Application Interface Library
29
Section 4 – Function Reference: Library Administration Functions
Output:
T
T
Y
Y
_
_
R
R
E
E
S
S
O
O
U
U
R
R
C
C
E
E
_
_
L
L
I
I
S
S
T
T
_
_
E
E
L
L
E
E
M
M
E
E
N
N
T
T
**ppx_ResourceList
Pointer to a pointer of list of resources. The list is a single pointered list, with the last
element indexed to NULL. This means, the first entry in one list element is the
pointer to the next list element. The last element is marked by a NULL pointer at this
entry.
The memory of the list is allocated by the Application Interface Library. It is under
control of the application to free or release this memory.
#define MAX_STRING_1 20
typedef struct _
resource
_list_element
{
struct
_
resource
_list_element *px_Next;
AiUInt32
ul_ResourceID;
AiUInt32
ul_ResourceType;
AiChar
ac_ResourceInfo[MAX_STRING_1];
const AiUInt32 ul_StructId;
}TY_RESOURCE_LIST_ELEMENT;
TY_RESOURCE_LIST_ELEMENT *px_Next
Pointer to the next list element. If this pointer is a NULL pointer this is the last element in the
list.
AiUInt32 ul_ResourceID
A number to the Resource which is unique over a complete server.
AiUInt32 ul_ResourceType
Describes the type of the following information:
Value
Type
RESOURCETYPE_BOARD Board
Information
RESOURCETYPE_PORT Port
Information
AiChar ac_ResourceInfo[]
String which can give some more information about this resource.
For example, the API-FDX-2 V2 board, this string will contain the name “ API-FDX-2 V2”. For
the ports of this board this string must contain “FDX Port X”, where X represents the number of
the port (1..4).
c
c
o
o
n
n
s
s
t
t
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
S
S
t
t
r
r
u
u
c
c
t
t
I
I
d
d
Element, which identifies the type of this structure (see
FdxCmdFreeMemory
)
Return Value
Returns FDX_OK on success or a negative error code on error.
Error Codes: FDX_ERR