source: rtems/c/src/lib/libmisc/assoc/assoc.h @ 8bdcfc4

4.104.114.84.95
Last change on this file since 8bdcfc4 was b06e68ef, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 17, 1995 at 7:51:51 PM

Numerous miscellaneous features incorporated from Tony Bennett
(tbennett@…) including the following major additions:

+ variable length messages
+ named devices
+ debug monitor
+ association tables/variables

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