struct oh_global_param {
oh_global_param_type type;
oh_global_param_union u;
};
typedef enum {
OPENHPI_ON_EP = 1,
OPENHPI_LOG_ON_SEV,
OPENHPI_EVT_QUEUE_LIMIT,
OPENHPI_DEL_SIZE_LIMIT,
OPENHPI_DEL_SAVE,
OPENHPI_DAT_SIZE_LIMIT,
OPENHPI_DAT_USER_LIMIT,
OPENHPI_DAT_SAVE,
//OPENHPI_DEBUG,
//OPENHPI_DEBUG_TRACE,
//OPENHPI_DEBUG_LOCK,
OPENHPI_PATH,
OPENHPI_VARPATH,
OPENHPI_CONF
} oh_global_param_type;
typedef union {
SaHpiEntityPathT on_ep;
SaHpiSeverityT log_on_sev;
SaHpiUint32T evt_queue_limit;
SaHpiUint32T del_size_limit;
SaHpiBoolT del_save;
SaHpiUint32T dat_size_limit;
SaHpiUint32T dat_user_limit;
SaHpiBoolT dat_save;
//unsigned char dbg; /* 1 = YES, 0 = NO */
//unsigned char dbg_trace; /* !0 = YES, 0 = NO */
//unsigned char dbg_lock; /* !0 = YES, 0 = NO */
char path[OH_MAX_TEXT_BUFFER_LENGTH];
char varpath[OH_MAX_TEXT_BUFFER_LENGTH];
char conf[OH_MAX_TEXT_BUFFER_LENGTH];
} oh_global_param_union;
阅读(416) | 评论(0) | 转发(0) |