Enumerating namespaces/typelibs

I’m new to gobject-introspection. I’m interested primarily in language bindings, and I’m starting by writing a Vala program to print out information about typelib infos, to get an idea about the various APIs one needs to explore the different sorts of type (it seems quite hairy at first!).

One thing I can’t find out is how to enumerate the namespaces or typelibs available on my system. I guess I could look at the disk directly by querying the search path, but it seems that the library should already be able to do this for me?


One thing I can’t find out is how to enumerate the namespaces or typelibs
available on my system.

Hi Reuben,

a quick look to the API documentation and to the code shows there is no
such thing, and IMO it seems to be so by design. I did not find any
explicit statement in this regard, though.

I guess I could look at the disk directly by querying
the search path, but it seems that the library should already be able to do
this for me?

This is similar to what already done by e.g. this TypeScript project:

Ciao.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.