empserver/include
Markus Armbruster 71320ed67f New update scheduler:
(schedulefil): New.
(set_dirs, set_paths): Rename.  Initialize schedulfil.
(read_schedule): New.  Can read several updates, which will be used in
later changesets.
(update_time): Change to array.  Will be used in later changesets.
(update_schedule_anchor): New.
(update_init): Initialize it.
(update_get_schedule): New.
(update_init): Call it to initialize update_time[].
(update_sched): Rewrite.
(update_forced, update_wanted): Replace.
(update_reschedule): New.
(main): Call it on SIGHUP to reload the schedule.
(update_trigger, update_force, force, player_coms): Drop force's
capability to schedule updates in the future, because it's not worth
the trouble to implement again.  Deities can simply edit the schedule
file to schedule updates.  Remove update_force() and
update_trigger()'s parameter.
(upda): Update for new scheduler.  Take care to keep output the same
as far as possible, even though it's ugly, to avoid breaking clients.
(update_policy, adj_update, update_times, hourslop, blitz_time):
econfig keys removed.
(update_demand, UPD_DEMAND_NONE, UPD_DEMAND_SCHED, UPD_DEMAND_ASYNC)
(update_demandpolicy, UDP_NORMAL, UDP_TIMES, UDP_NORMAL, UDP_BLITZ)
(UDP_MAX, UDP_DEFAULT, UDDEM_TMCHECK, UDDEM_COMSET, UDDEM_DISABLE)
(UDDEM_MAX, UDDEM_DEFAULT): econfig key and values replaced.  Users
changed.  wantupd.h is now empty, remove.
(demand_check): External linkage.
(update_policy_check): Now pointless, remove.
(is_daytime_near, min_to_next_daytime, regular_update_time)
(scheduled_update_time, next_scheduled_time, updatetime)
(next_update_time, next_update_check_time): Unused, Remove.

(demand_check, demandupdatecheck): Move call of demand_update_time()
from demand_check(), which controls all demand updates, to
demandupdatecheck(), which controls only unscheduled ones.  Fixes
update command not to lie about the next scheduled demand update.

(demandupdatecheck): Check updates_disabled() so that zdone no longer
claims to trigger an update when it can't.
2007-07-11 22:27:29 +00:00
..
budg.h (bp_put_items): New. 2007-01-14 09:11:25 +00:00
com.h Update copyright notice. 2007-01-09 19:09:31 +00:00
combat.h Update copyright notice. 2007-01-09 19:09:31 +00:00
commands.h Update copyright notice. 2007-01-09 19:09:31 +00:00
commodity.h Update copyright notice. 2007-01-09 19:09:31 +00:00
damage.h Update copyright notice. 2007-01-09 19:09:31 +00:00
distribute.h Update copyright notice. 2007-01-09 19:09:31 +00:00
econfig-spec.h New update scheduler: 2007-07-11 22:27:29 +00:00
empio.h Update copyright notice. 2007-01-09 19:09:31 +00:00
empobj.h Update copyright notice. 2007-01-09 19:09:31 +00:00
empthread.h Semaphores are no longer used, remove: 2007-02-08 12:29:16 +00:00
file.h Update copyright notice. 2007-01-09 19:09:31 +00:00
ioqueue.h Update copyright notice. 2007-01-09 19:09:31 +00:00
item.h Update copyright notice. 2007-01-09 19:09:31 +00:00
journal.h Fix server not to create a journal on SIGHUP when !keep_journal: 2007-01-21 17:34:22 +00:00
land.h (unit_path): New, create by combining shp_path() and lnd_path(). 2007-01-24 23:24:37 +00:00
loan.h (getlandp, getloanp, getnatp, getnewsp, getnukep, getplanep) 2007-01-20 19:16:09 +00:00
lost.h Update copyright notice. 2007-01-09 19:09:31 +00:00
lwp.h Semaphores are no longer used, remove: 2007-02-08 12:29:16 +00:00
map.h Update copyright notice. 2007-01-09 19:09:31 +00:00
match.h Update copyright notice. 2007-01-09 19:09:31 +00:00
misc.h (S_IRUSR, S_IWUSR, S_IEUSR, S_IRWXU, 2007-03-11 21:29:37 +00:00
mission.h Update copyright notice. 2007-01-09 19:09:31 +00:00
nat.h (natstr): Simplify encoding of member nat_update. Users changed. 2007-07-10 17:48:57 +00:00
news.h (getlandp, getloanp, getnatp, getnewsp, getnukep, getplanep) 2007-01-20 19:16:09 +00:00
nsc.h Update copyright notice. 2007-01-09 19:09:31 +00:00
nuke.h (getlandp, getloanp, getnatp, getnewsp, getnukep, getplanep) 2007-01-20 19:16:09 +00:00
optlist.h New update scheduler: 2007-07-11 22:27:29 +00:00
path.h Update copyright notice. 2007-01-09 19:09:31 +00:00
plague.h Update copyright notice. 2007-01-09 19:09:31 +00:00
plane.h (getlandp, getloanp, getnatp, getnewsp, getnukep, getplanep) 2007-01-20 19:16:09 +00:00
player.h (player): Remove unused member blitz_time. 2007-05-27 13:36:14 +00:00
power.h (getlandp, getloanp, getnatp, getnewsp, getnukep, getplanep) 2007-01-20 19:16:09 +00:00
product.h Update copyright notice. 2007-01-09 19:09:31 +00:00
proto.h Update copyright notice. 2007-01-09 19:09:31 +00:00
prototypes.h New update scheduler: 2007-07-11 22:27:29 +00:00
queue.h Update copyright notice. 2007-01-09 19:09:31 +00:00
retreat.h Update copyright notice. 2007-01-09 19:09:31 +00:00
sect.h Update copyright notice. 2007-01-09 19:09:31 +00:00
server.h New update scheduler: 2007-07-11 22:27:29 +00:00
service.h Update copyright notice. 2007-01-09 19:09:31 +00:00
ship.h (getlandp, getloanp, getnatp, getnewsp, getnukep, getplanep) 2007-01-20 19:16:09 +00:00
tel.h Update copyright notice. 2007-01-09 19:09:31 +00:00
trade.h (getlandp, getloanp, getnatp, getnewsp, getnukep, getplanep) 2007-01-20 19:16:09 +00:00
treaty.h (getlandp, getloanp, getnatp, getnewsp, getnukep, getplanep) 2007-01-20 19:16:09 +00:00
types.h Update known contributors comment. 2007-01-13 10:16:43 +00:00
unit.h (unit_view): New, create by expanding shp_view() to work for 2007-01-27 02:04:27 +00:00
update.h Update copyright notice. 2007-01-09 19:09:31 +00:00
version.h Update copyright notice. 2007-01-09 19:09:31 +00:00
xy.h Update copyright notice. 2007-01-09 19:09:31 +00:00