Changeset 99c2c69e in mainline for uspace/srv/locsrv/locsrv.c
- Timestamp:
- 2013-09-13T00:36:30Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67fbd5e
- Parents:
- 7f84430 (diff), 11d41be5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/locsrv/locsrv.c
r7f84430 r99c2c69e 184 184 assert(fibril_mutex_is_locked(&services_list_mutex)); 185 185 186 list_foreach(namespaces_list, item) { 187 loc_namespace_t *namespace = 188 list_get_instance(item, loc_namespace_t, namespaces); 186 list_foreach(namespaces_list, namespaces, loc_namespace_t, namespace) { 189 187 if (str_cmp(namespace->name, name) == 0) 190 188 return namespace; … … 203 201 assert(fibril_mutex_is_locked(&services_list_mutex)); 204 202 205 list_foreach(namespaces_list, item) { 206 loc_namespace_t *namespace = 207 list_get_instance(item, loc_namespace_t, namespaces); 203 list_foreach(namespaces_list, namespaces, loc_namespace_t, namespace) { 208 204 if (namespace->id == id) 209 205 return namespace; … … 219 215 assert(fibril_mutex_is_locked(&services_list_mutex)); 220 216 221 list_foreach(services_list, item) { 222 loc_service_t *service = 223 list_get_instance(item, loc_service_t, services); 217 list_foreach(services_list, services, loc_service_t, service) { 224 218 if ((str_cmp(service->namespace->name, ns_name) == 0) 225 219 && (str_cmp(service->name, name) == 0)) … … 239 233 assert(fibril_mutex_is_locked(&services_list_mutex)); 240 234 241 list_foreach(services_list, item) { 242 loc_service_t *service = 243 list_get_instance(item, loc_service_t, services); 235 list_foreach(services_list, services, loc_service_t, service) { 244 236 if (service->id == id) 245 237 return service; … … 889 881 fibril_mutex_lock(&callback_sess_mutex); 890 882 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 883 list_foreach(callback_sess_list, cb_sess_list, cb_sess_t, cb_sess) { 896 884 async_exch_t *exch = async_exchange_begin(cb_sess->sess); 897 885 async_msg_0(exch, LOC_EVENT_CAT_CHANGE); … … 1050 1038 1051 1039 size_t pos = 0; 1052 list_foreach(namespaces_list, item) { 1053 loc_namespace_t *namespace = 1054 list_get_instance(item, loc_namespace_t, namespaces); 1055 1040 list_foreach(namespaces_list, namespaces, loc_namespace_t, namespace) { 1056 1041 desc[pos].id = namespace->id; 1057 1042 str_cpy(desc[pos].name, LOC_NAME_MAXLEN, namespace->name); … … 1114 1099 1115 1100 size_t pos = 0; 1116 list_foreach(services_list, item) { 1117 loc_service_t *service = 1118 list_get_instance(item, loc_service_t, services); 1119 1101 list_foreach(services_list, services, loc_service_t, service) { 1120 1102 if (service->namespace == namespace) { 1121 1103 desc[pos].id = service->id;
Note:
See TracChangeset
for help on using the changeset viewer.