flist.h File Reference

#include <stdint.h>

Include dependency graph for flist.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  flist32_t
 32 bit list object More...
struct  flist64_t
 64 bit list object More...

Defines

#define FLIST32_START(LIST)   const flist32_t LIST[] = {
 32 bit list initialization
#define FLIST32_NODE(PREFIX, NAME)   { #NAME, PREFIX ## _ ## NAME },
 32 bit list node
#define FLIST32_NODE1(PREFIX, NAME)   { #NAME, (1 << PREFIX ## _ ## NAME) },
 32 bit list node from index
#define FLIST32_END   { 0, 0 } };
 32 bit list termination
#define FLIST64_START(LIST)   const flist64_t LIST[] = {
 64 bit list initialization
#define FLIST64_NODE(PREFIX, NAME)   { #NAME, PREFIX ## _ ## NAME },
 64 bit list node
#define FLIST64_NODE1(PREFIX, NAME)   { #NAME, (1 << PREFIX ## _ ## NAME) },
 64 bit list node from index
#define FLIST64_END   { 0, 0 } };
 64 bit list termination

Functions

uint32_t flist32_getval (const flist32_t list[], const char *key)
 get 32 bit value by key
const char * flist32_getkey (const flist32_t list[], uint32_t val)
 get key from 32 bit value
int flist32_from_str (const char *str, const flist32_t list[], uint32_t *flags, uint32_t *mask, char clmod, char *delim)
 parse flag list string
char * flist32_to_str (const flist32_t list[], uint32_t val, char *delim)
 convert bit mask to flag list string
uint64_t flist64_getval (const flist64_t list[], const char *key)
 get 64 bit value by key
const char * flist64_getkey (const flist64_t list[], uint64_t val)
 get key from 64 bit value
int flist64_from_str (const char *str, const flist64_t list[], uint64_t *flags, uint64_t *mask, char clmod, char *delim)
 parse flag list string
char * flist64_to_str (const flist64_t list[], uint64_t val, char *delim)
 convert bit mask to flag list string


Generated on Tue Jun 19 20:38:30 2007 for lucid by  doxygen 1.5.2