The SEDRIS Data Representation Model
APPENDIX D - Functions
SE GeneralGetAssociateOfType
extern SE_DRM_Status_Code
SE_GeneralGetAssociateOfType
(
SE_Short_Integer_Positive major_drm_version, (notes)
SE_Byte_Unsigned minor_drm_version, (notes)
SE_Short_Integer_Positive drm_class_a, (notes)
SE_Short_Integer_Positive drm_class_b, (notes)
constSE_Requirement **req_out_ptr (notes)
);

Definition

If 'drm_class_a' has an associate requirement for 'drm_class_b', returns the specified requirement.


Returns

SE_DRM_STAT_CODE_SUCCESS and *req_out_ptr is set appropriately, if valid parameters were passed in.
SE_DRM_STAT_CODE_NULL_REQUIRED_PARAMETER and *req_out_ptr is left unchanged, if req_out_ptr is NULL.
SE_DRM_STAT_CODE_INVALID_VERSION and *req_out_ptr is set to NULL, if the specified version of the DRM is not supported.
SE_DRM_STAT_CODE_INVALID_CLASS and *req_out_ptr is set to NULL, if drm_class_a or drm_class_b does not correspond to a valid DRM class in the specified DRM version.
SE_DRM_STAT_CODE_FAILURE and *req_out_ptr is set to NULL, if 'drm_class_a' has no associates of type 'drm_class_b' in the specified DRM version.

Parameters Notes


major_drm_version

 major DRM version number of the DRM version for which this function
 is being called

minor_drm_version

 minor DRM version number of the DRM version for which this function
 is being called

drm_class_a

 represents the DRM class whose associate
 requirement is being requested in the specified DRM version.

drm_class_b

 represents requested associate DRM class in the
 specified DRM version.

req_out_ptr

 pointer to a linked list of SE_Requirements


Prev: SE_GeneralGetAggregateOfType. Next: SE_GeneralGetClassStructure. Up:Index.

Last updated: August 23, 2005 Copyright © 2005 SEDRIS