Re: [libsmi] Unloading modules

So what you are really looking for is a mapping from module names to file names. On my preferred platform, this mapping is a symbolic link but I understand that this might not work in all places. So someone has to write a piece of code so that libsmi can load such mappings from the configuration file and use them while search for modules.
Mmm not really what I want. The user just selects the MIB files he wants to load, I don't know those files in advance so I can't do the mapping. But I'm becoming evil and I'll change the filenames as they are loaded :D. Btw, besides filenames without extensions on win32 does libsmi recognize other MIB extensions for autoload? Like : .my, .mib, etc.
I think this is a good project for someone who wants to learn more about the libsmi internals. ;-)
The autoload for the above standard extensions would be a much more interesting/needed project (well, needed for me), if not done already :).
/js
!! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or
adjust
!! your settings, send a mail message to libsmi-request@ibr.cs.tu-bs.de !! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/libsmi.
______________________________________________________________________ Do you want a free e-mail for life ? Get it at http://www.email.ro/

winston writes:
winston> Mmm not really what I want. The user just selects the MIB winston> files he wants to load, I don't know those files in advance winston> so I can't do the mapping.
Then forget it unless you want to build some hyper magic artificial intelligence search engine. In C, if I #include a file, then a file with that name has to exist. In java, if I import a class, then the appropriate file has to be exist somewhere. If people put stuff into ugly places, then they get what they ask for.
winston> Btw, besides filenames without extensions on win32 does winston> libsmi recognize other MIB extensions for autoload? Like : winston> .my, .mib, etc.
It recognizes a few of them already I think. Try it and look at the source code. ;-)
/js

Hi!
winston> Btw, besides filenames without extensions on win32 does winston> libsmi recognize other MIB extensions for autoload? Like : winston> .my, .mib, etc.
No extension and the extensions .my, .smiv2, .sming, .mib, .txt (in this order) are tried to locate MIB module files by a given module name.
-frank
participants (3)
-
Frank Strauss
-
Juergen Schoenwaelder
-
winston