X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fnet%2Fprotocol.h;h=a733e05a35f51e5b28b103d0b84349091dd892d3;hb=39e200e1f43474a96888f97e2271728c9605ccbe;hp=5c0d92a4f468bad825d6d58f679a493ce05067da;hpb=200574b741f08ec9f1f3e391176d499ad8faa4bb;p=bertos.git diff --git a/bertos/net/protocol.h b/bertos/net/protocol.h index 5c0d92a4..a733e05a 100644 --- a/bertos/net/protocol.h +++ b/bertos/net/protocol.h @@ -26,25 +26,26 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. * - * Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/) + * Copyright 2003, 2004, 2006, 2012 Develer S.r.l. (http://www.develer.com/) * Copyright 2000 Bernie Innocenti * * --> * - * \brief Implementation of the command protocol between the board and the host + * \brief Protocol parser interface. * * \author Marco Benelli + * \author Daniele Basile */ #ifndef NET_PROTOCOL_H #define NET_PROTOCOL_H -#include - #include -void protocol_init(KFile *fd); +typedef void (*protocol_t)(void); + void protocol_run(KFile *fd); +void protocol_init(KFile *fd, protocol_t cmds_register); #endif /* NET_PROTOCOL_H */