~ubuntu-branches/debian/squeeze/alpine/squeeze

« back to all changes in this revision

Viewing changes to web/src/alpined.d/busy.c

  • Committer: Bazaar Package Importer
  • Author(s): Asheesh Laroia
  • Date: 2007-02-17 13:17:42 UTC
  • Revision ID: james.westby@ubuntu.com-20070217131742-99x5c6cpg1pbkdhw
Tags: upstream-0.82+dfsg
ImportĀ upstreamĀ versionĀ 0.82+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#if !defined(lint) && !defined(DOS)
 
2
static char rcsid[] = "$Id: signal.c 91 2006-07-28 19:02:07Z mikes@u.washington.edu $";
 
3
#endif
 
4
 
 
5
/* ========================================================================
 
6
 * Copyright 2006-2007 University of Washington
 
7
 *
 
8
 * Licensed under the Apache License, Version 2.0 (the "License");
 
9
 * you may not use this file except in compliance with the License.
 
10
 * You may obtain a copy of the License at
 
11
 *
 
12
 *     http://www.apache.org/licenses/LICENSE-2.0
 
13
 *
 
14
 * ========================================================================
 
15
 */
 
16
 
 
17
#include <system.h>
 
18
#include <general.h>
 
19
 
 
20
#include "../../../pith/status.h"
 
21
#include "../../../pith/busy.h"
 
22
 
 
23
 
 
24
/*
 
25
 * Turn on a busy alarm.
 
26
 */
 
27
int
 
28
busy_cue(char *msg, percent_done_t pc_func, int init_msg)
 
29
{
 
30
    if(msg && !strncmp("Moving", msg, 6)){
 
31
        strncpy(msg+1, "Moved", 5);
 
32
        q_status_message(SM_ORDER, 3, 3, msg+1);
 
33
    }
 
34
 
 
35
    return(0);
 
36
}
 
37
 
 
38
 
 
39
/*
 
40
 * If final_message was set when busy_cue was called:
 
41
 *   and message_pri = -1 -- no final message queued
 
42
 *                 else final message queued with min equal to message_pri
 
43
 */
 
44
void
 
45
cancel_busy_cue(int message_pri)
 
46
{
 
47
}
 
48
 
 
49