
Frank Strauss writes:
[...]
Dave> Any ideas?
Frank> Good point. Currently, there is no libsmi function that allows Frank> you to retrieve the instance part of a given OID or Frank> string. Generally speaking, there are no functions that handle Frank> real data. Another example I could imagine is the formatting of Frank> a value according to an object's/type's display hint.
Frank> Let me think about an API extension...
The question is whether libsmi should go into the direction of providing a library of utility functions that are commonly needed by applications that use libsmi. You will soon hit a point where you need things like dynamic strings and so on that are realized pretty different in various applications (Tcl_DString (Tcl), GString (glib), tbd (netsnmp), ...) and so on. On the other hand, we already have a bunch of those utility functions in the libsmi tools and some applications that use it - so there seems to be a need.
I think it all boils down to: Who is going to work out the API and implement, document and test this stuff? Volunteers?
/js