mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-30 01:01:21 +00:00
46 lines
1.0 KiB
C++
46 lines
1.0 KiB
C++
#include "common/abi.h"
|
|
#include "common/logging/log.h"
|
|
#include "libs/errno.h"
|
|
#include "libs/libs.h"
|
|
#include "loader/symbolDatabase.h"
|
|
|
|
namespace Libs {
|
|
|
|
LIB_VERSION("DeviceService", 1, "Mbus", 1, 1);
|
|
|
|
namespace DeviceService {
|
|
|
|
static int KYTY_SYSV_ABI DeviceServiceInitialize() {
|
|
PRINT_NAME();
|
|
|
|
return OK;
|
|
}
|
|
|
|
static int KYTY_SYSV_ABI DeviceServiceGetEventState(int32_t device_class) {
|
|
PRINT_NAME();
|
|
|
|
LOGF("\t device_class = %" PRId32 "\n", device_class);
|
|
|
|
return 0;
|
|
}
|
|
|
|
static int KYTY_SYSV_ABI DeviceServiceQueryDeviceInfo(uint32_t device_handle, void* out_info) {
|
|
PRINT_NAME();
|
|
|
|
LOGF("\t device_handle = 0x%08" PRIx32 "\n"
|
|
"\t out_info = 0x%016" PRIx64 "\n",
|
|
device_handle, reinterpret_cast<uint64_t>(out_info));
|
|
|
|
return OK;
|
|
}
|
|
|
|
} // namespace DeviceService
|
|
|
|
LIB_DEFINE(InitDeviceService_1) {
|
|
LIB_FUNC("84fDxStrG44", DeviceService::DeviceServiceInitialize);
|
|
LIB_FUNC("9ddRUOV8Q5A", DeviceService::DeviceServiceGetEventState);
|
|
LIB_FUNC("UNMEa+5lrUA", DeviceService::DeviceServiceQueryDeviceInfo);
|
|
}
|
|
|
|
} // namespace Libs
|