Rev 1339 | Rev 1344 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1339 | Rev 1343 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | #include <ipc.h> |
29 | #include <ipc.h> |
- | 30 | #include <services.h> |
|
30 | #include <stdio.h> |
31 | #include <stdio.h> |
31 | #include <unistd.h> |
32 | #include <unistd.h> |
32 | #include <stdlib.h> |
33 | #include <stdlib.h> |
33 | #include <ns.h> |
34 | #include <ns.h> |
34 | #include <errno.h> |
35 | #include <errno.h> |
Line 68... | Line 69... | ||
68 | key_buffer_init(); |
69 | key_buffer_init(); |
69 | 70 | ||
70 | /* Register service at nameserver */ |
71 | /* Register service at nameserver */ |
71 | printf("%s: Registering at naming service.\n", NAME); |
72 | printf("%s: Registering at naming service.\n", NAME); |
72 | 73 | ||
73 | if ((res = ipc_connect_to_me(PHONE_NS, 30, 60, &phonead)) != 0) { |
74 | if ((res = ipc_connect_to_me(PHONE_NS, SERVICE_KEYBOARD, 0, &phonead)) != 0) { |
74 | printf("%s: Error: Registering at naming service failed.\n", NAME); |
75 | printf("%s: Error: Registering at naming service failed.\n", NAME); |
75 | return -1; |
76 | return -1; |
76 | }; |
77 | }; |
77 | 78 | ||
78 | while (1) { |
79 | while (1) { |
Line 136... | Line 137... | ||
136 | retval = ENOENT; |
137 | retval = ENOENT; |
137 | break; |
138 | break; |
138 | } |
139 | } |
139 | if (! (callid & IPC_CALLID_NOTIFICATION)) { |
140 | if (! (callid & IPC_CALLID_NOTIFICATION)) { |
140 | // printf("%s: Answering\n", NAME); |
141 | // printf("%s: Answering\n", NAME); |
141 | ipc_answer(callid, retval, arg1, arg2); |
142 | ipc_answer_fast(callid, retval, arg1, arg2); |
142 | } |
143 | } |
143 | } |
144 | } |
144 | } |
145 | } |