The SEDRIS Data Representation Model
APPENDIX D - Functions SE GeneralFieldIndexForClass |
---|
extern SE_DRM_Status_Code | ||||
SE_GeneralFieldIndexForClass | ||||
( | ||||
SE_Short_Integer_Positive | major_drm_version, | (notes) | ||
SE_Byte_Unsigned | minor_drm_version, | (notes) | ||
SE_Short_Integer_Positive | drm_class, | (notes) | ||
const | SE_Character | * | mem_name_ptr, | (notes) |
SE_Short_Integer_Unsigned | * | index_out_ptr | (notes) | |
); |
Given the name of a field for a given class, retrieves the index of that field within the class. Fields are indexed from 0.
SE_DRM_STAT_CODE_SUCCESS | and *index_out_ptr is set to the appropriate value, if valid parameters were passed in. |
SE_DRM_STAT_CODE_NULL_REQUIRED_PARAMETER | and *index_out_ptr is left unchanged, if index_out_ptr is NULL. |
SE_DRM_STAT_CODE_INVALID_VERSION | and *index_out_ptr is set to zero (0), if the specified version of the DRM is not supported. |
SE_DRM_STAT_CODE_INVALID_CLASS | and *index_out_ptr is set to zero (0), if drm_class does not correspond to a valid DRM class. |
SE_DRM_STAT_CODE_INVALID_CLASS_FIELD | and *index_out_ptr is set to zero (0), if mem_name_ptr isn't the name of a field of drm_class. |
major DRM version number of the DRM version for which this function is being called
minor DRM version number of the DRM version for which this function is being called
represents a DRM class.
name of a field of the specified DRM class.
pointer to a variable in the user's memory space where the answer will be stored.
Prev: SE_GeneralFieldCountForType.
Next: SE_GeneralGetAggregateOfType.
Up:Index.
|