What makes a nasty hack? If you have a static block of XML such as char[]gmpi_metadata[] ="<?xml version="1.0" encoding="utf-8" ?><QQQQ GMPI ONLY KEEP OUT>data...</QQQQ GMPI ONLY KEEP OUT>"; the odds of this data being misidentified by GMPI or anyone else are absurdly small. I don't think we're going to find an easier to build, easier to construct, faster to read metadata scheme than this. Original Message: ----------------- From: Steve Harris S.W.Harris@xxxxxxxxxxxxxxx Date: Tue, 11 Nov 2003 14:58:33 +0000 To: gmpi@xxxxxxxxxxxxx Subject: [gmpi] Re: Reqs draft On Tue, Nov 11, 2003 at 09:44:55 -0500, gogins@xxxxxxxxxxxx wrote: > Slowness of DLL metadata is not necessary and not a con. > > You do not have to load a shared library AS a shared library to read > metadata from the shared library file. You can just open and read the > shared library like any other file. This means that you do NOT have to load > dependencies of shared libraries to access metadata if it is just read from > the file and not accessed by calling a function. The metadata could be > stored in the file as a resource, as static data delimited by some unique > string, and probably in some other ways I don't know about. Thats true, in theory, but it is not partularly easy and will require non-standard linkers* for plugin developement, which sounds like too much of a barrier to entry to me. Its also one more platform specific thing as it would have to be defined for ELF, COFF etc. * I suppose you could put ASCII armour around the metadata block and place it in the data segment of the DLL, assuming it wasn't encypted, but that is just too nasty a hack for me. - Steve ---------------------------------------------------------------------- Generalized Music Plugin Interface (GMPI) public discussion list Participation in this list is contingent upon your abiding by the following rules: Please stay on topic. You are responsible for your own words. Please respect your fellow subscribers. Please do not redistribute anyone else's words without their permission. Archive: //www.freelists.org/archives/gmpi Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . ---------------------------------------------------------------------- Generalized Music Plugin Interface (GMPI) public discussion list Participation in this list is contingent upon your abiding by the following rules: Please stay on topic. You are responsible for your own words. Please respect your fellow subscribers. Please do not redistribute anyone else's words without their permission. Archive: //www.freelists.org/archives/gmpi Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe