Update of bug #13643 (project freeciv):

                Priority:                 3 - Low => 5 - Normal             
                  Status:                    None => In Progress            
             Assigned to:                    None => syntron                
         Planned Release:                         => 2.4.0                  


Follow-up Comment #8:

WIP patch to implement the database connection via luasql:

* split auth.c into auth.c (autentication) and fcdb.c (freeciv database)
* add luasql files (only mysql working; postgres prepared)
* add database.lua file with the needed functions
* changed options for the server:
  -D (--Database <file>)
  -a (--auth)
* new command: fcdb (at the moment only reload)
* cleanup definition of database config
* split common lua script functions into a new file (luascript.c)
* rename script.c/api.pkg to script_game.c/tolua_game.pkg
* add script_fcdb.c/tolua_fcdb.pkg as entry point for luasql
* add api for logging (api_log.c)
* check arguments to script functions against the defined values

The patch will be splitted into smaller part before submission. At the moment
I would like some comments (that should be changed; are the lua function
correct, that directory layout should be used for ./server/scripting/, ...).

Using this patch as well as the newcommer patches freeciv 2.4.x should be
ready to be used by the longturn community ...


Reply to this item at:


  Nachricht geschickt von/durch Gna!

Freeciv-dev mailing list

Reply via email to