File
15148571617.jpg
- (29.41KB
, 331x400
, confused1.jpg
)
I'm hacking up a dynamic class loader, and I have all of the easy stuff done (dlfcn, dirent, etc.).
So the manager needs to know which container to construct based off the extension of the file that needs to be passed to the containers constructor.
The question then is: should I have the container shared object advertise which file extensions are supported or should I have it advertise a mime type?
My concern with using the mime type is that I would need a mapping from file extensions to mime type.
And my concern with using just the file extension is that there may be extension collisions.