[MPlayer-dev-eng] win32 loader

Joey Parrish joey at nicewarrior.org
Tue Aug 29 14:32:34 CEST 2006


Gianluigi Tiesi wrote:
 > I would make a total rewrite from scratch of win32 loader,
 > currently is something like hackerish and almost unmaintenable.
 > I don't have much time but I can do it as "background" task.
 > This would involve to make a compile-time generation of some headers
 > for exports since all the stuff now is in win32.c.
 > Definitively libwine doesn't work for this, since the executable
 > using win32 function must be called with the wine wrapper or
 > it will crash (wineserver may be involved).
 >
 > My goal would be having a standalone infrastucture that
 > can be used also for other projects, a sort of "mini wine",
 > for situation where the usage of a binary windows dll is needed.
 >
 > Also the current code doesn't supports cxx exceptions, currently
 > I don't have enough skills to create one.
 >
 > I'm sending this mail to get feedbacks and maybe someone that
 > can help me.
 >
 > I would have different files like kernel32.c user32.c etc
 > to implement various functions.
 > In the current code function definitions are at the bottom
 > of win32.c file and all implementation are before.
 > Splitting in different files means having some headers
 > with export and proto definitions, created at compile time.
 > Wine uses winebuild but I was thinking about a simpler tool.

I think it's a good idea.  I'd like to see it done, and I'd like to 
help.  In particular, I'd like to write it from scratch with a dual 
license, LGPL/GPL.  Even add it to ffmpeg instead of MPlayer.  I think 
ffmpeg + the ability to load binary codecs would make ffmpeg so 
multi-capable that I could rely on it directly for certain of my 
personal projects.

--Joey



More information about the MPlayer-dev-eng mailing list