Commit df7bb07a authored by Dan Egnor's avatar Dan Egnor
Browse files

Tcl adapter, etc.

parent cbdfb1a3
......@@ -45,8 +45,12 @@ You may also browse the CVS repository for
<h3>News.</h3>
<dl>
<dt>18 September 2001
<dd>Version 0.8 released, including a <a href="oop_tcl">source adapter</a>
for <a href="http://www.purl.org/tcl/home/">Tcl/Tk</a>.<p>
<dt>7 October 2000
<dd>Version 0.6 released, including a <a href="oop_rl">source adapter</a>
<dd>Version 0.6 released, including a <a href="oop_rl">sink adapter</a>
for the <a href="http://cnswww.cns.cwru.edu/~chet/readline/rltop.html">GNU
Readline Library</a>.<p>
......
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<title>liboop: oop_tcl_new(), oop_tcl_delete()</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head><body>
<h2>oop_tcl_new(), oop_tcl_delete()</h2>
<pre>
#include &lt;oop.h&gt;
#include &lt;oop-tcl.h&gt;
oop_source *oop_tcl_new();
void oop_tcl_delete();
</pre>
<h3>Description.</h3>
<dl>
<dt><b>oop_tcl_new</b>
<dd>Create a liboop source which uses the
<a href="http://www.purl.org/tcl/man/tcl8.3.2/TclLib/DoOneEvent.htm">Tcl
event loop</a> for events. There is only one such event loop, so this
function is global. You may call it multiple times; it will return the same
event source, but keep count of the number of users.<p>
Events will be dispatched when the Tcl event loop is run, either directly
via Tcl_DoOneEvent() or indirectly via Tk_MainLoop(). Unfortunately, there
is no way to stop the Tcl event loop, so return values from event handlers
are ignored.<p>
<dt><b>oop_tcl_delete</b>
<dd>Delete the liboop source created with oop_tcl_new(). This decrements the
count of users; when oop_tcl_delete has been called as many times as
oop_tcl_new, the event source is removed.<p>
</dl>
<hr><a href="ref">liboop reference</a></body></html>
......@@ -80,7 +80,7 @@ void <a href="oop_adns_query">oop_adns_cancel</a>(oop_adns_query *);
<hr>
<h4><a href="http://gtk.org/">GLib</a> Event Source Adapter.</h4>
<p><em>GLib is copyright by Peter Mattis, Spencer Kimball and Josh MacDonald,
<p><em>GLib is copyrighted by Peter Mattis, Spencer Kimball and Josh MacDonald,
and licensed under the terms of the
<a href="http://www.fsf.org/copyleft/lgpl.html">GNU Library GPL</a>.</em></p>
......@@ -96,6 +96,21 @@ void <a href="oop_glib">oop_glib_delete</a>();
void *<a href="oop_glib">oop_glib_return</a>();
</pre>
<hr>
<h4><a href="http://www.purl.org/tcl/home/">Tcl/Tk</a>
Event Source Adapter.</h4>
<p><em>Tcl is copyrighted by the Regents of the University of California,
Sun Microsystems, Inc., and other parties.</em></p>
<pre>
#include &lt;oop-tcl.h&gt;
/* <em>Create and destroy a liboop Tcl adapter.</em> */
oop_source *<a href="oop_tcl">oop_tcl_new</a>();
void <a href="oop_tcl">oop_tcl_delete</a>();
</pre>
<hr>
<h4><a href="http://www.w3.org/Library/">Libwww</a> Event Sink Adapter.</h4>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment