forked from asterisk/ari-py
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client/model: Allow for variable arguments to be passed to callbacks
This patch allows a user of ari-py to pass arguments (*args, **kwargs) to callback functions registered for events. This is particularly useful when maintaining state; the current state can be passed around the callbacks as opposed to being maintained globally. Note that passing said arguments is completely optional.
- Loading branch information
Samuel Fortier-Galarneau
committed
Aug 29, 2014
1 parent
75f8138
commit 87194df
Showing
4 changed files
with
110 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters