API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IGALLERY_GETSCHEMAVERSION()

Brew Release
Brew MP 1.0.2
Description
Get the schema version supported by the Gallery class.
Params
pif
[in]:
Pointer to IGallery interface
pnSchemaVersion
[out]:
Schema version
Interface
Prototype
  •    int IGallery_CancelSync(IGallery *pif, int *pnSchemaVersion);
    
Return
  • int: Error code
Comments
The IGallery interface itself does not define a schema, but it places requirements on schema versioning. The schema must defined by each class implementing IGallery. Classes implenmenting IGallery are allowed to add columns to their schema and increase the schema version, but are not allowed to remove columns. This allows users of the class to guarantee forward compatibility with newer schema versions.