Support passing additional constructor arguments to nvdrv devices
Needed for host1x channels which use the same class for multiple types.
This commit is contained in:
parent
eb6f052873
commit
b0a5dab0f7
1 changed files with 6 additions and 6 deletions
|
@ -23,12 +23,12 @@ namespace skyline::service::nvdrv {
|
|||
break; \
|
||||
}
|
||||
|
||||
#define DEVICE_CASE(path, object) \
|
||||
case util::Hash(path): \
|
||||
{ \
|
||||
std::unique_lock lock(deviceMutex); \
|
||||
devices.emplace(fd, std::make_unique<device::object>(state, *this, core, ctx)); \
|
||||
return NvResult::Success; \
|
||||
#define DEVICE_CASE(path, object, ...) \
|
||||
case util::Hash(path): \
|
||||
{ \
|
||||
std::unique_lock lock(deviceMutex); \
|
||||
devices.emplace(fd, std::make_unique<device::object>(state, *this, core, ctx, ##__VA_ARGS__)); \
|
||||
return NvResult::Success; \
|
||||
}
|
||||
|
||||
DEVICE_SWITCH(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue