Changes in uspace/srv/locsrv/locsrv.c [feeac0d:3e6a98c5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/locsrv/locsrv.c
rfeeac0d r3e6a98c5 184 184 assert(fibril_mutex_is_locked(&services_list_mutex)); 185 185 186 list_foreach(namespaces_list, namespaces, loc_namespace_t, namespace) { 186 list_foreach(namespaces_list, item) { 187 loc_namespace_t *namespace = 188 list_get_instance(item, loc_namespace_t, namespaces); 187 189 if (str_cmp(namespace->name, name) == 0) 188 190 return namespace; … … 201 203 assert(fibril_mutex_is_locked(&services_list_mutex)); 202 204 203 list_foreach(namespaces_list, namespaces, loc_namespace_t, namespace) { 205 list_foreach(namespaces_list, item) { 206 loc_namespace_t *namespace = 207 list_get_instance(item, loc_namespace_t, namespaces); 204 208 if (namespace->id == id) 205 209 return namespace; … … 215 219 assert(fibril_mutex_is_locked(&services_list_mutex)); 216 220 217 list_foreach(services_list, services, loc_service_t, service) { 221 list_foreach(services_list, item) { 222 loc_service_t *service = 223 list_get_instance(item, loc_service_t, services); 218 224 if ((str_cmp(service->namespace->name, ns_name) == 0) 219 225 && (str_cmp(service->name, name) == 0)) … … 233 239 assert(fibril_mutex_is_locked(&services_list_mutex)); 234 240 235 list_foreach(services_list, services, loc_service_t, service) { 241 list_foreach(services_list, item) { 242 loc_service_t *service = 243 list_get_instance(item, loc_service_t, services); 236 244 if (service->id == id) 237 245 return service; … … 881 889 fibril_mutex_lock(&callback_sess_mutex); 882 890 883 list_foreach(callback_sess_list, cb_sess_list, cb_sess_t, cb_sess) { 891 list_foreach(callback_sess_list, link) { 892 cb_sess_t *cb_sess; 893 894 cb_sess = list_get_instance(link, cb_sess_t, cb_sess_list); 895 884 896 async_exch_t *exch = async_exchange_begin(cb_sess->sess); 885 897 async_msg_0(exch, LOC_EVENT_CAT_CHANGE); … … 1038 1050 1039 1051 size_t pos = 0; 1040 list_foreach(namespaces_list, namespaces, loc_namespace_t, namespace) { 1052 list_foreach(namespaces_list, item) { 1053 loc_namespace_t *namespace = 1054 list_get_instance(item, loc_namespace_t, namespaces); 1055 1041 1056 desc[pos].id = namespace->id; 1042 1057 str_cpy(desc[pos].name, LOC_NAME_MAXLEN, namespace->name); … … 1099 1114 1100 1115 size_t pos = 0; 1101 list_foreach(services_list, services, loc_service_t, service) { 1116 list_foreach(services_list, item) { 1117 loc_service_t *service = 1118 list_get_instance(item, loc_service_t, services); 1119 1102 1120 if (service->namespace == namespace) { 1103 1121 desc[pos].id = service->id; … … 1357 1375 1358 1376 cat = category_new("renderer"); 1359 categ_dir_add_cat(&cdir, cat);1360 1361 cat = category_new("audio-pcm");1362 1377 categ_dir_add_cat(&cdir, cat); 1363 1378
Note:
See TracChangeset
for help on using the changeset viewer.