PS_GET_OPAQUE(3)
π PS_GET_OPAQUE π
okay bestie, this is a page from the Library Functions Manual, section 3 β it's PS_GET_OPAQUE(3), and it's literally the shortest little bop in the pslib friend group. it's giving "small but essential", no cap. let's get into it π«Ά
β¨ NAME β¨
PS_get_opaque β returns the pointer which has been passed to PS_new2()
π SYNOPSIS π
#include <pslib.h>
void * PS_get_opaque(PSDoc *psdoc)
πΈ DESCRIPTION πΈ
so here's the lore, bestie. when you make a brand new document with PS_new2(3), you're allowed to hand it some user data β your own little secret stash of a pointer. that data gets tucked away internally, and every single time the errorhandler gets called, that same data gets passed along to it. so it's always there, riding shotgun. π
and later on, whenever you want it back? that's literally what this function is for. you call PS_get_opaque(), and boom β your pointer comes home. π¦
β RETURN VALUE β
the pointer that you passed to PS_new2() in the first place. that's it, that's the whole vibe check. iconic.
π SEE ALSO π
π AUTHOR π
this manual page was written by Uwe Steinmann <uwe@steinmann.cx>. we stan a documentation king. π
fr fr, if you only remember one thing: whatever you gave PS_new2(), this gives it back. no notes. periodt. π
this has been PS_GET_OPAQUE(3) from the Library Functions Manual, section 3, courtesy of the pslib gang β that's the source, that's the version, and the date is whatever your local man db says it is, i don't make the rules πβ¨ bye bestie, mwah ππ
π¦ where this page comes from
- debian bookworm: pslib-dev 0.4.7-1+b1
- debian trixie: pslib-dev 0.4.8-1+b1
- ubuntu jammy: pslib-dev 0.4.7-1
- ubuntu noble: pslib-dev 0.4.7-1build2
- ubuntu questing: pslib-dev 0.4.8-1
- ubuntu resolute: pslib-dev 0.4.8-1build1
- ubuntu stonking: pslib-dev 0.4.8-3 Β· GPL-2.0-or-later OR LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms