Service.hpp
1 #ifndef CPP3DS_SERVICE_H
2 #define CPP3DS_SERVICE_H
3 
4 #include <cpp3ds/Config.hpp>
5 #ifndef EMULATION
6 #include <3ds.h>
7 #endif
8 
9 namespace cpp3ds {
10 
11 enum ServiceName {
12  NETWORK = 1 << 0,
13  AUDIO = 1 << 1,
14  CONFIG = 1 << 2,
15  ROMFS = 1 << 3,
16  WIFI_STATUS = 1 << 4,
17 
18  ALL = 0xFFFF
19 };
20 
21 class Service {
22 public:
23  static bool enable(ServiceName service);
24  static bool disable(ServiceName service);
25  static bool isEnabled(ServiceName service);
26 
27 private:
28  static Uint16 m_enabledServices;
29  #ifndef EMULATION
30  static u32* m_socBuffer;
31  #endif
32 };
33 
34 } // namespace cpp3ds
35 
36 
37 #endif //CPP3DS_SERVICE_H