char *dso_name; /* Name of DSO. */
char *device_uuid; /* Mapped device path. */
char *events_str; /* Events string as fetched from message. */
- enum dm_event_mask events_field; /* Events bitfield. */
+ unsigned events_field; /* Events bitfield. */
uint32_t timeout_secs;
char *timeout_str;
struct dm_event_daemon_message *msg; /* Pointer to message buffer. */
/* Parse a device message from the daemon. */
static int _parse_message(struct dm_event_daemon_message *msg, char **dso_name,
- char **uuid, enum dm_event_mask *evmask)
+ char **uuid, unsigned *evmask)
{
char *id;
char *p = msg->data;
int ret = 0;
const char *uuid = NULL;
char *reply_dso = NULL, *reply_uuid = NULL;
- enum dm_event_mask reply_mask = 0;
+ unsigned reply_mask = 0;
struct dm_task *dmt = NULL;
struct dm_event_daemon_message msg = { 0 };
struct dm_info info;
return _cfg_def_make_path(buf, buf_size, id, cfg_def_get_item_p(id), 0);
}
-static void _get_type_name(char *buf, size_t buf_size, cfg_def_type_t type)
+static void _get_type_name(char *buf, size_t buf_size, unsigned type)
{
(void) dm_snprintf(buf, buf_size, "%s%s%s%s%s%s",
(type & CFG_TYPE_ARRAY) ?
(type & CFG_TYPE_STRING) ? " string" : "");
}
-static void _log_type_error(const char *path, cfg_def_type_t actual,
- cfg_def_type_t expected, int suppress_messages)
+static void _log_type_error(const char *path, unsigned actual, unsigned expected,
+ int suppress_messages)
{
static char actual_type_name[128];
static char expected_type_name[128];