Skip to content

mvmn/gphoto2-jna

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gphoto2-jna

JNA bridge to GPhoto2 native library

Overview

The code in package x.mvmn.gphoto2.jna was generated using JNAerator:

java -jar jnaerator-0.12-shaded.jar -library gphoto2 /usr/local/lib/libgphoto2.dylib /usr/local/include/gphoto2/gphoto2/gphoto2.h -I/usr/local/include/gphoto2/ -mode Maven -noLibBundle -package x.mvmn.gphoto2.jna -f -runtime JNA

Certain modifications were made to generated code to avoid dependencies on JNAerator types - some of the internal GPhoto2 methods that were picked up by JNAerator had to be commented out (namely the gp_file_slurp methods), some methods were added overrides with ByReference instead of Pointer parameters, some structures were made non-abstract (generated as abstract by JNAerator for no obvious reason, making them impossible to use) etc.

Demos

See gphoto2-jna-demos repo for demos.

About

JNA bridge to GPhoto2 native library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages