Changeset 059490c2 in mainline for uspace/lib/hound/src/client.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/client.c
rfe0b448 r059490c2 43 43 44 44 #include "client.h" 45 #include "server.h" 46 47 static const char *HOUND_SERVICE = "audio/hound"; 45 #include "protocol.h" 48 46 49 47 /*** … … 57 55 58 56 typedef struct hound_context { 59 async_sess_t *session;57 hound_sess_t *session; 60 58 const char *name; 61 59 bool record; … … 71 69 } hound_context_t; 72 70 73 async_sess_t *hound_get_session(void)74 {75 service_id_t id = 0;76 const int ret =77 loc_service_get_id(HOUND_SERVICE, &id, IPC_FLAG_BLOCKING);78 if (ret != EOK)79 return NULL;80 return loc_service_connect(EXCHANGE_SERIALIZE, id, IPC_FLAG_BLOCKING);81 }82 83 void hound_release_session(async_sess_t *sess)84 {85 if (sess)86 async_hangup(sess);87 }88 71 89 72 static hound_context_t *hound_context_create(const char *name, bool record, … … 101 84 new_context->name = cont_name; 102 85 new_context->record = record; 103 new_context->session = hound_ get_session();86 new_context->session = hound_service_connect(HOUND_SERVICE); 104 87 new_context->main_stream = NULL; 105 88 new_context->main_format.sample = format;
Note:
See TracChangeset
for help on using the changeset viewer.