diff options
author | Robin Appelman <robin@icewind.nl> | 2018-10-12 17:42:08 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-11-01 00:21:48 +0100 |
commit | 4403d771ad72b3de62e6ba5ea8822110253c578e (patch) | |
tree | 169d10594adf85c5ca7881a983c8568d9bf53762 /resources | |
parent | 4a642fc0048c03a24aa199ccc9df23d547f69aa2 (diff) | |
download | nextcloud-server-4403d771ad72b3de62e6ba5ea8822110253c578e.tar.gz nextcloud-server-4403d771ad72b3de62e6ba5ea8822110253c578e.zip |
modular versions api
Allows apps to register version backends for storage types
The existing versions backend is wrapped in a "legacy" backend.
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'resources')
-rw-r--r-- | resources/app-info.xsd | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/resources/app-info.xsd b/resources/app-info.xsd index fa06752c01d..287ed6b9913 100644 --- a/resources/app-info.xsd +++ b/resources/app-info.xsd @@ -63,6 +63,8 @@ maxOccurs="1" /> <xs:element name="trash" type="trash" minOccurs="0" maxOccurs="1" /> + <xs:element name="versions" type="versions" minOccurs="0" + maxOccurs="1" /> </xs:sequence> </xs:complexType> <xs:unique name="uniqueNameL10n"> @@ -670,6 +672,21 @@ </xs:simpleContent> </xs:complexType> + <xs:complexType name="versions"> + <xs:sequence> + <xs:element name="backend" type="versions-backend" minOccurs="1" + maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="versions-backend"> + <xs:simpleContent> + <xs:extension base="php-class"> + <xs:attribute name="for" type="php-class" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + <xs:simpleType name="php-class"> <xs:restriction base="xs:string"> <xs:pattern |