pr_unloadlibrary.rst (740B)
1 PR_UnloadLibrary 2 ================ 3 4 Unloads a library loaded with :ref:`PR_LoadLibrary`. 5 6 7 Syntax 8 ------ 9 10 .. code:: 11 12 #include <prlink.h> 13 14 PRStatus PR_UnloadLibrary(PRLibrary *lib); 15 16 17 Parameters 18 ~~~~~~~~~~ 19 20 The function has this parameter: 21 22 ``lib`` 23 A reference previously returned from :ref:`PR_LoadLibrary`. 24 25 26 Returns 27 ~~~~~~~ 28 29 The function returns one of the following values: 30 31 - If successful, ``PR_SUCCESS``. 32 - If unsuccessful, ``PR_FAILURE``. Use :ref:`PR_GetError` to find the 33 reason for the failure. 34 35 36 Description 37 ----------- 38 39 This function undoes the effect of a :ref:`PR_LoadLibrary`. After calling 40 this function, future references to the library using its identity as 41 returned by :ref:`PR_LoadLibrary` will be invalid.