Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the chrome-native-messaging Reference Manual, generated automatically by Declt version 3.0 "Montgomery Scott" on Mon Apr 19 14:25:35 2021 GMT+0.
• Introduction | What chrome-native-messaging is all about | |
• Systems | The systems documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
Communicate with Chromium or Google Chrome extensions, as a native application.
For more information on what I mean, please look at nativeMessaging documentation.
This package provides 2 functions: read-from-ext
and send-to-ext
.
read-from-ext
(defun read-from-ext (stream)
"Reads the string sent from the extension. The stream is usually *standard-input*.")
A typical call to this function looks like this (using the jsown
package to parse the JSON):
(let* ((buffer (chromium-native-messaging:read-from-ext *standard-input*))
(json-object (jsown:parse buffer)))
; code
)
send-to-ext
(defun send-to-ext (string output-stream)
"Sends a string to the extension. Usually, output-stream is *standard-output*.")
A typical call looks like this (again, using the jsown
package):
(chrome-native-messaging:send-to-ext
(jsown:to-json
(jsown:new-js
("foo" "bar")))
*standard-output*)
MIT license.
Next: Files, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The chrome-native-messaging system |
Florian Margaine <florian@margaine.com>
MIT License
A package to communicate with a Chrome extension as the native application
trivial-utf-8
chrome-native-messaging.asd (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The chrome-native-messaging.asd file | ||
• The chrome-native-messaging/package.lisp file | ||
• The chrome-native-messaging/read.lisp file | ||
• The chrome-native-messaging/send.lisp file |
Next: The chrome-native-messaging/package․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
chrome-native-messaging.asd
chrome-native-messaging (system)
Next: The chrome-native-messaging/read․lisp file, Previous: The chrome-native-messaging․asd file, Up: Lisp files [Contents][Index]
chrome-native-messaging (system)
package.lisp
Next: The chrome-native-messaging/send․lisp file, Previous: The chrome-native-messaging/package․lisp file, Up: Lisp files [Contents][Index]
package.lisp (file)
chrome-native-messaging (system)
read.lisp
read-from-ext (function)
read-length (function)
Previous: The chrome-native-messaging/read․lisp file, Up: Lisp files [Contents][Index]
read.lisp (file)
chrome-native-messaging (system)
send.lisp
send-to-ext (function)
integer-to-bytes (function)
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The chrome-native-messaging package |
package.lisp (file)
common-lisp
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported functions |
Previous: Exported definitions, Up: Exported definitions [Contents][Index]
Reads the string sent from the extension. The stream is usually *standard-input*.
read.lisp (file)
Sends a string to the extension. Usually, output-stream is *standard-output*.
send.lisp (file)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal functions |
Previous: Internal definitions, Up: Internal definitions [Contents][Index]
send.lisp (file)
Reads the length of the message from the first 4 bytes
read.lisp (file)
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | C F L |
---|
Jump to: | C F L |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | F I R S |
---|
Jump to: | F I R S |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | C P S |
---|
Jump to: | C P S |
---|