]> Chaos Git - corbenik/ctrulib.git/commitdiff
fixed enums for c++
authorLectem <lectem@gmail.com>
Wed, 7 Oct 2015 20:00:19 +0000 (16:00 -0400)
committerLectem <lectem@gmail.com>
Wed, 7 Oct 2015 20:00:19 +0000 (16:00 -0400)
libctru/include/3ds/services/apt.h
libctru/include/3ds/services/csnd.h

index 18004d79f02e276efb114a46ec79ec04aaea338a..c7c0c0221c865e237d48a69e50cbbf6c5254a7f4 100644 (file)
@@ -64,7 +64,7 @@ enum {
        APTSIGNAL_UTILITY      = 9,  ///< Utility called.
        APTSIGNAL_SLEEPSYSTEM  = 10, ///< System sleeping.
        APTSIGNAL_ERROR        = 11  ///< Error occurred.
-} APT_Signal;
+};
 
 /// APT hook types.
 enum {
@@ -75,7 +75,7 @@ enum {
        APTHOOK_ONEXIT,        ///< App exiting.
 
        APTHOOK_COUNT,         ///< Number of APT hook types.
-} APT_HookType;
+};
 
 /// APT hook function.
 typedef void (*aptHookFn)(int hook, void* param);
index c35d650de5db0d7e3bf424b2a0b7a2959d5012a1..ea1f5193d2049830dc922d6e7746e45f23f1d929 100644 (file)
@@ -39,7 +39,7 @@ enum
        CSND_ENCODING_PCM16,    ///< PCM16
        CSND_ENCODING_ADPCM,    ///< IMA-ADPCM
        CSND_ENCODING_PSG,      ///< PSG (Similar to DS?)
-} CSND_Encoding;
+};
 
 /// CSND loop modes.
 enum
@@ -48,7 +48,7 @@ enum
        CSND_LOOPMODE_NORMAL,     ///< Normal loop.
        CSND_LOOPMODE_ONESHOT,    ///< Do not loop.
        CSND_LOOPMODE_NORELOAD,   ///< Don't reload.
-} CSND_LoopMode;
+};
 
 /// Creates a sound channel value from a channel number.
 #define SOUND_CHANNEL(n) ((u32)(n) & 0x1F)
@@ -70,7 +70,7 @@ enum
        SOUND_FORMAT_ADPCM = SOUND_FORMAT(CSND_ENCODING_ADPCM), ///< ADPCM
        SOUND_FORMAT_PSG = SOUND_FORMAT(CSND_ENCODING_PSG),     ///< PSG
        SOUND_ENABLE = BIT(14),                                 ///< Enable sound.
-} CSND_Flag;
+};
 
 /// Capture modes.
 enum
@@ -80,7 +80,7 @@ enum
        CAPTURE_FORMAT_16BIT = 0,     ///< PCM16
        CAPTURE_FORMAT_8BIT = BIT(1), ///< PCM8
        CAPTURE_ENABLE = BIT(15),     ///< Enable capture.
-} CSND_CaptureMode;
+};
 
 /// Duty cycles for a PSG channel.
 enum
@@ -93,7 +93,7 @@ enum
        DutyCycle_62 = 4, ///< 62.5% duty cycle
        DutyCycle_75 = 5, ///< 75.0% duty cycle
        DutyCycle_87 = 6  ///< 87.5% duty cycle
-} CSND_PSGDutyCycles;
+};
 
 /// Channel info.
 typedef union