1 //<script type="text/javascript">
3 const GI = imports.gi.GIRepository;
5 const XObject = imports.XObject.XObject;
6 const console = imports.console.console;
8 const NameSpace = imports.Introspect.NameSpace.NameSpace;
9 const Base = imports.Introspect.Base.Base;
17 var Struct = XObject.define(
19 Base.call(this, ns, name);
31 return; // already loaded..
35 this.genericBuildList('struct', 'field', props, 'properties');
40 if (GI.struct_info_get_size (this.getBI()) > 0 ) {
44 this.constructors.push({
50 memberOf : this.alias,
56 this.genericBuildList('struct', 'method', methods, 'methods');