[lokisetup] plugins in SETUP_2_0...
Ryan C. Gordon
icculus at clutteredmind.org
Sun Jun 12 00:28:17 EDT 2005
> I haven't yet completely thought out what we're gonna do about the file
> I/O API. I was going to first focus on the GUI abstraction. You are
> welcome to start working on the plugin changes if you want, as we can
> probably reconcile the two later provided they have decent APIs.
Here's a first shot to give y'all an idea of where I'm going with this.
This won't compile, but it's roughly what I'm thinking of doing.
This is the high-level code, and one plugin converted to the new format
(the .uz2 plugin). I chose this plugin because it's about as simple as
you can get...counting comments and blank lines, it's about 75 lines of
code, 25 codes of boiler-plate stuff, and a few lines to eventually be
moved to the higher level.
Eventually, the app will call copy_archive() for each item in a given
<files> tag, and that's it. The other copy_* functions can eventually be
deleted, since recursing directories and uncompressed files and
wildcards will all be handled under copy_archive() and various "plugins".
This is very much NOT ready to go into revision control; however,
comments are welcome before this goes further and I inadvertently paint
myself into a corner.
--ryan.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: archives.h
URL: <http://icculus.org/pipermail/lokisetup/attachments/20050612/5dfce116/attachment.diff>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: archives.c
URL: <http://icculus.org/pipermail/lokisetup/attachments/20050612/5dfce116/attachment-0001.diff>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: uz2.c
URL: <http://icculus.org/pipermail/lokisetup/attachments/20050612/5dfce116/attachment-0002.diff>
More information about the Lokisetup
mailing list