From 64fa8d78bc1307dfc34b3d74cf9c37551eca568c Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 27 Mar 2008 18:06:02 +0000 Subject: [PATCH] Added global #ifndef __SIO_H__ and some comments --- src/include/lwip/sio.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/include/lwip/sio.h b/src/include/lwip/sio.h index 7437522c..7d9162e4 100644 --- a/src/include/lwip/sio.h +++ b/src/include/lwip/sio.h @@ -32,16 +32,24 @@ * It needs to be implemented by those platforms which need SLIP or PPP */ +#ifndef __SIO_H__ +#define __SIO_H__ + #include "lwip/arch.h" #ifdef __cplusplus extern "C" { #endif +/* If you want to define sio_fd_t elsewhere or differently, + define this in your cc.h file. */ #ifndef __sio_fd_t_defined typedef void * sio_fd_t; #endif +/* The following functions can be defined to something else in your cc.h file + or be implemented in your custom sio.c file. */ + #ifndef sio_open sio_fd_t sio_open(u8_t); #endif @@ -69,3 +77,5 @@ void sio_read_abort(sio_fd_t); #ifdef __cplusplus } #endif + +#endif /* __SIO_H__ */