Manual
Chapter 7
Scanner Management
7-4
General Form
This section gives details for each of the six types of MR, but first we
present a program skeleton, where command stands for the defined
constant that names the desired command:
QMR mgmt;
unsigned confirm_stat;
. . .
mgmt.qmr_len = . . . /* for scan list only */
mgmt.qmr_data[0] = . . . /* except autoconf & link */status
confirm_stat = mr_wait(command, &mgmt);
if ( !confirm_stat ) {
/* successful completion */
}
else {
/* unsuccessful completion */
}
mr_print(stderr, command, &mgmt); /* if display wanted */
The mr_print call shown in the program skeleton above displays the
results of the MR on the screen. Such a call would probably be used only
when operator intervention might be appropriate.