File: scriptpersistency.html

package info (click to toggle)
librnd 4.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,812 kB
  • sloc: ansic: 126,990; sh: 2,602; makefile: 2,145; awk: 7
file content (8 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
When a script is unloaded, its action <act>preunload</act> is called. The
return value is saved as script persistent data. When the script is loaded
again later, it can use <act>ScriptPersistency</act>(<arg>read</arg>) to
read the data saved.
<p>
<act>ScriptPersistency</act>(<arg>remove</arg>) deletes the data from disk.
<p>
Note: the data is per script id, not per script file name.