Merge pull request #101 from Ordinary205/features

libSceGameLiveStreamingSetMaxBitrate + libSceUsbd symbols
This commit is contained in:
SysRay 2024-04-15 16:04:26 +02:00 committed by GitHub
commit 051fe23706
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 63 additions and 0 deletions

View File

@ -55,6 +55,12 @@ EXPORT SYSV_ABI int32_t sceGameLiveStreamingSetGuardAreas(size_t areaCount, cons
return Ok;
}
EXPORT SYSV_ABI int32_t sceGameLiveStreamingSetMaxBitrate(const unsigned int maxBitrate) {
LOG_USE_MODULE(libSceGameLiveStreaming);
LOG_ERR(L"todo %S", __FUNCTION__);
return Ok;
}
EXPORT SYSV_ABI int32_t sceGameLiveStreamingTerminate() {
LOG_USE_MODULE(libSceGameLiveStreaming);
LOG_ERR(L"todo %S", __FUNCTION__);

View File

@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 3.24)
include(../setupModule.cmake)
set(libName libSceUsbd)
project(${libName})
add_library(${libName} SHARED entry.cpp)
setupModule(${libName})

View File

@ -0,0 +1,4 @@
#pragma once
#include <stdint.h>
namespace Err {} // namespace Err

View File

@ -0,0 +1,40 @@
#include "codes.h"
#include "common.h"
#include "logging.h"
#include "types.h"
LOG_DEFINE_MODULE(libSceUsbd);
extern "C" {
EXPORT const char* MODULE_NAME = "libSceUsbd";
EXPORT SYSV_ABI int sceUsbdInit() {
LOG_USE_MODULE(libSceUsbd);
LOG_ERR(L"todo %S", __FUNCTION__);
return Ok;
}
EXPORT SYSV_ABI uint64_t sceUsbdGetDeviceList(SceUsbdDevice*** list) {
LOG_USE_MODULE(libSceUsbd);
LOG_ERR(L"todo %S", __FUNCTION__);
return Ok;
}
EXPORT SYSV_ABI void sceUsbdFreeDeviceList(SceUsbdDevice** list, int unrefDevices) {
LOG_USE_MODULE(libSceUsbd);
LOG_ERR(L"todo %S", __FUNCTION__);
}
EXPORT SYSV_ABI int32_t sceUsbdHandleEventsTimeout(struct timeval* tv) {
LOG_USE_MODULE(libSceUsbd);
LOG_ERR(L"todo %S", __FUNCTION__);
return Ok;
}
EXPORT SYSV_ABI int32_t sceUsbdOpenDeviceWithVidPid(uint16_t vendorId, uint16_t productId) {
LOG_USE_MODULE(libSceUsbd);
LOG_ERR(L"todo %S", __FUNCTION__);
return Ok;
}
}

View File

@ -0,0 +1,4 @@
#pragma once
#include "codes.h"
struct SceUsbdDevice {};