libnx v4.9.0
Loading...
Searching...
No Matches
capmtp.h
Go to the documentation of this file.
1/**
2 * @file capmtp.h
3 * @brief capmtp service IPC wrapper.
4 * @note Only available on [11.0.0+].
5 * @author Behemoth
6 */
7#pragma once
8#include "../types.h"
9#include "../kernel/event.h"
10#include "../sf/service.h"
11
12Result capmtpInitialize(void* mem, size_t size, u32 app_count, u32 max_img, u32 max_vid, const char *other_name);
13void capmtpExit(void);
14
15Service* capmtpGetRootServiceSession(void);
16Service* capmtpGetServiceSession(void);
17
18Result capmtpStartCommandHandler(void);
19Result capmtpStopCommandHandler(void);
20bool capmtpIsRunning(void);
21Event *capmtpGetConnectionEvent(void);
22bool capmtpIsConnected(void);
23Event *capmtpGetScanErrorEvent(void);
24Result capmtpGetScanError(void);
Kernel-mode event structure.
Definition event.h:13
Service object structure.
Definition service.h:14
u32 Result
Function error code result type.
Definition types.h:44
uint32_t u32
32-bit unsigned integer.
Definition types.h:21