Skip to content

Instantly share code, notes, and snippets.

@Kreijstal
Last active March 10, 2024 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kreijstal/b4a7528245c00625f80cf31fe38e9829 to your computer and use it in GitHub Desktop.
Save Kreijstal/b4a7528245c00625f80cf31fe38e9829 to your computer and use it in GitHub Desktop.
can link

Let the signaure be for example

extern XExtDisplayInfo *XextAddDisplay(
    XExtensionInfo*     /* extinfo */,
    Display*            /* dpy */,
    _Xconst char*       /* ext_name */,
    XExtensionHooks*    /* hooks */,
    int                 /* nevents */,
    XPointer            /* data */
);

then you can test

python canlink.py "void* XextAddDisplay(void*, void*, void*, void*, int, void*);" -- -L. -lXext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment