26
Reference Manual AFDX / ARINC 664 Application Interface Library
Section 4 – Function Reference: Library Administration Functions
4
4
.
.
1
1
.
.
1
1
.
.
7
7
F
F
d
d
x
x
I
I
n
n
s
s
t
t
a
a
l
l
l
l
S
S
e
e
r
r
v
v
e
e
r
r
C
C
o
o
n
n
f
f
i
i
g
g
C
C
a
a
l
l
l
l
b
b
a
a
c
c
k
k
Prototype:
AiReturn FdxInstallServerConfigCallback (
const AiChar *ac_SrvName,
FDX_SERVER_CALLBACK_FUNC
*f_CallbackFunction);
Driver Command:
-
Purpose:
This function provides mechanism to notify PnP device changes. For example adding or
removing fdXTap at runtime requires an update of the resourcelist.
Note:
It is recommended, that in case of removal of a device no action to the device
shall be active.
Input:
AiChar ac_SrvName
Server name (e.g. “\\SW-PC-06” or “192.168.0.119”). The name ‘local’ indicates that
the server is the machine the interface library is running.
Note:
For this version this function can only be used on a local server
F
F
D
D
X
X
_
_
S
S
E
E
R
R
V
V
E
E
R
R
_
_
C
C
A
A
L
L
L
L
B
B
A
A
C
C
K
K
_
_
F
F
U
U
N
N
C
C
*
*
f
f
_
_
C
C
a
a
l
l
l
l
b
b
a
a
c
c
k
k
F
F
u
u
n
n
c
c
t
t
i
i
o
o
n
n
Function pointer to a function of the application which shall be called when a device
was added or removed to/from the system.
Prototype:
AiReturn FDX_SERVER_CALLBACK_FUNC (const AiChar ac_SrvName,
const AiUInt32 ul_ChangeType,
TY_RESOURCE_LIST_ELEMENT
*px_ResourceList);
AiChar ac_SrvName
Name of the Server on which a PnP event occurred
AiUInt32 ul_ChangeType
Indicates if a device was added or removed.
Value
Description
FDX_RESOURCE_CHANGE_DELETE device was removed
FDX_RESOURCE_CHANGE_ARRIVE device was added
TY_RESOURCE_LIST_ELEMENT *px_ResourceList
Pointer of a list of resources as described for the function FdxQueryServerConfig. This list
contains the resources of the added/removed device. In case of removing a device, the struct
contains only the ResourceId of the related resources.