16 #include <epicsTypes.h>
76 typedef enum linkOption {
84 typedef struct linkOptionEnumType {
89 typedef struct linkOptionDef {
96 const linkOptionEnumType *Enums;
99 #define linkInt32(Struct, Member, Name, Req, Over) \
100 {Name, linkOptionInt32, Req, Over, OFFSET(Struct, Member), sizeof( ((Struct*)0)->Member ), NULL}
102 #define linkDouble(Struct, Member, Name, Req, Over) \
103 {Name, linkOptionDouble, Req, Over, OFFSET(Struct, Member), sizeof( ((Struct*)0)->Member ), NULL}
105 #define linkString(Struct, Member, Name, Req, Over) \
106 {Name, linkOptionString, Req, Over, OFFSET(Struct, Member), sizeof( ((Struct*)0)->Member ), NULL}
108 #define linkEnum(Struct, Member, Name, Req, Over, Enums) \
109 {Name, linkOptionEnum, Req, Over, OFFSET(Struct, Member), sizeof( ((Struct*)0)->Member ), Enums}
111 #define linkOptionEnd {0,linkOptionInvalid,0,0,0,0,NULL}
114 #define LINKOPTIONDEBUG 1
132 linkOptionsStore(
const linkOptionDef* opts,
void* user,
const char* str,
int options);
epicsShareFunc const char *epicsShareAPI linkOptionsEnumString(const linkOptionEnumType *Enums, int i, const char *def)
Return the string associated with Enum 'i'.
Definition: linkoptions.c:226
epicsShareFunc int epicsShareAPI linkOptionsStore(const linkOptionDef *opts, void *user, const char *str, int options)
Parse a string a store the result.
Definition: linkoptions.c:135