JianyuWang0623 opened a new pull request, #3726:
URL: https://github.com/apache/nuttx-apps/pull/3726

   *Note: Please adhere to [Contributing 
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   
   Extend init actions from bare event names to a property-based trigger model:
   
   ```
   on <event> [&& <event>]*
   ```
   
   `<event>` is a name or `property:key=value` (fnmatch, `!=` inverts). Adds a
   `setprop` builtin and a pluggable poller backend (`property_simple.c`). Bare
   names map to `default==<name>`, so existing `on <event>` rc files keep 
working.
   Includes three fixes to the new parser and matcher: event parsing loss,
   multi-event AND semantics, and size_t index underflow.
   
   ## Impact
   
   - rc files: new `on property:...` syntax and `setprop`; old `on <event>` 
unchanged.
   - Kconfig: `..._ACTION_MANAGER_EVENT_MAX` (32) → `..._ACTION_EVENTS_MAX` 
(default 1, range 1..64); configs setting the old symbol must be updated.
   - Build: adds `property_simple.c`. No hardware or security impact.
   
   ## Testing
   
   ```
   on boot
      setprop key_test
      setprop key_test value_test  /* property changed and matched */
      trigger event_test
   
   on event_test && property:key_test=value_test
      echo "on event_test, property changed!"
   
   on property:key_test=value_test
      echo "property changed!"
   ```
   
   `tools/checkpatch.sh -f` passes on all changed files.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to