aboutsummaryrefslogtreecommitdiffstats
path: root/ponymix.cc
Commit message (Collapse)AuthorAgeFilesLines
* ponymix: validate arg count before invoking functionDave Reisner2013-01-021-126/+83
| | | | | | | | | | | | | | | A few changes make this fun and easy: - Merge the function array into the string to action lookup and return a Command instead of simply an enum. A Command is the function and the min/max arg count. - Implement an InRange method for the Range class. - Add a Dispatch function to convert the string to Command and validate the arguments. This leaves us in a position where the argc parameter to each method is never used, but maybe some day a command will be added that takes a range of args rather than a fixed number.
* rename class Pulse to PulseClientDave Reisner2013-01-021-24/+24
|
* eschew _unused_ attributeDave Reisner2013-01-011-18/+14
|
* alias sane types to --device flagsDave Reisner2013-01-011-9/+35
|
* maybe fix app mode?Dave Reisner2013-01-011-1/+16
| | | | | | | A sources-output can only be moved to a new source, and a sink-input can only be moved to a new sink. So, derive the target type based on this. Also, reroute sink -> sink-input and source -> source-output to save some keystrokes.
* action, not optionDave Reisner2013-01-011-3/+4
|
* initial commitDave Reisner2013-01-011-0/+520