Subversion Repositories HelenOS

Rev

Rev 2619 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2619 Rev 2785
Line 39... Line 39...
39
{
39
{
40
    int phoneid;
40
    int phoneid;
41
    static int msgid = 1;
41
    static int msgid = 1;
42
    char c;
42
    char c;
43
 
43
 
44
    printf("Select phoneid to send msg: 2-9\n");
44
    printf("Select phoneid to send msg: 2-9 (Q to skip)\n");
45
    do {
45
    do {
46
        c = getchar();
46
        c = getchar();
-
 
47
        if (c == 'Q' || c == 'q')
-
 
48
            return TEST_SKIPPED;
47
    } while (c < '2' || c > '9');
49
    } while (c < '2' || c > '9');
48
    phoneid = c - '0';
50
    phoneid = c - '0';
49
 
51
 
50
    ipc_call_async_0(phoneid, 2000, (void *) msgid, callback, 1);
52
    ipc_call_async_0(phoneid, 2000, (void *) msgid, callback, 1);
51
    printf("Async sent - msg %d\n", msgid);
53
    printf("Async sent - msg %d\n", msgid);