#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"
#include <mach/mach.h>
-#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.