From 6613862aede906b26be02a93b1d2ad660796036c Mon Sep 17 00:00:00 2001 From: Clang Format Date: Wed, 24 Aug 2016 23:18:08 +0200 Subject: [PATCH] CDVDnull reformat --- plugins/CDVDnull/CDVD.cpp | 98 +++++++++++++++++++++++---------------- plugins/CDVDnull/CDVD.h | 6 +-- 2 files changed, 62 insertions(+), 42 deletions(-) diff --git a/plugins/CDVDnull/CDVD.cpp b/plugins/CDVDnull/CDVD.cpp index 27f41d4713..db4acfe7e3 100644 --- a/plugins/CDVDnull/CDVD.cpp +++ b/plugins/CDVDnull/CDVD.cpp @@ -27,102 +27,122 @@ const unsigned char version = PS2E_CDVD_VERSION; const unsigned char revision = 0; const unsigned char build = 6; -EXPORT_C_(char*) PS2EgetLibName() +EXPORT_C_(char*) +PS2EgetLibName() { - snprintf( libraryName, 255, "CDVDnull Driver %lld%s",SVN_REV, SVN_MODS ? "m" : ""); - return libraryName; + snprintf(libraryName, 255, "CDVDnull Driver %lld%s", SVN_REV, SVN_MODS ? "m" : ""); + return libraryName; } -EXPORT_C_(u32) PS2EgetLibType() +EXPORT_C_(u32) +PS2EgetLibType() { - return PS2E_LT_CDVD; + return PS2E_LT_CDVD; } -EXPORT_C_(u32) CALLBACK PS2EgetLibVersion2(u32 type) +EXPORT_C_(u32) +CALLBACK PS2EgetLibVersion2(u32 type) { - return (version << 16) | (revision << 8) | build; + return (version << 16) | (revision << 8) | build; } -EXPORT_C_(s32) CDVDinit() +EXPORT_C_(s32) +CDVDinit() { - return 0; + return 0; } -EXPORT_C_(s32) CDVDopen(const char* pTitle) +EXPORT_C_(s32) +CDVDopen(const char* pTitle) { - return 0; + return 0; } -EXPORT_C_(void) CDVDclose() +EXPORT_C_(void) +CDVDclose() { } -EXPORT_C_(void) CDVDshutdown() +EXPORT_C_(void) +CDVDshutdown() { } -EXPORT_C_(s32) CDVDreadTrack(u32 lsn, int mode) +EXPORT_C_(s32) +CDVDreadTrack(u32 lsn, int mode) { - return -1; + return -1; } // return can be NULL (for async modes) -EXPORT_C_(u8*) CDVDgetBuffer() +EXPORT_C_(u8*) +CDVDgetBuffer() { - return NULL; + return NULL; } -EXPORT_C_(s32) CDVDreadSubQ(u32 lsn, cdvdSubQ* subq) +EXPORT_C_(s32) +CDVDreadSubQ(u32 lsn, cdvdSubQ* subq) { - return -1; + return -1; } -EXPORT_C_(s32) CDVDgetTN(cdvdTN *Buffer) +EXPORT_C_(s32) +CDVDgetTN(cdvdTN* Buffer) { - return -1; + return -1; } -EXPORT_C_(s32) CDVDgetTD(u8 Track, cdvdTD *Buffer) +EXPORT_C_(s32) +CDVDgetTD(u8 Track, cdvdTD* Buffer) { - return -1; + return -1; } -EXPORT_C_(s32) CDVDgetTOC(void* toc) +EXPORT_C_(s32) +CDVDgetTOC(void* toc) { - return -1; + return -1; } -EXPORT_C_(s32) CDVDgetDiskType() +EXPORT_C_(s32) +CDVDgetDiskType() { - return CDVD_TYPE_NODISC; + return CDVD_TYPE_NODISC; } -EXPORT_C_(s32) CDVDgetTrayStatus() +EXPORT_C_(s32) +CDVDgetTrayStatus() { - return CDVD_TRAY_CLOSE; + return CDVD_TRAY_CLOSE; } -EXPORT_C_(s32) CDVDctrlTrayOpen() +EXPORT_C_(s32) +CDVDctrlTrayOpen() { - return 0; + return 0; } -EXPORT_C_(s32) CDVDctrlTrayClose() +EXPORT_C_(s32) +CDVDctrlTrayClose() { - return 0; + return 0; } -EXPORT_C_(void) CDVDconfigure() +EXPORT_C_(void) +CDVDconfigure() { - SysMessage("Nothing to Configure"); + SysMessage("Nothing to Configure"); } -EXPORT_C_(void) CDVDabout() +EXPORT_C_(void) +CDVDabout() { - SysMessage("%s %d.%d", "CDVDnull Driver", revision, build); + SysMessage("%s %d.%d", "CDVDnull Driver", revision, build); } -EXPORT_C_(s32) CDVDtest() +EXPORT_C_(s32) +CDVDtest() { - return 0; + return 0; } diff --git a/plugins/CDVDnull/CDVD.h b/plugins/CDVDnull/CDVD.h index 264a9a5b74..56496eaf46 100644 --- a/plugins/CDVDnull/CDVD.h +++ b/plugins/CDVDnull/CDVD.h @@ -14,7 +14,7 @@ */ - #ifndef __CDVD_H__ +#ifndef __CDVD_H__ #define __CDVD_H__ #define CDVDdefs @@ -30,7 +30,7 @@ #ifdef _MSC_VER #define EXPORT_C_(type) extern "C" type CALLBACK #else -#define EXPORT_C_(type) extern "C" __attribute__((stdcall,externally_visible,visibility("default"))) type +#define EXPORT_C_(type) extern "C" __attribute__((stdcall, externally_visible, visibility("default"))) type #endif extern const unsigned char version; @@ -38,5 +38,5 @@ extern const unsigned char revision; extern const unsigned char build; extern const unsigned int minor; -extern void SysMessage(const char *fmt, ...); +extern void SysMessage(const char* fmt, ...); #endif /* __CDVD_H__ */