
-----Original Message----- From: Juergen Schoenwaelder
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. ;-)
net-snmp tries to generate an index in each directory mapping MIB names to the file name containing them.
Any reason why libsmi can't do the same thing?
Regards, Andrew Hood A distributed system is one in which the failure of a computer you didn't even know existed can render your own computer unusable. -- Leslie Lamport, as quoted in CACM, June 1992