emun values defined in Mac OS headers
I am trying to access constant values defined in enum statements.This should be easy to do but I cannot figure this one out.
The following code segment is taken out of the file AEDataModel.h
enum {
typeAEList = 'list',
typeAERecord = 'reco',
typeAppleEvent = 'aevt',
... };
A desparte trial to define these as foreign variables does not work either, leading to an unresolved external function error as if the module was not registered.
(fli:register-module :AE
:real-name (namestring (truename "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE"))
:connection-style :immediate)
(fli:define-foreign-variable (typeAppleEvent "typeAppleEvent")
:module :AE
:accessor :constant)
CL-USER 27 > (typeAppleEvent)
Error: Foreign function TYPEAPPLEEVENT trying to call to unresolved external function "typeAppleEvent".
1 (abort) Return to level 0.
2 Return to top loop level 0.
Thanks
Bruno