/[lwip]/lwip/src/api/tcpip.c
ViewVC logotype

Diff of /lwip/src/api/tcpip.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12.2.1 by marcbou, Thu Jun 19 12:32:24 2003 UTC revision 1.12.2.2 by likewise, Fri Nov 14 09:42:51 2003 UTC
# Line 50  static sys_mbox_t mbox; Line 50  static sys_mbox_t mbox;
50  static int tcpip_tcp_timer_active = 0;  static int tcpip_tcp_timer_active = 0;
51    
52    
53  /*-----------------------------------------------------------------------------------*/  
54  static void  static void
55  tcpip_tcp_timer(void *arg)  tcpip_tcp_timer(void *arg)
56  {  {
# Line 73  tcp_timer_needed(void) Line 73  tcp_timer_needed(void)
73    }    }
74  }  }
75  #endif /* LWIP_TCP */  #endif /* LWIP_TCP */
76  /*-----------------------------------------------------------------------------------*/  
77  static void  static void
78  tcpip_thread(void *arg)  tcpip_thread(void *arg)
79  {  {
# Line 113  tcpip_thread(void *arg) Line 113  tcpip_thread(void *arg)
113      memp_free(MEMP_TCPIP_MSG, msg);      memp_free(MEMP_TCPIP_MSG, msg);
114    }    }
115  }  }
116  /*-----------------------------------------------------------------------------------*/  
117  err_t  err_t
118  tcpip_input(struct pbuf *p, struct netif *inp)  tcpip_input(struct pbuf *p, struct netif *inp)
119  {  {
# Line 131  tcpip_input(struct pbuf *p, struct netif Line 131  tcpip_input(struct pbuf *p, struct netif
131    sys_mbox_post(mbox, msg);    sys_mbox_post(mbox, msg);
132    return ERR_OK;    return ERR_OK;
133  }  }
134  /*-----------------------------------------------------------------------------------*/  
135  err_t  err_t
136  tcpip_callback(void (*f)(void *ctx), void *ctx)  tcpip_callback(void (*f)(void *ctx), void *ctx)
137  {  {
# Line 148  tcpip_callback(void (*f)(void *ctx), voi Line 148  tcpip_callback(void (*f)(void *ctx), voi
148    sys_mbox_post(mbox, msg);    sys_mbox_post(mbox, msg);
149    return ERR_OK;    return ERR_OK;
150  }  }
151  /*-----------------------------------------------------------------------------------*/  
152  void  void
153  tcpip_apimsg(struct api_msg *apimsg)  tcpip_apimsg(struct api_msg *apimsg)
154  {  {
# Line 162  tcpip_apimsg(struct api_msg *apimsg) Line 162  tcpip_apimsg(struct api_msg *apimsg)
162    msg->msg.apimsg = apimsg;    msg->msg.apimsg = apimsg;
163    sys_mbox_post(mbox, msg);    sys_mbox_post(mbox, msg);
164  }  }
165  /*-----------------------------------------------------------------------------------*/  
166  void  void
167  tcpip_init(void (* initfunc)(void *), void *arg)  tcpip_init(void (* initfunc)(void *), void *arg)
168  {  {
# Line 171  tcpip_init(void (* initfunc)(void *), vo Line 171  tcpip_init(void (* initfunc)(void *), vo
171    mbox = sys_mbox_new();    mbox = sys_mbox_new();
172    sys_thread_new(tcpip_thread, NULL, TCPIP_THREAD_PRIO);    sys_thread_new(tcpip_thread, NULL, TCPIP_THREAD_PRIO);
173  }  }
174  /*-----------------------------------------------------------------------------------*/  
175    
176    
177    

Legend:
Removed from v.1.12.2.1  
changed lines
  Added in v.1.12.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26