blob: 2d045281c67fe74df0256ed9c04aff0378b937bc [file] [log] [blame]
Guido van Rossumd8eb2111998-08-04 17:57:28 +00001<html>
2<head>
3<title>PyImport_BeImageID()</title>
4</head>
5<body text="#000000" bgcolor="#ffffff">
6
7<h1>PyImport_BeImageID()</h1>
8
9<dl compact>
10
11<dt><strong>NOTE:</strong><dt>
12
13<dd>This is documentation for the BeOS-specific
14 <code>PyImport_BeImageID()</code> function defined in
15 <tt>Python/importdl.c</tt>; it should be merged with the
16 <cite>Importing Modules</cite> section of the <cite>Python/C API</cite>
17 reference (or it should be the first member of a BeOS-specific
18 document in the <tt>BeOS</tt> directory).</dd>
19
20</dl>
21
22<dl compact
23
24<dt><code>image_id <b>PyImport_BeImageID</b>( char *<i>name</i> )</code></dt>
25
26<dd>Return the BeOS image ID (see the
27 <a href="file:///boot/beos/documentation/Be%20Book/The%20Kernel%20Kit/Images.html">Images</a>
28 section in the
29 <a href="file:///boot/beos/documentation/Be%20Book/The%20Kernel%20Kit/index.html">Kernel
30 Kit</a>) for the module object corresponding to a module <i>name</i>.
31 If the specified module is not dynamically loaded,
32 <code>PyImport_BeImageID()</code> will return <code>B_ERROR</code>,
33 otherwise it will return a valid <code>image_id</code>.
34
35 <p>Using <code>PyImport_BeImageID()</code> outside of a BeOS-specific
36 module is probably a very bad idea.</p></dd>
37
38</dl>
39
40<hr>
41<p>Function added by Donn Cave
42(<a href="mailto:donn@u.washington.edu"><tt>donn@u.washington.edu</tt></a>),
43documented by Chris Herborth
44(<a href="mailto:chrish@qnx.com"><tt>chrish@qnx.com</tt></a>).</p>
45
46</body>
47</html>