/* display init */
display_init(&(ivac.display));
-
+
/* display */
ivac_display(&ivac);
ivac_display_content(&ivac);
int ivac_regular_cb(t_event *event,void *ptr) {
+ t_ivac *ivac;
+
+ ivac=(t_ivac *)ptr;
+
+ ivac_add_to_monitor(ivac,"event HUGH");
+
/* usual jobs like audio & video transmit ... */
return SUCCESS;
ivac_add_to_monitor(ivac,"nach display refresh");
#endif
-#ifdef DEBUG
- ivac_add_to_monitor(ivac,"nach display refresh");
-#endif
-
-#ifdef DEBUG
-
- strcpy(debug_string,"hahahaha!");
- ivac_add_to_monitor(ivac,debug_string);
-#endif
-
/* parse command routines */
- if(data[input->c_count-1]=='\n' || data[input->c_count-1]=='\r') {
+ if(data[input->c_count-1]=='\n'||data[input->c_count-1]=='\r') {
#ifdef DEBUG
ivac_add_to_monitor(ivac,"got newline or carriage return!");
/* get args */
len=0;
- while(data[len]!='\n') len++;
+ while(data[len]!='\n'||data[len]!='\r') len++;
i=0; j=0;
while((i<len) && (j<IVAC_ARG_COUNT)) {
k=0;
- while((data[i+k]!=' ')&&(data[i+k]!='\n')) {
+ while((data[i+k]!=' ')&&(data[i+k]!='\n'||data[i+k]!='\r')) {
arg[j][k]=data[i+k];
k++;
}