io_object_t aDevice;
io_connect_t dataPort;
- IOItemCount structureInputSize;
- IOByteCount structureOutputSize;
+ size_t structureInputSize;
+ size_t structureOutputSize;
union motion_data inputStructure;
union motion_data *outputStructure;
memset(&inputStructure, 0, sizeof(union motion_data));
memset(outputStructure, 0, sizeof(union motion_data));
+#ifdef __LP64__
+ result = IOConnectCallStructMethod(dataPort, kernFunc, &inputStructure,
+ structureInputSize, outputStructure, &structureOutputSize );
+#else
result = IOConnectMethodStructureIStructureO(dataPort, kernFunc, structureInputSize,
&structureOutputSize, &inputStructure, outputStructure);
+#endif
IOServiceClose(dataPort);
/* BeginFullScreen, EndFullScreen */
#include <QuickTime/QuickTime.h>
+/* prevent system sleep */
+#import <CoreServices/CoreServices.h>
+
#include <vlc_keys.h>
#include "intf.h"
if( !VLCIntf || !VLCIntf->p_sys )
return;
+ UInt8 UsrActivity;
if( VLCIntf->p_sys->i_play_status == PLAYING_S )
UpdateSystemActivity( UsrActivity );
}