Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 1446 → Rev 1447

/uspace/trunk/kbd/generic/kbd.c
39,9 → 39,7
#include <key_buffer.h>
 
#define NAME "KBD"
void hello(void *private, int retval, ipc_call_t *data) {
printf("%s: got answer from console with retval %d.\n", NAME, retval);
}
 
int main(int argc, char **argv)
{
ipc_call_t call;
114,7 → 112,7
break;
}
/*FIXME: detection of closed connection */
ipc_call_async(phoneid, KBD_PUSHCHAR, arg1, 0, &hello);
ipc_call_async(phoneid, KBD_PUSHCHAR, arg1, 0, NULL);
}
 
}
/uspace/trunk/console/console.c
84,6 → 84,7
case KBD_PUSHCHAR:
printf("%s: Push char '%c'.\n", NAME, IPC_GET_ARG1(call));
retval = 0;
break;
default:
printf("%s: Unknown method: %zd\n", NAME, IPC_GET_METHOD(call));
/uspace/trunk/fb/fb.c
160,18 → 160,14
ipcarg_t retval, arg1, arg2;
 
if(!sysinfo_value("fb")) {
printf("Framebuffer initialization failed.\n");
if(!sysinfo_value("fb"))
return -1;
}
 
if ((res = ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, &phonead)) != 0)
return -1;
if (init_fb() != 0) {
printf("Framebuffer initialization failed.\n");
if (init_fb() != 0)
return -1;
}
 
async_manager();
/* Never reached */