| 22 some limitations placed upon it; it will be parsed and evaluated |
22 some limitations placed upon it; it will be parsed and evaluated |
| 23 before the rest of the Tcl script, so it cannot reference any other |
23 before the rest of the Tcl script, so it cannot reference any other |
| 24 variables or procedures declared in the script. In practice this is |
24 variables or procedures declared in the script. In practice this is |
| 25 not a problem, as the only thing this procedure should do is return a |
25 not a problem, as the only thing this procedure should do is return a |
| 26 simple list containing five items: the name of the script, its version |
26 simple list containing five items: the name of the script, its version |
| 27 number, a short description, the author, and a web page. For example: |
27 number, a summary (just a few words) of its function, a short (longer |
| |
28 than the summary, but no more than a couple of sentences if possible) |
| |
29 description, the author, and a web page. For example: |
| 28 |
30 |
| 29 proc plugin_init { } { |
31 proc plugin_init { } { |
| 30 return [ list "Example Plugin" \ |
32 return [ list "Example Plugin" \ |
| 31 "1.0" \ |
33 "1.0" \ |
| |
34 "Example plugin registration" \ |
| 32 "Example of how to register a plugin for the Tcl HOWTO" \ |
35 "Example of how to register a plugin for the Tcl HOWTO" \ |
| 33 "Ethan Blanton <eblanton@cs.purdue.edu>" \ |
36 "Ethan Blanton <eblanton@cs.purdue.edu>" \ |
| 34 "http://gaim.sf.net/" ] |
37 "http://gaim.sf.net/" ] |
| 35 } |
38 } |
| 36 |
39 |