source: rtems/c/src/lib/libmisc/assoc/assoc.h @ 1587af6

4.104.114.84.95
Last change on this file since 1587af6 was 8389628, checked in by Joel Sherrill <joel.sherrill@…>, on 04/22/96 at 16:53:46

updates from Tony Bennett

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 *
3 *  Rtems associativity routines.  Mainly used to convert a value from
4 *  one space to another (eg: our errno's to host errno's and v.v)
5 *
6 *
7 *  $Id$
8 */
9
10#ifndef _INCLUDE_ASSOC_H
11#define _INCLUDE_ASSOC_H
12
13typedef struct {
14    const char   *name;
15    unsigned32   local_value;
16    unsigned32   remote_value;
17} rtems_assoc_t;
18
19/*
20 * Flag/marker for optional default value in each table
21 */
22
23#define RTEMS_ASSOC_DEFAULT_NAME "(default)"
24
25const rtems_assoc_t *rtems_assoc_ptr_by_name(const rtems_assoc_t *, const char *);
26const rtems_assoc_t *rtems_assoc_ptr_by_value(const rtems_assoc_t *, unsigned32);
27const rtems_assoc_t *rtems_assoc_ptr_by_remote(const rtems_assoc_t *, unsigned32);
28
29unsigned32   rtems_assoc_remote_by_local(const rtems_assoc_t *, unsigned32);
30unsigned32   rtems_assoc_local_by_remote(const rtems_assoc_t *, unsigned32);
31unsigned32   rtems_assoc_remote_by_name(const rtems_assoc_t *, const char *);
32unsigned32   rtems_assoc_local_by_name(const rtems_assoc_t *, const char *);
33const char  *rtems_assoc_name_by_local(const rtems_assoc_t *, unsigned32);
34const char  *rtems_assoc_name_by_remote(const rtems_assoc_t *, unsigned32);
35
36unsigned32   rtems_assoc_remote_by_local_bitfield(const rtems_assoc_t *, unsigned32);
37char  *rtems_assoc_name_by_local_bitfield(const rtems_assoc_t *, unsigned32, char *);
38char  *rtems_assoc_name_by_remote_bitfield(const rtems_assoc_t *, unsigned32, char *);
39unsigned32   rtems_assoc_local_by_remote_bitfield(const rtems_assoc_t *, unsigned32);
40
41
42#endif /* ! _INCLUDE_ASSOC_H */
Note: See TracBrowser for help on using the repository browser.