X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..ca6b4a12640792d416b9fcbeb4baa8a3b84285ff:/server/schedule.c diff --git a/server/schedule.c b/server/schedule.c index 2e5887d..ec7eddc 100644 --- a/server/schedule.c +++ b/server/schedule.c @@ -95,6 +95,9 @@ static const char *const schedule_required[] = {"when", "who", "action"}; /** @brief Parse a scheduled event key and data * @param k Pointer to key + * @param d Pointer to data + * @param idp Where to store event ID + * @param actiondatap Where to store parsed data * @param whenp Where to store timestamp * @return 0 on success, non-0 on error * @@ -225,8 +228,9 @@ void schedule_init(ev_source *ev) { /******************************************************************************/ /** @brief Create a scheduled event - * @param ev Event loop + * @param id Event ID * @param actiondata Action data + * @param tid Containing transaction */ static int schedule_add_tid(const char *id, struct kvp *actiondata, @@ -370,7 +374,7 @@ static void schedule_play(ev_source *ev, return; } info("scheduled event %s: %s play %s", id, who, track); - q = queue_add(track, who, WHERE_START); + q = queue_add(track, who, WHERE_START, origin_scheduled); queue_write(); if(q == qhead.next && playing) prepare(ev, q); @@ -416,6 +420,7 @@ static struct { }; /** @brief Look up a scheduled event + * @param id Event ID * @param actiondata Event description * @return index in schedule_actions[] on success, -1 on error *