Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide
_SUBSYS^DEF
A-120
109759—Distributed Systems Network Management (DSNM) Subsystem Interface
Development Guide
DSNM Library Services
_SUBSYS^DEF
_SUBSYS^DEF is a template for a subsystem configuration structure, filled by the
_ADD^SUBSYS procedure with subsystem and object-type configuration data.
Declare an extended pointer to a _SUBSYS^DEF-defined subsystem configuration
structure in globals for each subsystem your I process handles.
_ADD^SUBSYS must be called in your _STARTUP procedure for each subsystem your
I process handles. _ADD^SUBSYS allocates the memory for, fills in, and returns the
address of the subsystem configuration structure.
The definition of the _SUBSYS^DEF-defined structure is:
STRUCT _SUBSYS^DEF (*);
BEGIN
STRUCT SUBSYS^CONFIG (ZDSN^DDL^SUBSYS^CONFIG^DEF);
INT OBJTYPES;
STRUCT OBJTYPE^CONFIG (ZDSN^DDL^OBJTYPE^CONFIG^DEF)
[0:-1];
END;
_SUBSYS^DEF fills in one OBJTYPE^CONFIG array for each object type configured
in the subsystem, and sets OBJTYPES to the number of object-type configuration
entries in the subsystem.
Definitions for the two structures contained within the _SUBSYS^DEF-defined
structure are as follows:
DEFINITION ZDSN-DDL-SUBSYS-CONFIG.
02 Z-SUBSYS TYPE ZDSN-DDL-SUBSYS.
02 Z-RANK TYPE ZSPI-DDL-INT.
02 Z-DEFAULT-OBJTYPE TYPE ZDSN-DDL-OBJTYPE.
02 Z-DEFAULT-SUBOBJTYPE TYPE ZDSN-DDL-OBJTYPE.
02 Z-DEVTYPE OCCURS ZDSN-MAX-DEVTYPES TIMES.
03 Z-TYPE TYPE ZSPI-DDL-INT.
03 Z-SUBTYPE TYPE ZSPI-DDL-INT
OCCURS ZDSN-MAX-SUBTYPES TIMES.
02 Z-FLAGS TYPE ZSPI-DDL-ENUM.
02 Z-MANAGER-OBJFILE TYPE ZDSN-DDL-OBJNAME.
02 Z-DSNMI TYPE ZDSN-DDL-PCLASS.
END
DEFINITION ZDSN-DDL-OBJTYPE-CONFIG.
02 Z-SUBSYS TYPE ZDSN-DDL-SUBSYS.
02 Z-OBJTYPE TYPE ZDSN-DDL-OBJTYPE.
02 Z-PARENT-OBJTYPE TYPE ZDSN-DDL-OBJTYPE.
02 Z-RANK TYPE ZSPI-DDL-INT.
END
_SUBSYS^DEF