equal
deleted
inserted
replaced
177 pthread_cond_signal(&svghmi_send_WakeCond); |
177 pthread_cond_signal(&svghmi_send_WakeCond); |
178 } |
178 } |
179 } |
179 } |
180 |
180 |
181 /* PYTHON CALLS */ |
181 /* PYTHON CALLS */ |
182 int svghmi_send_collect(uint32_t *size, void *ptr){ |
182 int svghmi_send_collect(uint32_t *size, char **ptr){ |
183 |
183 |
184 int do_collect; |
184 int do_collect; |
185 pthread_mutex_lock(&svghmi_send_WakeCondLock); |
185 pthread_mutex_lock(&svghmi_send_WakeCondLock); |
186 do_collect = continue_collect; |
186 do_collect = continue_collect; |
187 if(do_collect){ |
187 if(do_collect){ |
200 { |
200 { |
201 return EINTR; |
201 return EINTR; |
202 } |
202 } |
203 } |
203 } |
204 |
204 |
205 int svghmi_recv_dispatch(uint32_t size, void* ptr){ |
205 int svghmi_recv_dispatch(uint32_t size, char *ptr){ |
206 printf("%%*s",size,ptr); |
206 printf("%%*s",size,ptr); |
207 /* TODO something with ptr and size |
207 /* TODO something with ptr and size |
208 - subscribe |
208 - subscribe |
209 or |
209 or |
210 - spread values |
210 - spread values |