HP-UX SNAplus2 R7 NOF Programmer's Guide

NOF API Verbs
OPEN_FILE
typedef struct config_file
{
unsigned char requested_role; /* config file requested */
unsigned char role_supplied; /* config file returned */
unsigned char system_name[128]; /* computer name where file */
/* located */
unsigned char file_name[81]; /* file name */
} CONFIG_FILE;
3.85.2 Supplied Parameters
The application supplies the following parameters:
opcode
AP_OPEN_FILE
le_info.requested_role
The type of le to be opened. Possible values are:
AP_MASTER
Open the master copy of the domain conguration le. This value must be used if the application
intends to issue verbs that modify the conguration of domain resources.
AP_BACKUP
Open the master copy of the domain conguration le if available, otherwise a backup copy. This
value may be used if the application intends to issue only QUERY_* verbs; if it needs to modify the
conguration, it must use AP_MASTER, because it will not be able to obtain write access to a backup
conguration le.
AP_SNA_NET
Open the sna.net le on the master server.
AP_TP_LOAD_INFO
Open a connection to the le on the local machine that contains information about how to load transaction
programs (TPs).
3.85.3 Returned Parameters: Successful Execution
If the verb executes successfully, SNAplus2 returns the following parameters:
primary_rc
AP_OK
target_handle
Returned value for use on subsequent verbs directed to this le.
le_info.role_supplied
If requested_role was set to
AP_BACKUP, this parameter indicates whether the le handle returned is for the
master conguration le or a backup le. Possible values are:
AP_MASTER
Master conguration le.
AP_BACKUP
Backup conguration le.
327