version 1.2, 2009/07/13 23:11:35 |
version 1.3, 2009/07/26 12:58:44 |
|
|
|
|
int cmd_source_file_parse(struct cmd *, int, char **, char **); |
int cmd_source_file_parse(struct cmd *, int, char **, char **); |
int cmd_source_file_exec(struct cmd *, struct cmd_ctx *); |
int cmd_source_file_exec(struct cmd *, struct cmd_ctx *); |
void cmd_source_file_send(struct cmd *, struct buffer *); |
|
void cmd_source_file_recv(struct cmd *, struct buffer *); |
|
void cmd_source_file_free(struct cmd *); |
void cmd_source_file_free(struct cmd *); |
void cmd_source_file_init(struct cmd *, int); |
void cmd_source_file_init(struct cmd *, int); |
size_t cmd_source_file_print(struct cmd *, char *, size_t); |
size_t cmd_source_file_print(struct cmd *, char *, size_t); |
|
|
cmd_source_file_init, |
cmd_source_file_init, |
cmd_source_file_parse, |
cmd_source_file_parse, |
cmd_source_file_exec, |
cmd_source_file_exec, |
cmd_source_file_send, |
|
cmd_source_file_recv, |
|
cmd_source_file_free, |
cmd_source_file_free, |
cmd_source_file_print |
cmd_source_file_print |
}; |
}; |
|
|
} |
} |
|
|
return (0); |
return (0); |
} |
|
|
|
void |
|
cmd_source_file_send(struct cmd *self, struct buffer *b) |
|
{ |
|
struct cmd_source_file_data *data = self->data; |
|
|
|
buffer_write(b, data, sizeof *data); |
|
cmd_send_string(b, data->path); |
|
} |
|
|
|
void |
|
cmd_source_file_recv(struct cmd *self, struct buffer *b) |
|
{ |
|
struct cmd_source_file_data *data; |
|
|
|
self->data = data = xmalloc(sizeof *data); |
|
buffer_read(b, data, sizeof *data); |
|
data->path = cmd_recv_string(b); |
|
} |
} |
|
|
void |
void |