Skip to content
  • Aaron Plattner's avatar
    vdpau.h: define a more strict ABI policy · 3e191f7d
    Aaron Plattner authored
    
    
    Because structures defined in vdpau.h may be used outside of the libvdpau
    interface itself, it's important for them to not change, even to add new fields
    to the end.  Clarify this by tightening the restriction on how structures can be
    modified.
    
    This means that we can also *relax* the restriction on versioned structures that
    says that they can only be extended by adding fields to the end.  As long as
    uint32_t struct_version is the first field of the structure, the implementation
    can look at that to determine the complete layout of the rest of the fields.
    
    Signed-off-by: Aaron Plattner's avatarAaron Plattner <aplattner@nvidia.com>
    Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
    3e191f7d