summaryrefslogtreecommitdiff
path: root/web/src/alpined.d/busy.c
blob: 6f10fa7fd9580197fc6cca5c541eced992083610 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#if !defined(lint) && !defined(DOS)
static char rcsid[] = "$Id: signal.c 91 2006-07-28 19:02:07Z mikes@u.washington.edu $";
#endif

/* ========================================================================
 * Copyright 2006-2007 University of Washington
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * ========================================================================
 */

#include <system.h>
#include <general.h>

#include "../../../pith/status.h"
#include "../../../pith/busy.h"


/*
 * Turn on a busy alarm.
 */
int
busy_cue(char *msg, percent_done_t pc_func, int init_msg)
{
    if(msg && !strncmp("Moving", msg, 6)){
	strncpy(msg+1, "Moved", 5);
	q_status_message(SM_ORDER, 3, 3, msg+1);
    }

    return(0);
}


/*
 * If final_message was set when busy_cue was called:
 *   and message_pri = -1 -- no final message queued
 *                 else final message queued with min equal to message_pri
 */
void
cancel_busy_cue(int message_pri)
{
}