Changeset 059490c2 in mainline for uspace/lib/hound/src/protocol.c
- Timestamp:
- 2013-03-17T13:57:57Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 504f1ea3
- Parents:
- fe0b448
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/hound/src/protocol.c
rfe0b448 r059490c2 42 42 #include <libarch/types.h> 43 43 44 #include "protocol.h" 44 45 #include "client.h" 45 46 #include "server.h" 46 47 47 static const char *HOUND_SERVICE = "audio/hound"; 48 const char *HOUND_SERVICE = "audio/hound"; 49 50 hound_sess_t *hound_service_connect(const char *service) 51 { 52 service_id_t id = 0; 53 const int ret = 54 loc_service_get_id(service, &id, IPC_FLAG_BLOCKING); 55 if (ret != EOK) 56 return NULL; 57 return loc_service_connect(EXCHANGE_PARALLEL, id, IPC_FLAG_BLOCKING); 58 } 59 60 void hound_service_disconnect(hound_sess_t *sess) 61 { 62 if (sess) 63 async_hangup(sess); 64 } 48 65 49 66 /*** … … 55 72 void *arg; 56 73 } callback_t; 74 75 hound_sess_t *hound_get_session(void) 76 { 77 return hound_service_connect(HOUND_SERVICE); 78 } 79 80 void hound_release_session(hound_sess_t *sess) 81 { 82 hound_service_disconnect(sess); 83 } 57 84 58 85
Note:
See TracChangeset
for help on using the changeset viewer.