summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ac/ac.h
blob: 6185faf9b2532bf11798aad3c203a73ead143a4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
// Copyright 2016 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#pragma once

namespace Service {

class Interface;

namespace AC {

/**
 * AC::CreateDefaultConfig service function
 *  Inputs:
 *      64 : ACConfig size << 14 | 2
 *      65 : pointer to ACConfig struct
 *  Outputs:
 *      1 : Result of function, 0 on success, otherwise error code
 */
void CreateDefaultConfig(Interface* self);

/**
 * AC::ConnectAsync service function
 *  Inputs:
 *      1 : ProcessId Header
 *      3 : Copy Handle Header
 *      4 : Connection Event handle
 *      5 : ACConfig size << 14 | 2
 *      6 : pointer to ACConfig struct
 *  Outputs:
 *      1 : Result of function, 0 on success, otherwise error code
 */
void ConnectAsync(Interface* self);

/**
 * AC::GetConnectResult service function
 *  Inputs:
 *      1 : ProcessId Header
 *  Outputs:
 *      1 : Result of function, 0 on success, otherwise error code
 */
void GetConnectResult(Interface* self);

/**
 * AC::CloseAsync service function
 *  Inputs:
 *      1 : ProcessId Header
 *      3 : Copy Handle Header
 *      4 : Event handle, should be signaled when AC connection is closed
 *  Outputs:
 *      1 : Result of function, 0 on success, otherwise error code
 */
void CloseAsync(Interface* self);

/**
 * AC::GetCloseResult service function
 *  Inputs:
 *      1 : ProcessId Header
 *  Outputs:
 *      1 : Result of function, 0 on success, otherwise error code
 */
void GetCloseResult(Interface* self);

/**
 * AC::GetWifiStatus service function
 *  Outputs:
 *      1 : Result of function, 0 on success, otherwise error code
 *      2 : Output connection type, 0 = none, 1 = Old3DS Internet, 2 = New3DS Internet.
 */
void GetWifiStatus(Interface* self);

/**
 * AC::GetInfraPriority service function
 *  Inputs:
 *      1 : ACConfig size << 14 | 2
 *      2 : pointer to ACConfig struct
 *  Outputs:
 *      1 : Result of function, 0 on success, otherwise error code
 *      2 : Infra Priority
 */
void GetInfraPriority(Interface* self);

/**
 * AC::SetRequestEulaVersion service function
 *  Inputs:
 *      1 : Eula Version major
 *      2 : Eula Version minor
 *      3 : ACConfig size << 14 | 2
 *      4 : Input pointer to ACConfig struct
 *      64 : ACConfig size << 14 | 2
 *      65 : Output pointer to ACConfig struct
 *  Outputs:
 *      1 : Result of function, 0 on success, otherwise error code
 *      2 : Infra Priority
 */
void SetRequestEulaVersion(Interface* self);

/**
 * AC::RegisterDisconnectEvent service function
 *  Inputs:
 *      1 : ProcessId Header
 *      3 : Copy Handle Header
 *      4 : Event handle, should be signaled when AC connection is closed
 *  Outputs:
 *      1 : Result of function, 0 on success, otherwise error code
 */
void RegisterDisconnectEvent(Interface* self);

/**
 * AC::IsConnected service function
 *  Outputs:
 *      1 : Result of function, 0 on success, otherwise error code
 *      2 : bool, is connected
 */
void IsConnected(Interface* self);

/**
 * AC::SetClientVersion service function
 *  Inputs:
 *      1 : Used SDK Version
 *  Outputs:
 *      1 : Result of function, 0 on success, otherwise error code
 */
void SetClientVersion(Interface* self);

/// Initialize AC service
void Init();

/// Shutdown AC service
void Shutdown();

} // namespace AC
} // namespace Service