Changeset 1433ecda in mainline for uspace/srv/audio/hound/hound.c


Ignore:
Timestamp:
2018-04-04T15:42:37Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/audio/hound/hound.c

    r47b2d7e3 r1433ecda  
    111111}
    112112
    113 static errno_t hound_disconnect_internal(hound_t *hound, const char* source_name, const char* sink_name);
     113static errno_t hound_disconnect_internal(hound_t *hound, const char *source_name, const char *sink_name);
    114114
    115115/**
     
    287287        if (ret != EOK) {
    288288                log_debug("Failed to initialize new audio device: %s",
    289                         str_error(ret));
     289                    str_error(ret));
    290290                free(dev);
    291291                return ret;
     
    517517 * @return Error code.
    518518 */
    519 errno_t hound_connect(hound_t *hound, const char* source_name, const char* sink_name)
     519errno_t hound_connect(hound_t *hound, const char *source_name, const char *sink_name)
    520520{
    521521        assert(hound);
     
    526526            audio_source_list_instance(list_first(&hound->sources));
    527527        if (str_cmp(source_name, "default") != 0)
    528             source = find_source_by_name(&hound->sources, source_name);
     528                source = find_source_by_name(&hound->sources, source_name);
    529529
    530530        audio_sink_t *sink =
    531531            audio_sink_list_instance(list_first(&hound->sinks));
    532532        if (str_cmp(sink_name, "default") != 0)
    533             sink = find_sink_by_name(&hound->sinks, sink_name);
     533                sink = find_sink_by_name(&hound->sinks, sink_name);
    534534
    535535        if (!source || !sink) {
     
    556556 * @return Error code.
    557557 */
    558 errno_t hound_disconnect(hound_t *hound, const char* source_name, const char* sink_name)
     558errno_t hound_disconnect(hound_t *hound, const char *source_name, const char *sink_name)
    559559{
    560560        assert(hound);
     
    574574 * This function has to be called with the list_guard lock held.
    575575 */
    576 static errno_t hound_disconnect_internal(hound_t *hound, const char* source_name,
    577     const char* sink_name)
     576static errno_t hound_disconnect_internal(hound_t *hound, const char *source_name,
     577    const char *sink_name)
    578578{
    579579        assert(hound);
     
    585585                if (str_cmp(connection_source_name(conn), source_name) == 0 ||
    586586                    str_cmp(connection_sink_name(conn), sink_name) == 0) {
    587                     log_debug("Removing %s -> %s", connection_source_name(conn),
    588                         connection_sink_name(conn));
    589                     list_remove(it);
    590                     connection_destroy(conn);
     587                        log_debug("Removing %s -> %s", connection_source_name(conn),
     588                            connection_sink_name(conn));
     589                        list_remove(it);
     590                        connection_destroy(conn);
    591591                }
    592592        }
Note: See TracChangeset for help on using the changeset viewer.