summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2011-12-14Use g_list_find_custom to find sinks and inputsBenjamin Franzke2-69/+58
Used when updating or removing sinks or inputs.
2011-12-13Free old members when updating sinks/inputsBenjamin Franzke1-4/+6
2011-12-13sink_(input)_info_cb: Use interface_set_status to display errorsBenjamin Franzke1-5/+7
2011-12-13Let interface_set_status use va argsBenjamin Franzke3-11/+12
2011-12-13Add goto based error-path cleanup to mainBenjamin Franzke4-41/+51
2011-12-13Quit mainloop in quit, so we quit even when we're disconnectedBenjamin Franzke1-1/+1
2011-12-13Be a bit more verbose on connection errorBenjamin Franzke1-3/+5
2011-12-13Quit when initial connection failsBenjamin Franzke1-0/+1
2011-12-13Output connection lost when context failsBenjamin Franzke1-2/+1
2011-12-13subscribe_cb: Check removed object to be known by usBenjamin Franzke1-0/+4
2011-12-13Allow to quit with a non-ready contextBenjamin Franzke2-3/+15
2011-12-13Fix some leaksBenjamin Franzke3-6/+38
2011-12-13interface: Rename print_sink_list to interface_redrawBenjamin Franzke4-8/+9
2011-12-13Add a list_foreach makro for GListBenjamin Franzke4-40/+26
Saves around 1-2 lines per foreach, and should be more error prone.
2011-12-13command: Assert when chooser input has unexpected valueBenjamin Franzke1-2/+8
2011-12-13config: Read keymap from configuration fileBenjamin Franzke8-191/+386
This needed a split of the switch that handled input before into several small callback functions.
2011-12-13sink: Remove struct typedefsBenjamin Franzke3-30/+30
2011-12-13Add config property to select display name to useBenjamin Franzke6-10/+42
2011-12-12Use g_list_insert_sorted for sink priorityBenjamin Franzke1-14/+10
2011-12-12Revert "Use g_list_find_custom to calculate sink position"Benjamin Franzke2-14/+17
This reverts commit 3898263f329e877d9b6a997d7a92851908d19166.
2011-12-12Use g_list_find_custom to calculate sink positionBenjamin Franzke2-17/+14
The compare function matches against the configured sink priority.
2011-12-12Read config from config- not data-dirsBenjamin Franzke1-7/+18
glib provides no wrapper, so we have to loop ourselves over system and user dirs.
2011-12-12config: Add some more (generic) priority examplesBenjamin Franzke1-0/+11
..and make them default.
2011-12-12Implement a priority based sink order assignmentBenjamin Franzke7-9/+189
This is handsome when using udev based device discovery.
2011-12-05interface: Fix unitialized variableBenjamin Franzke1-1/+1
2011-10-31Dont show noentity errorsBenjamin Franzke1-0/+4
They happen from time to time, i guess when an entity goes away but we request some updates for it, since we didnt got the remove event yet. Thats a usual case in asynchronous communication.
2011-10-22interface: Derive new chooser_input directly when movingBenjamin Franzke3-35/+18
Dont schedule this until redraw, since this needed hacks to ensure we got the update.
2011-10-22interface: Dont move a sink_input if there is only one sinkBenjamin Franzke1-1/+4
2011-10-22Add License header to source filesBenjamin Franzke7-0/+131
2011-10-22Remove now invalid comments for the info callbacksBenjamin Franzke1-6/+0
2011-10-22Fix 80 column widthBenjamin Franzke3-47/+97
2011-10-21Fix selection when moving an input aroundBenjamin Franzke3-2/+9
We may not get the update for the moved index immediately, but we calculate the new position for the selection on redraw. So schedule redraw until we get the update, when we move around.
2011-10-21interface: Calculate offsets less oftenBenjamin Franzke1-17/+15
2011-10-21Make use of gradual updatesBenjamin Franzke2-93/+123
..to stop retreiving all sinks and inputs on every small change.
2011-10-21Store all input_infos in one big listBenjamin Franzke4-37/+85
This makes the lookup routines independent of each other, which allows gradual updates later.
2011-10-21pa-sink-ctl.h: Remove private functionsBenjamin Franzke2-94/+89
This involves moving functions around in pa-sink-ctl.c so that we dont need to declare them additionally.
2011-10-21Fix ident mistakes introduces by previous mass changesBenjamin Franzke4-164/+172
Variables were substituted by sed, so indentation got messed up.
2011-10-21Stop using global variables.Benjamin Franzke4-204/+219
Rather store it in a context, thats used everywhere as parameter, or as userdata.
2011-10-21interface: Stop the use of ugly tmp structuresBenjamin Franzke1-40/+28
2011-10-21Merge sink.h and sink_input.hBenjamin Franzke4-21/+11
2011-10-21Use a GList instead of GArray for sinks.Benjamin Franzke7-147/+84
This lets us drop our ugly GArray wrappers sink.c and sink_input.c. It will make gradual updates of sinks easier, since elements can be added and dropped everywhere in the list easily.
2011-10-21interface: Cache some boolean expressionsBenjamin Franzke1-4/+8
2011-10-21signalfd: Read out received signalsBenjamin Franzke1-0/+11
2011-10-20Use signalfd if availableBenjamin Franzke3-3/+40
If kqueue can be added as well, our homegrown kinda ugly signal dispatcher could be killed.
2011-10-20g_unix_signal: Remove g_ prefix to not collide with glibBenjamin Franzke5-39/+43
There is a g_unix_signal_new function in glib as well now, but that is only allowed to be used for SIGINT, SIGHUP and SIGTERM, so we have to stay with our own.
2011-10-20Kill off g_curses_inputBenjamin Franzke4-101/+13
Use a g_io_channel that listens to STDIN_FILENO instead.
2011-10-19interface_set_status: Rename "save" to "status"Benjamin Franzke1-5/+6
2011-10-19interface: Add defines for special chooser_input statesBenjamin Franzke1-13/+16
2011-10-19g_curses_input: Fix coding styleBenjamin Franzke2-9/+19
2011-10-19Makefile.am: Use variables rather then substitutionsBenjamin Franzke1-2/+3
Also set preprocessor flags in AM_CPPFLAGS