~ubuntu-branches/ubuntu/trusty/ledmon/trusty-proposed

« back to all changes in this revision

Viewing changes to src/status.h

  • Committer: Package Import Robot
  • Author(s): Daniel Jared Dominguez
  • Date: 2012-01-23 13:45:41 UTC
  • Revision ID: package-import@ubuntu.com-20120123134541-bt1s4b3drja8hn94
Tags: upstream-0.31
ImportĀ upstreamĀ versionĀ 0.31

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- mode: c; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 
2
/* ex: set tabstop=2 softtabstop=2 shiftwidth=2 expandtab: */
 
3
 
 
4
/*
 
5
 * Intel(R) Enclosure LED Utilities
 
6
 * Copyright (C) 2009, Intel Corporation.
 
7
 *
 
8
 * This program is free software; you can redistribute it and/or modify it
 
9
 * under the terms and conditions of the GNU General Public License,
 
10
 * version 2, as published by the Free Software Foundation.
 
11
 *
 
12
 * This program is distributed in the hope it will be useful, but WITHOUT
 
13
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
14
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 
15
 * more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License along with
 
18
 * this program; if not, write to the Free Software Foundation, Inc., 
 
19
 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
 
20
 *
 
21
 */
 
22
 
 
23
#ifndef _STATUS_H_INCLUDED_
 
24
#define _STATUS_H_INCLUDED_
 
25
 
 
26
/**
 
27
 */
 
28
typedef int status_t;
 
29
 
 
30
/**
 
31
 */
 
32
enum status_code {
 
33
  STATUS_SUCCESS = 0,
 
34
  STATUS_BUFFER_OVERFLOW,
 
35
  STATUS_NULL_POINTER,
 
36
  STATUS_OUT_OF_MEMORY,
 
37
  STATUS_OUT_OF_RANGE,
 
38
  STATUS_INVALID_NODE,
 
39
  STATUS_DATA_ERROR,
 
40
  STATUS_IBPI_DETERMINE_ERROR,
 
41
  STATUS_INVALID_PATH,
 
42
  STATUS_INVALID_SUBOPTION,
 
43
  STATUS_INVALID_STATE,
 
44
  STATUS_SIZE_ERROR,
 
45
  STATUS_FILE_OPEN_ERROR,
 
46
  STATUS_FILE_READ_ERROR,
 
47
  STATUS_FILE_WRITE_ERROR,
 
48
  STATUS_FILE_LOCK_ERROR,
 
49
  STATUS_DIR_OPEN_ERROR,
 
50
  STATUS_SYSFS_PATH_ERROR,
 
51
  STATUS_SYSFS_INIT_ERROR,
 
52
  STATUS_SYSFS_SCAN_ERROR,
 
53
  STATUS_SYSFS_RESET_ERROR,
 
54
  STATUS_LIST_EMPTY,
 
55
  STATUS_LIST_INIT_ERROR,
 
56
  STATUS_BLOCK_LIST_ERROR,
 
57
  STATUS_VOLUM_LIST_ERROR,
 
58
  STATUS_CNTRL_LIST_ERROR,
 
59
  STATUS_SLAVE_LIST_ERROR,
 
60
  STATUS_CNTNR_LIST_ERROR,
 
61
  STATUS_INVALID_FORMAT,
 
62
  STATUS_LEDMON_INIT,
 
63
  STATUS_LEDMON_RUNNING,
 
64
  STATUS_ONEXIT_ERROR,
 
65
  STATUS_INVALID_CONTROLLER,
 
66
  STATUS_NOT_SUPPORTED,
 
67
  STATUS_STAT_ERROR,
 
68
  STATUS_CMDLINE_ERROR,
 
69
  STATUS_NOT_A_PRIVILEGED_USER,
 
70
  STATUS_ENCLO_LIST_ERROR
 
71
};
 
72
 
 
73
/**
 
74
 */
 
75
char *strstatus(status_t scode);
 
76
 
 
77
#endif /* _STATUS_H_INCLUDED_ */