Subversion Repositories HelenOS

Rev

Rev 4055 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4055 Rev 4537
Line 35... Line 35...
35
 
35
 
36
#ifndef LIBC_LOADER_H_
36
#ifndef LIBC_LOADER_H_
37
#define LIBC_LOADER_H_
37
#define LIBC_LOADER_H_
38
 
38
 
39
#include <task.h>
39
#include <task.h>
-
 
40
#include <vfs/vfs.h>
40
 
41
 
41
/** Abstraction of a loader connection */
42
/** Abstraction of a loader connection */
42
typedef struct {
43
typedef struct {
43
    /** ID of the phone connected to the loader. */
44
    /** ID of the phone connected to the loader. */
44
    int phone_id;
45
    int phone_id;
Line 46... Line 47...
46
 
47
 
47
extern int loader_spawn(const char *);
48
extern int loader_spawn(const char *);
48
extern loader_t *loader_connect(void);
49
extern loader_t *loader_connect(void);
49
extern int loader_get_task_id(loader_t *, task_id_t *);
50
extern int loader_get_task_id(loader_t *, task_id_t *);
50
extern int loader_set_pathname(loader_t *, const char *);
51
extern int loader_set_pathname(loader_t *, const char *);
51
extern int loader_set_args(loader_t *, char *const []);
52
extern int loader_set_args(loader_t *, char *const[]);
-
 
53
extern int loader_set_files(loader_t *, fdi_node_t *const[]);
52
extern int loader_load_program(loader_t *);
54
extern int loader_load_program(loader_t *);
53
extern int loader_run(loader_t *);
55
extern int loader_run(loader_t *);
54
extern void loader_abort(loader_t *);
56
extern void loader_abort(loader_t *);
55
 
57
 
56
#endif
58
#endif