mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 09:01:24 +03:00
Protocols now load data into a buffer; they don't execute it.
This commit is contained in:
@@ -2,18 +2,14 @@
|
||||
#define PROTO_H
|
||||
|
||||
#include "tables.h"
|
||||
#include "buffer.h"
|
||||
#include "in.h"
|
||||
|
||||
struct protocol {
|
||||
char *name;
|
||||
in_port_t default_port;
|
||||
int ( * load ) ( char *url,
|
||||
struct sockaddr_in *server,
|
||||
char *file,
|
||||
int ( * process ) ( unsigned char *data,
|
||||
unsigned int blocknum,
|
||||
unsigned int len,
|
||||
int eof ) );
|
||||
int ( * load ) ( char *url, struct sockaddr_in *server, char *file,
|
||||
struct buffer *buffer );
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user