6 messages in net.java.dev.jna.users[jna-users] Basic understanding of wo...
FromSent OnAttachments
Andreas RettigApr 1, 2009 1:24 am 
Timothy WallApr 1, 2009 2:33 am 
Andreas RettigApr 1, 2009 2:49 am 
Timothy WallApr 1, 2009 3:56 am 
Andreas RettigApr 1, 2009 6:32 am 
Novatchkov HristoApr 1, 2009 8:48 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[jna-users] Basic understanding of working with Mac OS X Api Actions...
From:Andreas Rettig (a.re@gmx.de)
Date:Apr 1, 2009 1:24:15 am
List:net.java.dev.jna.users

Hi,

I'm still pretty new to JNA, but managed to build and understand access to HID-Devices via Windows-API with it. Now I'm trying my first steps into JNA and Mac OS X and I've problems understanding how to work with the Mac OS X API.

How do I work with enums like that, that means how can I get these Pointers out of, for example from CoreAudio...

enum { kAudioHardwarePropertyProcessIsMaster = 'mast', kAudioHardwarePropertyIsInitingOrExiting = 'inot', kAudioHardwarePropertyDevices = 'dev#', kAudioHardwarePropertyDefaultInputDevice = 'dIn ', kAudioHardwarePropertyDefaultOutputDevice = 'dOut', kAudioHardwarePropertyDefaultSystemOutputDevice = 'sOut', kAudioHardwarePropertyDeviceForUID = 'duid', kAudioHardwarePropertyProcessIsAudible = 'pmut', kAudioHardwarePropertySleepingIsAllowed = 'slep', kAudioHardwarePropertyUnloadingIsAllowed = 'unld', kAudioHardwarePropertyHogModeIsAllowed = 'hogr', kAudioHardwarePropertyRunLoop = 'rnlp', kAudioHardwarePropertyPlugInForBundleID = 'pibi', kAudioHardwarePropertyUserSessionIsActiveOrHeadless = 'user' };

What's happening there internally?