Changeset 9a2eb14 in mainline for uspace/srv/hw/irc/apic/apic.c
- Timestamp:
- 2017-10-15T15:04:15Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1974f56a
- Parents:
- 75911d24
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/irc/apic/apic.c
r75911d24 r9a2eb14 36 36 */ 37 37 38 #include <ipc/services.h>39 38 #include <ipc/irc.h> 40 #include < ns.h>39 #include <loc.h> 41 40 #include <sysinfo.h> 42 41 #include <as.h> … … 206 205 { 207 206 sysarg_t apic; 207 category_id_t irc_cat; 208 service_id_t svc_id; 208 209 209 210 if ((sysinfo_get_value("apic", &apic) != EOK) || (!apic)) { … … 220 221 221 222 async_set_fallback_port_handler(apic_connection, NULL); 222 service_register(SERVICE_IRC); 223 224 rc = loc_server_register(NAME); 225 if (rc != EOK) { 226 printf("%s: Failed registering server. (%d)\n", NAME, rc); 227 return false; 228 } 229 230 rc = loc_service_register("irc/" NAME, &svc_id); 231 if (rc != EOK) { 232 printf("%s: Failed registering service. (%d)\n", NAME, rc); 233 return false; 234 } 235 236 rc = loc_category_get_id("irc", &irc_cat, IPC_FLAG_BLOCKING); 237 if (rc != EOK) { 238 printf("%s: Failed resolving category 'iplink' (%d).\n", NAME, 239 rc); 240 return false; 241 } 242 243 rc = loc_service_add_to_cat(svc_id, irc_cat); 244 if (rc != EOK) { 245 printf("%s: Failed adding service to category (%d).\n", NAME, 246 rc); 247 return false; 248 } 223 249 224 250 return true;
Note:
See TracChangeset
for help on using the changeset viewer.