struct mds_action_handle {
char *id;
- char *action;
+ char *rule;
char *value;
};
struct mds_action_handle *action_data = data;
free(action_data->id);
- free(action_data->action);
+ free(action_data->rule);
free(action_data->value);
free(action_data);
}
while (NULL != it) {
struct mds_action_handle *action_data = (struct mds_action_handle *)it->data;
g_variant_builder_add(action_builder, MODES_DBUS_ACTION_SIG, action_data->id,
- action_data->action, action_data->value);
+ action_data->rule, action_data->value);
it = g_list_next(it);
}
action = malloc(sizeof(struct mds_action_handle));
RETV_IF(NULL == action, NULL);
- action->action = strdup(name);
+ action->rule = strdup(name);
action->value = strdup(value);
action->id = NULL;