assoc.h
来自「AMLOGIC DPF source code」· C头文件 代码 · 共 53 行
H
53 行
/*******************************************************************
*
* Copyright C 2005 by Amlogic, Inc. All Rights Reserved.
*
* Description:
*
* Author: Amlogic Software
* Created: Fri Nov 11 01:04:19 2005
*
*******************************************************************/
/*
*
* Avfs associativity routines. Mainly used to convert a value from
* one space to another (eg: our errno's to host errno's and v.v)
*
*
* assoc.h,v 1.4 1996/04/22 16:51:09 joel Exp
*/
#ifndef _INCLUDE_ASSOC_H
#define _INCLUDE_ASSOC_H
typedef struct {
const char *name;
unsigned32 local_value;
unsigned32 remote_value;
} avfs_assoc_t;
/*
* Flag/marker for optional default value in each table
*/
#define AVFS_ASSOC_DEFAULT_NAME "(default)"
const avfs_assoc_t *avfs_assoc_ptr_by_name(const avfs_assoc_t *, const char *);
const avfs_assoc_t *avfs_assoc_ptr_by_value(const avfs_assoc_t *, unsigned32);
const avfs_assoc_t *avfs_assoc_ptr_by_remote(const avfs_assoc_t *, unsigned32);
unsigned32 avfs_assoc_remote_by_local(const avfs_assoc_t *, unsigned32);
unsigned32 avfs_assoc_local_by_remote(const avfs_assoc_t *, unsigned32);
unsigned32 avfs_assoc_remote_by_name(const avfs_assoc_t *, const char *);
unsigned32 avfs_assoc_local_by_name(const avfs_assoc_t *, const char *);
const char *avfs_assoc_name_by_local(const avfs_assoc_t *, unsigned32);
const char *avfs_assoc_name_by_remote(const avfs_assoc_t *, unsigned32);
unsigned32 avfs_assoc_remote_by_local_bitfield(const avfs_assoc_t *, unsigned32);
char *avfs_assoc_name_by_local_bitfield(const avfs_assoc_t *, unsigned32, char *);
char *avfs_assoc_name_by_remote_bitfield(const avfs_assoc_t *, unsigned32, char *);
unsigned32 avfs_assoc_local_by_remote_bitfield(const avfs_assoc_t *, unsigned32);
#endif /* ! _INCLUDE_ASSOC_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?