[rs-devel] Re: [Litestep] dev: mod_ctl: kudos and user sanity
Status: Beta
Brought to you by:
obada
From: Mudiaga O. <ob...@in...> - 2002-01-28 21:41:08
|
[Opps! I'll just resend this...] Here some rational: > but I disagree with making a single do-everything function. The single do-everything function keeps function prototypes=20 as well as data structures out of peoples heads. The functions that go though it will only be those where=20 the overhead is not a problem. It also simplifies the process of adding extensions to modules, such as querring specific functionality, signaling a module of specific event,..., without requiring Litestep support. (modules can export 50 functions if they wish, but that's=20 one of the things this is meant to avoid) > All we need is a simple GetModuleInfo function that fills in > a LSMODULEINFO struct. Just as easy for the mod coders Except your caller is calling from pascal or some other lang + the text format avoids issues like initializing unused fields, and won't require LSMODULEINFOEX and LSMODULEINFOEX2 in the=20 future.=20 + the text format is extensible (as in XML) + agreeing on using (markup) text format is easier that=20 aggreeing on what goes into LSMODULEINFO and what not. =20 ~Mudi |