1
0
Fork 0
forked from fun/fun

Added basic PC/SC (WinSCard) smartcard support. (0.17.0)

This commit is contained in:
Johannes Findeisen 2025-10-02 20:08:21 +02:00
commit 945d668ccb
18 changed files with 693 additions and 4 deletions

14
examples/pcsc_example.fun Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env fun
// Minimal PCSC example for Fun language
// Establish context and list readers (prints [] if none or unsupported)
class Pcsc()
fun list_readers(this)
ctx = pcsc_establish()
readers = pcsc_list_readers(ctx)
print(readers)
_ = pcsc_release(ctx)
p = Pcsc()
p.list_readers()