52,6 → 52,8 |
#include <ipc/ipc.h> |
#include <ipc/services.h> |
#include <ipc/loader.h> |
#include <ipc/ns.h> |
#include <macros.h> |
#include <loader/pcb.h> |
#include <errno.h> |
#include <async.h> |
79,7 → 81,7 |
/** Number of preset files */ |
static int filc = 0; |
/** Preset files vector */ |
static char **filv = NULL; |
static fdi_node_t **filv = NULL; |
/** Buffer holding all preset files */ |
static fdi_node_t *fil_buf = NULL; |
|
437,16 → 439,24 |
int main(int argc, char *argv[]) |
{ |
ipcarg_t phonead; |
|
task_id_t id; |
int rc; |
|
connected = false; |
|
|
/* Introduce this task to the NS (give it our task ID). */ |
id = task_get_id(); |
rc = async_req_2_0(PHONE_NS, NS_ID_INTRO, LOWER32(id), UPPER32(id)); |
if (rc != EOK) |
return -1; |
|
/* Set a handler of incomming connections. */ |
async_set_client_connection(ldr_connection); |
|
/* Register at naming service. */ |
if (ipc_connect_to_me(PHONE_NS, SERVICE_LOAD, 0, 0, &phonead) != 0) |
return -1; |
|
return -2; |
|
async_manager(); |
|
/* Never reached */ |