#define ACCESS_TYPE_PREV 2
#define ACCESS_TYPE_OFF 3
-#define SLAVE_HW_ACCELERATION_NONE "none"
-
static struct info {
int info_fd;
int client_fd;
DbgPrint("Slave pkgname is invalid, ABI is replaced with '%s'(default)\n", abi);
}
- slave = slave_create(slavename, 1, abi, pkgname, 0, SLAVE_HW_ACCELERATION_NONE);
+ slave = slave_create(slavename, 1, abi, pkgname, 0, NULL);
if (!slave) {
ErrPrint("Failed to create a new slave for %s\n", slavename);
goto out;
return NULL;
}
- slave->hw_acceleration = strdup(hw_acceleration);
- if (!slave->hw_acceleration) {
- ErrPrint("Heap: %s\n", strerror(errno));
- DbgFree(slave->pkgname);
- DbgFree(slave->abi);
- DbgFree(slave->name);
- DbgFree(slave);
- return NULL;
+ if (slave->hw_acceleration) {
+ slave->hw_acceleration = strdup(hw_acceleration);
+ if (!slave->hw_acceleration) {
+ ErrPrint("Heap: %s\n", strerror(errno));
+ DbgFree(slave->pkgname);
+ DbgFree(slave->abi);
+ DbgFree(slave->name);
+ DbgFree(slave);
+ return NULL;
+ }
}
slave->secured = is_secured;