summaryrefslogtreecommitdiffstats
path: root/src/PortID.hpp
AgeCommit message (Collapse)AuthorFilesLines
2020-11-28Index clients and ports by IDDavid Robillard1-0/+42
2020-11-28Factor out ClientTypeDavid Robillard1-5/+3
2020-11-28Remove null port IDsDavid Robillard1-15/+5
This statically ensures that a PortID is always valid.
2020-11-28Factor out Connector from PatchageCanvasDavid Robillard1-0/+14
This finally breaks the dependency of the canvas on the entire application, and fixes the confusing situation where it wasn't clear whether connect/disconnect methods made/broke connections on the canvas or on the system.
2020-11-28Simplify driver connection interfaceDavid Robillard1-0/+1
2020-11-28Always index Jack ports and refer to them by nameDavid Robillard1-81/+72
The Jack API annoyingly doesn't provide a way to get an ID from a port name. Since notification callbacks apparently don't have to worry about realtime concerns anymore, simply use the full name string as an ID everywhere. This means that every Jack port has a non-null ID, and all ports are always indexed, so the kludges for this in the canvas can be removed.
2020-11-27Ensure that ports always have an IDDavid Robillard1-5/+5
2020-11-27Explicitly delete or define all special member functionsDavid Robillard1-13/+5
2020-11-27Remove reliance on deprecated implicit assignment operatorDavid Robillard1-6/+16
2020-11-27Fix unused parameter warningsDavid Robillard1-1/+1
2020-11-27Make single-argument constructors explicitDavid Robillard1-1/+1
2020-11-27Avoid C castsDavid Robillard1-2/+2
2020-11-27Initialize all membersDavid Robillard1-7/+3
2020-11-27Use consistent naming convention for enum classesDavid Robillard1-12/+12
2020-11-27Use enum classesDavid Robillard1-17/+20
2020-11-27Always use braces around statementsDavid Robillard1-1/+2
2020-02-09Format all code with clang-formatDavid Robillard1-18/+40
This configuration tries to get as close to the previous style as possible so the changes aren't too dramatic. It's still far from ideal and the code could use some adaptation, but this makes things much easier to work on.
2019-12-29Clean up includesDavid Robillard1-4/+4
2015-02-17Delete trailing whitespace.David Robillard1-1/+0
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5582 a436a847-0d15-0410-975c-d299462d15a1
2014-04-26Update copyright date.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5371 a436a847-0d15-0410-975c-d299462d15a1
2013-03-17Update copyright date.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5087 a436a847-0d15-0410-975c-d299462d15a1
2012-01-18Use consistent *_config.h rather than *-config.h.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3963 a436a847-0d15-0410-975c-d299462d15a1
2011-11-25Switch to GPLv3+.David Robillard1-7/+6
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3623 a436a847-0d15-0410-975c-d299462d15a1
2011-04-16Update copyright headersDavid Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3153 a436a847-0d15-0410-975c-d299462d15a1
2011-02-04Fix warnings when building with --strict (but without --debug).David Robillard1-0/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2909 a436a847-0d15-0410-975c-d299462d15a1
2011-01-08Fix configuration header define names to not stomp on global namespace.David Robillard1-5/+5
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2794 a436a847-0d15-0410-975c-d299462d15a1
2010-12-15Improve performance for setups with many apps or ports.David Robillard1-1/+37
(Eliminate all linear searches for items, except one case for Jack ports which is unavoidable due to the Jack API, but is memoized, so each port will only be searched for once between refreshes). git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2712 a436a847-0d15-0410-975c-d299462d15a1
2010-12-15Clean up code.David Robillard1-4/+5
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2692 a436a847-0d15-0410-975c-d299462d15a1
2010-12-15Fix removal of ALSA duplex ports (remove both corresponding canvas ports).David Robillard1-8/+6
Use simpler (and seemingly less lockup prone) blocking ALSA sequencer event API. Only use a ringbuffer for JACK driver. Reduce memory usage. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2690 a436a847-0d15-0410-975c-d299462d15a1
2010-12-14Better error messages.David Robillard1-0/+21
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2685 a436a847-0d15-0410-975c-d299462d15a1
2010-09-04My name is David. :)David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2590 a436a847-0d15-0410-975c-d299462d15a1
2009-05-13Update copyright dates.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2000 a436a847-0d15-0410-975c-d299462d15a1
2009-05-13Strip trailing whitespace.David Robillard1-4/+4
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@1999 a436a847-0d15-0410-975c-d299462d15a1
2009-05-03Update waf configuration header for new waf scheme (in 1.5.6).David Robillard1-1/+1
Split low-level LV2 event buffer into separate class from EventBuffer (for reuse). git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@1958 a436a847-0d15-0410-975c-d299462d15a1
2008-12-21Change configuration header name to something less likely to conflict.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@1887 a436a847-0d15-0410-975c-d299462d15a1
2008-12-21Fix crash for very short lived Jack ports (fix ticket #188).David Robillard1-1/+4
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@1883 a436a847-0d15-0410-975c-d299462d15a1
2008-11-29Upgrade to waf 1.5.0.David Robillard1-3/+3
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@1823 a436a847-0d15-0410-975c-d299462d15a1
2008-10-03Support building locally against header-only libraries in autowaf.David Robillard1-1/+1
Remove CONFIG_H_PATH define and replace with just "config.h" (define messed up dependency tracking). git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@1600 a436a847-0d15-0410-975c-d299462d15a1
2008-09-07Separate PortRef (now PortID) from PatchageEvent.David Robillard1-0/+61
git-svn-id: http://svn.drobilla.net/lad/patchage@1477 a436a847-0d15-0410-975c-d299462d15a1