Re: [anjuta-devel] symbol-db progress



Hi!

If I understand correctly, this would also allow other language support
plugins to specify the files they want scanned, right? This would be
interesting for vala to parse vapis and maybe for javascript to parse
the girs that are used in that file/target. If this is correct, how
should I do to implement this?

Ses, that can be done theoretically. There is a new API in
IAnjutaSymbolManager:
* add_package (name, version, files)
* (de)activate_package (name, version)
* deactivate_all()

When you want to include some external files you can call add_package()
and when you decide a package is necessary for autocompletion for the
current file/project you can activate it.

btw, vala does also use pkg-config but the user doesn't need to see C
symbol names, so I think separating how pkg-config packages are handled
and determining which files are in a given package would be best. This
is probably also related to the project manager (which does show
packages and files in them).

All the pkg-config specific code is in libanjuta/anjuta-pkg-*. It is
already used by the project-manager.

Regards,
Johannes

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]