Browse Source

Make the application state a void *.

tags/v0.9.3
Michael Brown 19 years ago
parent
commit
b2c94b32fc
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      src/proto/uip/uipopt.h

+ 5
- 2
src/proto/uip/uipopt.h View File

277
  *
277
  *
278
  * \hideinitializer
278
  * \hideinitializer
279
  */
279
  */
280
-#define UIP_UDP_APPCALL  udp_appcall
280
+extern void uip_udp_appcall ( void );
281
+#define UIP_UDP_APPCALL  uip_udp_appcall
281
 
282
 
282
 /** @} */
283
 /** @} */
283
 /*------------------------------------------------------------------------------*/
284
 /*------------------------------------------------------------------------------*/
539
  * response to TCP/IP events.
540
  * response to TCP/IP events.
540
  *
541
  *
541
  */
542
  */
543
+extern void uip_tcp_appcall ( void );
544
+#define UIP_APPCALL uip_tcp_appcall
542
 
545
 
543
 /**
546
 /**
544
  * \var #define UIP_APPSTATE_SIZE
547
  * \var #define UIP_APPSTATE_SIZE
546
  * The size of the application state that is to be stored in the
549
  * The size of the application state that is to be stored in the
547
  * uip_conn structure.
550
  * uip_conn structure.
548
  */
551
  */
549
-#define UIP_APPSTATE_SIZE 0
552
+#define UIP_APPSTATE_SIZE sizeof ( void * )
550
 /** @} */
553
 /** @} */
551
 
554
 
552
 /* Include the header file for the application program that should be
555
 /* Include the header file for the application program that should be

Loading…
Cancel
Save