summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/cmd_line.xml
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2012-03-14 15:42:22 -0400
committerNat Goodspeed <nat@lindenlab.com>2012-03-14 15:42:22 -0400
commitcb38ceb89fc34105ad2ba2fdfa35faa2918d0346 (patch)
tree3a994774b5c17977ce527b05c672b1d42fce80c3 /indra/newview/app_settings/cmd_line.xml
parent87b1a16d80a1ef681a172512274e921d5874c62c (diff)
Add --leap command-line switch to launch one or more LEAP plugins.
You can specify one or more instances of --leap 'command line'. Each such command line is parsed using bash-like conventions, notably honoring double quotes, e.g. --leap '"c:/Program Files/Something/something.exe" arg1 arg2'. (Specifying such an argument in a Windows Command Prompt may be tricky.) Such a program should read its stdin and write to its stdout using LLSD Event API Plugin protocol: length:serialized_LLSD where 'length' is the decimal integer count of bytes in serialized_LLSD, ':' is a literal colon character, and 'serialized_LLSD' is notation-format LLSD. A typical LLSD object is a map containing 'pump' and 'data' keys, where 'pump' is the name of the LLEventPump on which to send 'data' (or on which 'data' was received). In particular, the initial LLSD object on stdin mentions the name of this plugin's reply LLEventPump: the LLEventPump that will send every subsequent received event to the plugin's stdin. Anything written to the plugin's stderr will be logged in the viewer log. In addition to being generally useful, this helps debug problems with particular plugins.
Diffstat (limited to 'indra/newview/app_settings/cmd_line.xml')
-rw-r--r--indra/newview/app_settings/cmd_line.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/app_settings/cmd_line.xml b/indra/newview/app_settings/cmd_line.xml
index 1a8b4560e6..be79f91919 100644
--- a/indra/newview/app_settings/cmd_line.xml
+++ b/indra/newview/app_settings/cmd_line.xml
@@ -143,6 +143,19 @@
<string>InBandwidth</string>
</map>
+ <key>leap</key>
+ <map>
+ <key>desc</key>
+ <string>command line to run an LLSD Event API Plugin</string>
+ <key>count</key>
+ <integer>1</integer>
+ <!-- you can specify multiple such plugins -->
+ <key>compose</key>
+ <boolean>true</boolean>
+ <key>map-to</key>
+ <string>LeapCommand</string>
+ </map>
+
<key>logfile</key>
<map>
<key>count</key>