status.h
来自「AMLOGIC DPF source code」· C头文件 代码 · 共 94 行
H
94 行
/*******************************************************************
*
* Copyright C 2005 by Amlogic, Inc. All Rights Reserved.
*
* Description:
*
* Author: Amlogic Software
* Created: Fri Nov 11 01:05:32 2005
*
*******************************************************************/
/* status.h
*
* This include file contains the status codes returned from the
* executive directives.
*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.avfs.com/license/LICENSE.
*
* status.h,v 1.11.6.1 2003/09/04 18:47:17 joel Exp
*/
#ifndef __AVFS_STATUS_h
#define __AVFS_STATUS_h
#ifdef __cplusplus
extern "C" {
#endif
/* types */
/* enumerated constants */
typedef enum {
AVFS_SUCCESSFUL = 0, /* successful completion */
AVFS_TASK_EXITTED = 1, /* returned from a thread */
AVFS_MP_NOT_CONFIGURED = 2, /* multiprocessing not configured */
AVFS_INVALID_NAME = 3, /* invalid object name */
AVFS_INVALID_ID = 4, /* invalid object id */
AVFS_TOO_MANY = 5, /* too many */
AVFS_TIMEOUT = 6, /* timed out waiting */
AVFS_OBJECT_WAS_DELETED = 7, /* object deleted while waiting */
AVFS_INVALID_SIZE = 8, /* specified size was invalid */
AVFS_INVALID_ADDRESS = 9, /* address specified is invalid */
AVFS_INVALID_NUMBER = 10, /* number was invalid */
AVFS_NOT_DEFINED = 11, /* item has not been initialized */
AVFS_RESOURCE_IN_USE = 12, /* resources still outstanding */
AVFS_UNSATISFIED = 13, /* request not satisfied */
AVFS_INCORRECT_STATE = 14, /* thread is in wrong state */
AVFS_ALREADY_SUSPENDED = 15, /* thread already in state */
AVFS_ILLEGAL_ON_SELF = 16, /* illegal on calling thread */
AVFS_ILLEGAL_ON_REMOTE_OBJECT = 17, /* illegal for remote object */
AVFS_CALLED_FROM_ISR = 18, /* called from wrong environment */
AVFS_INVALID_PRIORITY = 19, /* invalid thread priority */
AVFS_INVALID_CLOCK = 20, /* invalid date/time */
AVFS_INVALID_NODE = 21, /* invalid node id */
AVFS_NOT_CONFIGURED = 22, /* directive not configured */
AVFS_NOT_OWNER_OF_RESOURCE = 23, /* not owner of resource */
AVFS_NOT_IMPLEMENTED = 24, /* directive not implemented */
AVFS_INTERNAL_ERROR = 25, /* AVFS inconsistency detected */
AVFS_NO_MEMORY = 26, /* could not get enough memory */
AVFS_IO_ERROR = 27, /* driver IO error */
AVFS_PROXY_BLOCKING = 28 /* internal error only */
} avfs_status_code;
#define AVFS_STATUS_CODES_FIRST AVFS_SUCCESSFUL
#define AVFS_STATUS_CODES_LAST AVFS_PROXY_BLOCKING
extern avfs_status_code _Status_Object_name_errors_to_status[];
#ifdef AVFS_API_INIT
avfs_status_code _Status_Object_name_errors_to_status[] = {
AVFS_SUCCESSFUL, /* OBJECTS_SUCCESSFUL */
AVFS_INVALID_NAME, /* OBJECTS_INVALID_NAME */
AVFS_INVALID_NODE /* OBJECTS_INVALID_NODE */
};
#endif
/*
* Applications are allowed to use the macros to compare status codes.
*/
//#include "./status.inl"
#ifdef __cplusplus
}
#endif
#endif
/* end of include file */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?