Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 1337 → Rev 1338

//uspace/trunk/ns/ns.c
103,7 → 103,7
ipcarg_t retval, arg1, arg2;
 
printf("%s: Name service started.\n", NAME);
printf("%s: Naming service started.\n", NAME);
if (!hash_table_create(&ns_hash_table, NS_HASH_TABLE_CHAINS, 3, &ns_hash_table_ops)) {
printf("%s: cannot create hash table\n", NAME);
148,6 → 148,10
*/
retval = connect_to_service(IPC_GET_ARG1(call), &call, callid);
break;
case NS_HANGUP:
printf("Closing connection.\n");
retval = EHANGUP;
break;
case NS_PING:
printf("Ping...%P %P\n", IPC_GET_ARG1(call),
IPC_GET_ARG2(call));
155,10 → 159,6
arg1 = 0xdead;
arg2 = 0xbeef;
break;
case NS_HANGUP:
printf("Closing connection.\n");
retval = EHANGUP;
break;
case NS_PING_SVC:
printf("NS:Pinging service %d\n", ping_phone);
ipc_call_sync(ping_phone, NS_PING, 0xbeef, 0);
176,7 → 176,7
}
}
 
/** Register server.
/** Register service.
*
* @param service Service to be registered.
* @param phone phone Phone to be used for connections to the service.
227,7 → 227,7
hlp = hash_table_find(&ns_hash_table, keys);
if (!hlp) {
printf("Service %d noty registered.\n", service);
printf("Service %d not registered.\n", service);
return ENOENT;
}
hs = hash_table_get_instance(hlp, hashed_service_t, link);