Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External hooking API #700

Closed
StoneCypher opened this issue May 3, 2022 · 0 comments
Closed

External hooking API #700

StoneCypher opened this issue May 3, 2022 · 0 comments
Milestone

Comments

@StoneCypher
Copy link
Owner

We need to be able to set hooks from the outside. This takes place in two API sets: the implementation hooking API, and the convenience fluent API.

The implementation hooking API is two calls which have object args and return boolean for success:

  1. set_hook({ ... })
  2. remove_hook({ ... })

The convenience fluent API is a call for each hook and unhook type, take positional args, and return the machine so that they can chain. As a few examples, non-exhaustively:

  1. hook('a', 'b', handler)
  2. hook_action('a', 'b', 'demo', handler)
  3. unhook('a', 'b')

API calls are described at #660.

Fluent calls are described at #699.

@StoneCypher StoneCypher mentioned this issue May 3, 2022
@StoneCypher StoneCypher added this to the Hooks milestone May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant