Changeset eafc7b2 in mainline for uspace/srv/audio/hound/iface.c


Ignore:
Timestamp:
2013-04-03T17:30:54Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
585af0d
Parents:
5ffcbaf
Message:

hound: Hook listings and connection routines

File:
1 edited

Legend:

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

    r5ffcbaf reafc7b2  
    7171        hound_remove_ctx(server, ctx);
    7272        hound_ctx_destroy(ctx);
    73         log_info("%s: %p, %d", __FUNCTION__, server, id);
     73        log_info("%s: %p, %#x", __FUNCTION__, server, id);
    7474        return EOK;
    7575}
     
    8888    const char *connection, int flags)
    8989{
    90         log_info("%s: %p, %zu, %s, %u", __FUNCTION__, server, *size, connection, flags);
    91         *list = malloc(sizeof(char *));
    92         **list = str_dup("FOO SINK");
    93         *size = 1;
    94         return EOK;
     90        log_info("%s: %p, %zu, %s, %#x\n", __FUNCTION__, server, *size,
     91            connection, flags);
     92        if ((flags & (HOUND_SINK_DEVS | HOUND_SINK_APPS)) != 0)
     93                return hound_list_sinks(server, list, size);
     94        if ((flags & (HOUND_SOURCE_DEVS | HOUND_SOURCE_APPS)) != 0)
     95                return hound_list_sources(server, list, size);
     96        return ENOTSUP;
    9597}
    9698
     
    98100{
    99101        log_info("%s: %p, %s -> %s", __FUNCTION__, server, source, sink);
    100         return ENOTSUP;
     102        return hound_connect(server, source, sink);
    101103}
    102104
     
    104106{
    105107        log_info("%s: %p, %s -> %s", __FUNCTION__, server, source, sink);
    106         return ENOTSUP;
     108        return hound_disconnect(server, source, sink);
    107109}
    108110
Note: See TracChangeset for help on using the changeset viewer.