Add to git.
[monolith.git] / doc / ml_unregister_action.3.html
1 <html>
2 <head>
3 <meta name="generator" content="groff -Thtml, see www.gnu.org">
4 <meta name="Content-Style" content="text/css">
5 <title>ml_register_action</title>
6 </head>
7 <body>
8
9 <h1 align=center>ml_register_action</h1>
10 <a href="#NAME">NAME</a><br>
11 <a href="#SYNOPSIS">SYNOPSIS</a><br>
12 <a href="#DESCRIPTION">DESCRIPTION</a><br>
13 <a href="#AUTHOR">AUTHOR</a><br>
14 <a href="#LICENSE">LICENSE</a><br>
15 <a href="#VERSION">VERSION</a><br>
16 <a href="#SEE ALSO">SEE ALSO</a><br>
17
18 <hr>
19 <!-- Creator     : groff version 1.17.2 -->
20 <!-- CreationDate: Sat Aug 31 18:06:07 2002 -->
21 <a name="NAME"></a>
22 <h2>NAME</h2>
23 <table width="100%" border=0 rules="none" frame="void"
24        cols="2" cellspacing="0" cellpadding="0">
25 <tr valign="top" align="left">
26 <td width="10%"></td><td width="90%">
27 ml_register_action, ml_unregister_action - register callbacks</td></table>
28 <a name="SYNOPSIS"></a>
29 <h2>SYNOPSIS</h2>
30
31 <table width="100%" border=0 rules="none" frame="void"
32        cols="2" cellspacing="0" cellpadding="0">
33 <tr valign="top" align="left">
34 <td width="10%"></td><td width="90%">
35 <pre><b>#include &lt;monolith.h&gt;
36
37 const char *ml_register_action (ml_session session, void (*callback_fn) (ml_session, void *), void *data);
38 void ml_unregister_action (ml_session session, const char *action_id);
39 </b></pre></td></table>
40 <a name="DESCRIPTION"></a>
41 <h2>DESCRIPTION</h2>
42
43 <table width="100%" border=0 rules="none" frame="void"
44        cols="2" cellspacing="0" cellpadding="0">
45 <tr valign="top" align="left">
46 <td width="10%"></td><td width="90%">
47 Widgets such as buttons may register actions (callback
48 functions) to be run when a user clicks a button or submits
49 a form. Each action is associated with a unique action ID (a
50 string). A separate set of actions is registered within each
51 session. The callback function is invoked as <b>void
52 callback_fn (ml_session session, void
53 *data)</b>.</td></table>
54
55 <table width="100%" border=0 rules="none" frame="void"
56        cols="2" cellspacing="0" cellpadding="0">
57 <tr valign="top" align="left">
58 <td width="10%"></td><td width="90%">
59 <b>ml_register_action</b> registers an action within a given
60 session and returns the action ID string.</td></table>
61
62 <table width="100%" border=0 rules="none" frame="void"
63        cols="2" cellspacing="0" cellpadding="0">
64 <tr valign="top" align="left">
65 <td width="10%"></td><td width="90%">
66 <b>ml_unregister_action</b> unregisters an
67 action.</td></table>
68 <a name="AUTHOR"></a>
69 <h2>AUTHOR</h2>
70
71 <table width="100%" border=0 rules="none" frame="void"
72        cols="2" cellspacing="0" cellpadding="0">
73 <tr valign="top" align="left">
74 <td width="10%"></td><td width="90%">
75 Richard Jones &lt;rich@annexia.org&gt;</td></table>
76 <a name="LICENSE"></a>
77 <h2>LICENSE</h2>
78
79 <table width="100%" border=0 rules="none" frame="void"
80        cols="2" cellspacing="0" cellpadding="0">
81 <tr valign="top" align="left">
82 <td width="10%"></td><td width="90%">
83 GNU LGPL (see http://www.gnu.org/)</td></table>
84 <a name="VERSION"></a>
85 <h2>VERSION</h2>
86
87 <table width="100%" border=0 rules="none" frame="void"
88        cols="2" cellspacing="0" cellpadding="0">
89 <tr valign="top" align="left">
90 <td width="10%"></td><td width="90%">
91 monolith-1.0.0</td></table>
92 <a name="SEE ALSO"></a>
93 <h2>SEE ALSO</h2>
94
95 <table width="100%" border=0 rules="none" frame="void"
96        cols="2" cellspacing="0" cellpadding="0">
97 <tr valign="top" align="left">
98 <td width="10%"></td><td width="90%">
99 <b>new_ml_button(3)</b>.</td></table>
100 <hr>
101 </body>
102 </html>