Changeset 504f1ea3 in mainline for uspace/lib/hound/src/protocol.h


Ignore:
Timestamp:
2013-03-17T16:23:08Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9e1800c
Parents:
059490c2
Message:

libhound: Add client side protocol skeleton

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/hound/src/protocol.h

    r059490c2 r504f1ea3  
    4444typedef async_sess_t hound_sess_t;
    4545typedef int hound_context_id_t;
    46 typedef int hound_stream_id_t;
    4746
    4847hound_sess_t *hound_service_connect(const char *service);
     
    5150hound_context_id_t hound_service_register_context(hound_sess_t *sess,
    5251    const char *name);
    53 int hound_service_unregister_context(hound_sess_t *sess);
     52int hound_service_unregister_context(hound_sess_t *sess, hound_context_id_t id);
    5453
    55 hound_stream_id_t hound_service_stream_add(hound_sess_t *sess, int flags,
    56     pcm_format_t format, size_t bsize);
    57 int hound_service_stream_remove(hound_sess_t *sess, hound_stream_id_t);
    58 int hound_service_stream_drain(hound_sess_t *sess, hound_stream_id_t);
     54int hound_service_stream_enter(async_exch_t *exch, hound_context_id_t id,
     55    int flags, pcm_format_t format, size_t bsize);
     56int hound_service_stream_drain(async_exch_t *exch);
     57int hound_service_stream_exit(async_exch_t *exch);
    5958
    60 int hound_service_stream_write(async_exch_t *exch, hound_stream_id_t,
    61     const void *data, size_t size);
    62 int hound_service_stream_read(async_exch_t *exch, hound_stream_id_t,
    63     void *data, size_t size);
     59int hound_service_stream_write(async_exch_t *exch, const void *data, size_t size);
     60int hound_service_stream_read(async_exch_t *exch, void *data, size_t size);
    6461
    6562
Note: See TracChangeset for help on using the changeset viewer.