pom-ng:lua
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| pom-ng:lua [2014/06/03 11:47] – [event] Timestamps are microseconds since epoch gmsoft | pom-ng:lua [2020/05/26 21:59] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 260: | Line 260: | ||
| Called when an instance of the output is stopped. This function must be implemented by addon. | Called when an instance of the output is stopped. This function must be implemented by addon. | ||
| - | === output: | + | === output: |
| Call this function to start listening to a particular event. You must call output: | Call this function to start listening to a particular event. You must call output: | ||
| Line 267: | Line 267: | ||
| * // | * // | ||
| * // | * // | ||
| + | * //filter//: String containing an event filter, optional. | ||
| === output: | === output: | ||
| Line 277: | Line 278: | ||
| Called when an instance of the output is started. This function must be implemented by addon. | Called when an instance of the output is started. This function must be implemented by addon. | ||
| - | === output: | + | === output: |
| Start listening to payloads. Every payload will be processed. It's up to the output to filter them. If you don't need a specific function, you can specify nil instead. | Start listening to payloads. Every payload will be processed. It's up to the output to filter them. If you don't need a specific function, you can specify nil instead. | ||
| Line 284: | Line 285: | ||
| * // | * // | ||
| * // | * // | ||
| + | * //filter//: Pload filter to use, optional. | ||
| == Parameters of the above functions: == | == Parameters of the above functions: == | ||
| Line 310: | Line 312: | ||
| == Returns: == | == Returns: == | ||
| Returns the event related to this payload. | Returns the event related to this payload. | ||
| + | |||
| + | === pload.filename === | ||
| + | |||
| + | == Returns: == | ||
| + | Returns the pload filename if it has been set, nil otherwise. | ||
| === pload.parent === | === pload.parent === | ||
| Line 348: | Line 355: | ||
| Close the plugin and releases all the associated data. | Close the plugin and releases all the associated data. | ||
| - | === plugin: | + | === plugin: |
| Have the plugin listens to a specific event and process it. | Have the plugin listens to a specific event and process it. | ||
| == Parameters: == | == Parameters: == | ||
| * // | * // | ||
| + | * //filter//: String containing an event filter, optional. | ||
| === plugin: | === plugin: | ||
pom-ng/lua.1401796059.txt.gz · Last modified: (external edit)
