X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd9b4b7f114427e2fc089c4f1b2d4d43d7b003d4..c59f6793fb6c116e6b9abdaca4de0c4a08a0e5b0:/include/wx/mac/corefoundation/hid.h diff --git a/include/wx/mac/corefoundation/hid.h b/include/wx/mac/corefoundation/hid.h index 6ea4535f3a..33b01d54df 100644 --- a/include/wx/mac/corefoundation/hid.h +++ b/include/wx/mac/corefoundation/hid.h @@ -19,10 +19,6 @@ #ifndef _WX_MACCARBONHID_H_ #define _WX_MACCARBONHID_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "hid.h" -#endif - #include "wx/defs.h" #include "wx/string.h" @@ -41,7 +37,16 @@ #include -#include "wx/mac/corefoundation/cfwrappers.h" +//Utility wrapper around CFArray +class wxCFArray +{ +public: + wxCFArray(CFTypeRef pData) : pArray((CFArrayRef) pData) {} + CFTypeRef operator [] (const int& nIndex) {return CFArrayGetValueAtIndex(pArray, nIndex); } + int Count() {return CFArrayGetCount(pArray);} +private: + CFArrayRef pArray; +}; // // A wrapper around OS X HID Manager procedures.