Browse Source

xsd: PLUGIN declaration

Serj Kalichev 3 years ago
parent
commit
c035ba0c79
1 changed files with 11 additions and 5 deletions
  1. 11 5
      klish.xsd

+ 11 - 5
klish.xsd

@@ -475,11 +475,17 @@
 
 <!--
 *******************************************************
-* <PLUGIN> is used to dynamically load plugins
-*
-* [rtld_global] - A boolean RTLD_GLOBAL flag for dlopen()
+* <PLUGIN> is used to dynamically load plugins.
+* Plugin contains symbols that can be used for ACTIONs.
+*
+* name - Plugin name. If "file" attribute is not specified then plugin's
+*	filename is autogenerated as "klish-plugin-<name>.so".
+* [alias] - Plugin's alias that can be used instead original name in
+*	symbol references.
+* [file] - File name if standard autogenerated filename (using "name" field)
+*	is not appropriate.
+* [global] - A boolean RTLD_GLOBAL flag for dlopen()
 *	while plugin loading. Default is "false".
-*
 ********************************************************
 -->
 	<xs:complexType name="plugin_t">
@@ -488,7 +494,7 @@
 				<xs:attribute name="name" type="xs:string" use="required"/>
 				<xs:attribute name="alias" type="xs:string" use="optional"/>
 				<xs:attribute name="file" type="xs:string" use="optional"/>
-				<xs:attribute name="rtld_global" type="xs:boolean" use="optional" default="false"/>
+				<xs:attribute name="global" type="xs:boolean" use="optional" default="false"/>
 			</xs:extension>
 		</xs:simpleContent>
 	</xs:complexType>