Ignore:
Timestamp:
2017-12-08T21:03:35Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
125c09c
Parents:
a8c7a6d
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 03:29:45)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 21:03:35)
Message:

Fix error handling in libhound.

File:
1 edited

Legend:

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

    ra8c7a6d rfed5a9b  
    5858typedef intptr_t hound_context_id_t;
    5959
    60 /**
    61  * Check context id for errors.
    62  * @param id Context id
    63  * @return Error code.
    64  */
    65 static inline int hound_context_id_err(hound_context_id_t id)
    66 {
    67         return id > 0 ? EOK : (id == 0 ? ENOENT : id);
    68 }
    69 
    7060hound_sess_t *hound_service_connect(const char *service);
    7161void hound_service_disconnect(hound_sess_t *sess);
    7262
    73 hound_context_id_t hound_service_register_context(hound_sess_t *sess,
    74     const char *name, bool record);
     63int hound_service_register_context(hound_sess_t *sess,
     64    const char *name, bool record, hound_context_id_t *id);
    7565int hound_service_unregister_context(hound_sess_t *sess, hound_context_id_t id);
    7666
Note: See TracChangeset for help on using the changeset viewer.