tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

pr_callback.rst (685B)


      1 PR_CALLBACKimplementation
      2 =========================
      3 
      4 Used to define pointers to functions that will be implemented by the
      5 client but called from a (different) shared library.
      6 
      7 
      8 Syntax
      9 ------
     10 
     11 .. code::
     12 
     13   #include <prtypes.h>type PR_CALLBACKimplementation
     14 
     15 
     16 Description
     17 -----------
     18 
     19 Functions that are implemented in an application (or shared library)
     20 that are intended to be called from another shared library (such as
     21 NSPR) must be declared with the ``PR_CALLBACK`` attribute. Normally such
     22 functions are passed by reference (pointer to function). The
     23 ``PR_CALLBACK`` attribute is included as part of the function's
     24 definition between its return value type and the function's name.