libnx  v4.2.0
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 
12 Result capmtpInitialize(void* mem, size_t size, u32 app_count, u32 max_img, u32 max_vid, const char *other_name);
13 void capmtpExit(void);
14 
15 Service* capmtpGetRootServiceSession(void);
16 Service* capmtpGetServiceSession(void);
17 
18 Result capmtpStartCommandHandler(void);
19 Result capmtpStopCommandHandler(void);
20 bool capmtpIsRunning(void);
21 Event *capmtpGetConnectionEvent(void);
22 bool capmtpIsConnected(void);
23 Event *capmtpGetScanErrorEvent(void);
24 Result capmtpGetScanError(void);
Event
Kernel-mode event structure.
Definition: event.h:13
u32
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21
Result
u32 Result
Function error code result type.
Definition: types.h:44
Service
Service object structure.
Definition: service.h:13