Here is a patch to add class support to psdev.c. I have verified it compiles and works.
Attach a file by drag & drop or click to upload