typedef struct
{
int m_id;
const cMarshalType **m_request;
const cMarshalType **m_reply; // the first param is the result
unsigned int m_request_len;
unsigned int m_reply_len;
} cHpiMarshal;
#define dHpiMarshalEntry(name) \
{ \
eF ## name, \
name ## In, \
name ## Out, \
0, 0 \
}
static cHpiMarshal hpi_marshal[] =
{
dHpiMarshalEntry( saHpiVersionGet ),
dHpiMarshalEntry( saHpiSessionOpen ),
dHpiMarshalEntry( saHpiSessionClose ),
dHpiMarshalEntry( saHpiDiscover ),
dHpiMarshalEntry( saHpiDomainInfoGet ),
....
};
阅读(272) | 评论(0) | 转发(0) |