~ubuntu-branches/ubuntu/vivid/cctools/vivid

« back to all changes in this revision

Viewing changes to chirp/src/chirp_types.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Hanke
  • Date: 2011-05-07 09:05:00 UTC
  • Revision ID: james.westby@ubuntu.com-20110507090500-lqpmdtwndor6e7os
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (C) 2008- The University of Notre Dame
 
3
This software is distributed under the GNU General Public License.
 
4
See the file COPYING for details.
 
5
*/
 
6
 
 
7
#include "chirp_types.h"
 
8
 
 
9
const char * chirp_job_state_string( chirp_job_state_t state )
 
10
{
 
11
        switch(state) {
 
12
                case CHIRP_JOB_STATE_BEGIN:     return "BEGIN";
 
13
                case CHIRP_JOB_STATE_IDLE:      return "IDLE";
 
14
                case CHIRP_JOB_STATE_RUNNING:   return "RUNNING";
 
15
                case CHIRP_JOB_STATE_SUSPENDED: return "SUSPENDED";
 
16
                case CHIRP_JOB_STATE_COMPLETE:  return "COMPLETE";
 
17
                case CHIRP_JOB_STATE_FAILED:    return "FAILED";
 
18
                case CHIRP_JOB_STATE_KILLED:    return "KILLED";
 
19
                default:                        return "UNKNOWN";
 
20
        }
 
21
}