[Freeciv-Dev] Re: split server into library and main
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Jeff Mallatt wrote:
> This patch splits the server code into two parts: most goes into a library
> (called libcivserver.a) and just the main() is left in civserver.c.
>
> This will allow people who want to write utilities that need access to
> server-side routines (like save-file saving and loading) to simply link
> against the library. Just need to call srv_init() before using any server
> routines.
Looks good, but is there a reason for moving most of civserver.c
to a new module (srv_main.c) instead of leaving most in civserver.c
and just moving main() to the new module?
(I like 'struct server_arguments'!)
-- David
|
|