nyholku / purejavacomm

Pure Java implementation of JavaComm SerialPort
http://www.sparetimelabs.com/purejavacomm/index.html
BSD 3-Clause "New" or "Revised" License
359 stars 146 forks source link

OpenBSD Support #121

Open Koriel opened 5 years ago

Koriel commented 5 years ago

Are there plans for OpenBSD support?

I'm not familiar with the JNA interface, but looking through the code it looks like it would just need to have the Implementation class and FreeBSD currently has that, but would it be difficult to reuse the FreeBSD implementation and have it work for OpenBSD?

This is used for the Jetbrains IDEs and I think this is the last step I would need to get those fully functional on OpenBSD (I hope :P) If chances are good that it might work, I'd try to re-use the FreeBSD class and compile it to see.

nyholku commented 5 years ago

Hi, thanks for your interest. No, there are no plans for that as I could not possibly find the time to test it. However contributions are welcome. I think if you look at the code, just duplicating the FreeBSD class would get you a long way, I would think it would be 99% there already.

Koriel commented 5 years ago

Aah, k, thank you! Looked through JNA docs and doesn't look too bad, so I'll take a look when I've got a bit of time.