eLubus, if you have another look at my code, you'll see it's already split into a library and some example programs. The example programs just use the library to obtain data structures (like you were asking for) and filter/format the data for output. The library is in bdtools subdir and the examples are in the src subdir. mpls_parse.h and clpi_parse.h contain the public interfaces. There's really not much to it from a users point of view.
I would be glad to abstract the IO routines. That's going to be necessary eventually anyway if I want to hook in a decryption library at some point. Do you have any preferred interface for registering the IO functions you'll be using?
|