xml = imports.libxml;
-imports['Object.js'].load(Object);
+XObject = imports.XObject.XObject;
-console = imports['console.js'].console;
-
-
-xnew = imports['xnew.js'].xnew;
+console = imports.console.console;
-
-Introspect = {};
-
-xnew.load(Introspect,'JSDOC/Introspect');
-
-
-
-Object.extend(Introspect, {
-
+NameSpace = {
references : { },
while (true) {
- var fn = GLib.dir_read_name(gdir);
+ var fn = gdir.read_name ? gdir.read_name () : GLib.dir_read_name(gdir);
// console.log('trying ' + fn);
if (!fn) {
- GLib.dir_close(gdir);
+ gdir.close ? gdir.close() : GLib.dir_close(gdir);
return;;
}
if (!fn.match(/.typelib$/)) {
ret.interfaces.push(GI.base_info_get_name(info));
continue;
case GI.IInfoType.FUNCTION:
- new Introspect.Method(info, ret, 'functions', []);
+ new imports.Method.Method(info, ret, 'functions', []);
continue;
case GI.IInfoType.CALLBACK:
ret.unions.push(GI.base_info_get_name(info));
continue;
case GI.IInfoType.CONSTANT:
- new Introspect.Constant(info, ret, 'values', []);
+ new imports.Constant.Constant(info, ret, 'values', []);
continue;
var n = getAttribute(element, 'name') ;
//console.log("WALK" + n);
+ if (element.name == 'signal') {
+ path += '.signal';
+ }
+
if (n) {
path += path.length ? '.' : '';
path += n;
path += '.return-value';
}
-
var d = getAttribute(element,'doc');
if (d) {
// Seed.print(path + ':' + d);
registry : { },
factory : function(type, ns, name) {
if (typeof (this.registry[ns +'.' + name]) == 'undefined') {
- this.registry[ns +'.' + name] = new Introspect[type](ns,name);
+ this.registry[ns +'.' + name] = new imports[type][type](ns,name);
this.registry[ns +'.' + name].load();
}
return this.registry[ns +'.' + name];
}
-
-
-});
+};