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 [2013/08/28 09:26] – Remove output_register function as it's not needed anymore. gmsoft | pom-ng:lua [2020/05/26 21:59] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 170: | Line 170: | ||
| local key, value | local key, value | ||
| key, value = data_iter() | key, value = data_iter() | ||
| - | | + | |
| | | ||
| - | local value_type = type(v) | + | local value_type = type(value) |
| if value_type == " | if value_type == " | ||
| print(" | print(" | ||
| Line 252: | Line 252: | ||
| === event.timestsamp === | === event.timestsamp === | ||
| == Returns: == | == Returns: == | ||
| - | Returns the timestamp when the event started in ms. | + | Returns the timestamp when the event started in micro seconds since epoch. |
| ==== output ==== | ==== output ==== | ||
| 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 300: | Line 302: | ||
| ==== pload ==== | ==== pload ==== | ||
| - | |||
| - | === pload.container === | ||
| - | |||
| - | == Returns: == | ||
| - | Returns the pload that was the container of the present pload if any. | ||
| === pload.data === | === pload.data === | ||
| Line 315: | 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 === | ||
| + | |||
| + | == Returns: == | ||
| + | Returns the pload that was the parent of the present pload if any. | ||
| === pload.type === | === pload.type === | ||
| 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.1377682010.txt.gz · Last modified: (external edit)
