Subversion Repositories HelenOS

Rev

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

Rev 2878 Rev 2880
Line 12... Line 12...
12
#include <fibril.h>
12
#include <fibril.h>
13
#include <errno.h>
13
#include <errno.h>
14
#include <udebug.h>
14
#include <udebug.h>
15
#include <async.h>
15
#include <async.h>
16
 
16
 
-
 
17
// Temporary: service and method names
17
#include "proto.h"
18
#include "proto.h"
18
#include <ipc/services.h>
19
#include <ipc/services.h>
-
 
20
#include "../../srv/vfs/vfs.h"
19
 
21
 
20
#include "syscalls.h"
22
#include "syscalls.h"
21
#include "ipcp.h"
23
#include "ipcp.h"
22
#include "errors.h"
24
#include "errors.h"
23
#include "debug_api.h"
25
#include "debug_api.h"
Line 375... Line 377...
375
}
377
}
376
 
378
 
377
static void main_init(void)
379
static void main_init(void)
378
{
380
{
379
    proto_t *p;
381
    proto_t *p;
-
 
382
    oper_t *o;
380
 
383
 
381
    next_thread_id = 1;
384
    next_thread_id = 1;
382
 
385
 
383
    proto_init();
386
    proto_init();
384
 
387
 
385
    p = malloc(sizeof(proto_t));
388
    o = malloc(sizeof(oper_t));
386
    p->name = "vfs";
389
    o->name = "mount";
-
 
390
 
-
 
391
    p = proto_new("vfs");
-
 
392
    proto_add_oper(p, VFS_MOUNT, o);
-
 
393
 
387
    proto_register(SERVICE_VFS, p);
394
    proto_register(SERVICE_VFS, p);
388
}
395
}
389
 
396
 
390
int main(void)
397
int main(void)
391
{
398
{