summaryrefslogtreecommitdiff
path: root/src/pa-sink-ctl.c
AgeCommit message (Collapse)AuthorFilesLines
2011-12-18Add volume_set to vol_ctl_objectBenjamin Franzke1-0/+2
2011-12-18Add mute cb to vol_ctl_objectBenjamin Franzke1-0/+3
2011-12-18Unify common sink(_input) properties to a base objectBenjamin Franzke1-14/+14
2011-12-15Fix incorrect priority matching comparisonBenjamin Franzke1-1/+1
2011-12-14Increase warning leaves, and fix new occured onesBenjamin Franzke1-6/+7
2011-12-14CosmeticBenjamin Franzke1-68/+63
2011-12-14Remove unused change_callbackBenjamin Franzke1-12/+0
2011-12-14Use g_list_find_custom to find sinks and inputsBenjamin Franzke1-68/+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 Franzke1-8/+4
2011-12-13Add goto based error-path cleanup to mainBenjamin Franzke1-37/+44
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-13Fix some leaksBenjamin Franzke1-5/+25
2011-12-13interface: Rename print_sink_list to interface_redrawBenjamin Franzke1-3/+3
2011-12-13Add a list_foreach makro for GListBenjamin Franzke1-12/+6
Saves around 1-2 lines per foreach, and should be more error prone.
2011-12-13sink: Remove struct typedefsBenjamin Franzke1-10/+10
2011-12-13Add config property to select display name to useBenjamin Franzke1-6/+17
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 Franzke1-8/+14
This reverts commit 3898263f329e877d9b6a997d7a92851908d19166.
2011-12-12Use g_list_find_custom to calculate sink positionBenjamin Franzke1-14/+8
The compare function matches against the configured sink priority.
2011-12-12Implement a priority based sink order assignmentBenjamin Franzke1-7/+43
This is handsome when using udev based device discovery.
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 Franzke1-7/+2
Dont schedule this until redraw, since this needed hacks to ensure we got the update.
2011-10-22Add License header to source filesBenjamin Franzke1-0/+19
2011-10-22Remove now invalid comments for the info callbacksBenjamin Franzke1-6/+0
2011-10-22Fix 80 column widthBenjamin Franzke1-16/+38
2011-10-21Fix selection when moving an input aroundBenjamin Franzke1-2/+7
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-21Make use of gradual updatesBenjamin Franzke1-89/+123
..to stop retreiving all sinks and inputs on every small change.
2011-10-21Store all input_infos in one big listBenjamin Franzke1-16/+27
This makes the lookup routines independent of each other, which allows gradual updates later.
2011-10-21pa-sink-ctl.h: Remove private functionsBenjamin Franzke1-85/+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 Franzke1-35/+34
Variables were substituted by sed, so indentation got messed up.
2011-10-21Stop using global variables.Benjamin Franzke1-66/+65
Rather store it in a context, thats used everywhere as parameter, or as userdata.
2011-10-21Merge sink.h and sink_input.hBenjamin Franzke1-1/+0
2011-10-21Use a GList instead of GArray for sinks.Benjamin Franzke1-13/+32
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-19interface: Rename status to interface_set_statusBenjamin Franzke1-7/+7
2011-10-19Coding style: Seperate line for function return typeBenjamin Franzke1-8/+16
2010-11-04get_input: only handle inputs, when context is readyBenjamin Franzke1-0/+3
2010-10-21get_sink_input_info: use pa_sink_info name attr as fallbackben1-1/+3
2010-07-23glib curses input-event added (replacement for g_timeout)ben1-7/+0
2010-07-23move sink_list var to sink.c (included from sink.h)ben1-2/+0
other c-files than sink.c get the extern definition via sink.h, only sink.c receives the non-extern one
2010-07-23use blocked instead of pending var name for syncben1-4/+4
2010-07-23change (global) variable visibility (ie be static)ben1-5/+5
2010-07-23increase exit smoothness + add some g_assertsben1-1/+7
2010-07-23remove old outcommented printfsben1-5/+2
2010-07-23use g_printerr instead of printf for errorsben1-7/+8