Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > cd14cddf3b3ceaf1193157472227757a > files > 318

parrot-doc-1.6.0-1mdv2010.0.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Parrot  - Dynamic Library</title>
        <link rel="stylesheet" type="text/css"
            href="../../../resources/parrot.css"
            media="all">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    </head>
    <body>
        <div id="wrapper">
            <div id="header">

                <a href="http://www.parrot.org">
                <img border=0 src="../../../resources/parrot_logo.png" id="logo" alt="parrot">
                </a>
            </div> <!-- "header" -->
            <div id="divider"></div>
            <div id="mainbody">
                <div id="breadcrumb">
                    <a href="../../../html/index.html">Home</a> &raquo; <a href="../../../html/pmc.html">PMCs</a> &raquo; Dynamic Library
                </div>

<h1><a name="NAME"
>NAME</a></h1>

<p>src/pmc/parrotlibrary.pmc &#45; Dynamic Library</p>

<h1><a name="DESCRIPTION"
>DESCRIPTION</a></h1>

<p>Class for holding info about a dynamic library.</p>

<p>Properties:</p>

<pre>    _filename               full path/file of lib
    _ro                     true after init</pre>

<p>All ParrotLibrary PMCs are in interp&#45;&#62;iglobals.</p>

<p>When a dynamic library (pmc or ops) is loaded, the load function returns a ParrotLibrary PMC.</p>

<h2><a name="Methods"
>Methods</a></h2>

<dl>
<dt><a name="void_init()"
><b><code>void init()</b></code></a></dt>
Initializes the library with a <code>NULL</code> oplib init function.
<dt><a name="void_destroy()"
><b><code>void destroy()</b></code></a></dt>
Destroys the library, closing the shared library.
<dt><a name="PMC_*clone()"
><b><code>PMC *clone()</b></code></a></dt>
Creates and returns a clone of the library.
<dt><a name="INTVAL_get_bool()"
><b><code>INTVAL get_bool()</b></code></a></dt>
Returns whether a library has been successfully loaded.
<dt><a name="STRING_*get_string()"
><b><code>STRING *get_string()</b></code></a></dt>
Returns the name of the loaded library.
<dt><a name="void_*get_pointer()"
><b><code>void *get_pointer()</b></code></a></dt>
Get the pointer to the shared library handle.
<dt><a name="void_set_pointer(void_*handle)"
><b><code>void set_pointer(void *handle)</b></code></a></dt>
Set the pointer to the shared library handle.</dl>

<h1><a name="SEE_ALSO"
>SEE ALSO</a></h1>

<pre>    Date:    Mon, 29 Sep 2003 14:37:11 &#45;0400 (EDT)
    Subject: Library loading and initialization sequence
    From:    Dan Sugalski</pre>

<h1><a name="HISTORY"
>HISTORY</a></h1>

<p>Initial version by leo 2003.10.12.</p>
            </div> <!-- "mainbody" -->
            <div id="divider"></div>
            <div id="footer">
	        Copyright &copy; 2002-2009, Parrot Foundation.
            </div>
        </div> <!-- "wrapper" -->
    </body>
</html>