Skip to content

Commit

Permalink
Stub caps:c
Browse files Browse the repository at this point in the history
  • Loading branch information
dima-xd authored and bylaws committed Nov 18, 2022
1 parent ffb0546 commit 27ff1ae
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ add_library(skyline SHARED
${source_DIR}/skyline/services/btm/IBtmUser.cpp
${source_DIR}/skyline/services/btm/IBtmUserCore.cpp
${source_DIR}/skyline/services/capsrv/IAlbumAccessorService.cpp
${source_DIR}/skyline/services/capsrv/ICaptureControllerService.cpp
${source_DIR}/skyline/services/ro/IRoInterface.cpp
${source_DIR}/skyline/applet/applet_creator.cpp
${source_DIR}/skyline/applet/controller_applet.cpp
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// SPDX-License-Identifier: MPL-2.0
// Copyright © 2022 Skyline Team and Contributors (https://github.com/skyline-emu/)

#include "ICaptureControllerService.h"

namespace skyline::service::capsrv {
ICaptureControllerService::ICaptureControllerService(const DeviceState &state, ServiceManager &manager) : BaseService(state, manager) {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// SPDX-License-Identifier: MPL-2.0
// Copyright © 2022 Skyline Team and Contributors (https://github.com/skyline-emu/)

#pragma once

#include <services/serviceman.h>

namespace skyline::service::capsrv {
/**
* @url https://switchbrew.org/wiki/Capture_services#caps:c
*/
class ICaptureControllerService : public BaseService {
public:
ICaptureControllerService(const DeviceState &state, ServiceManager &manager);
};
}
2 changes: 2 additions & 0 deletions app/src/main/cpp/skyline/services/serviceman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
#include "bt/IBluetoothUser.h"
#include "btm/IBtmUser.h"
#include "capsrv/IAlbumAccessorService.h"
#include "capsrv/ICaptureControllerService.h"
#include "ro/IRoInterface.h"
#include "serviceman.h"

Expand Down Expand Up @@ -128,6 +129,7 @@ namespace skyline::service {
SERVICE_CASE(bt::IBluetoothUser, "bt")
SERVICE_CASE(btm::IBtmUser, "btm:u")
SERVICE_CASE(capsrv::IAlbumAccessorService, "caps:a")
SERVICE_CASE(capsrv::ICaptureControllerService, "caps:c")
SERVICE_CASE(nim::IShopServiceAccessServerInterface, "nim:eca")
SERVICE_CASE(ro::IRoInterface, "ldr:ro")
default:
Expand Down

0 comments on commit 27ff1ae

Please sign in to comment.