i3
GENERATED_call.h
Go to the documentation of this file.
1 static void GENERATED_call(const int call_identifier, struct CommandResult *result) {
2  switch (call_identifier) {
3  case 0:
4 #ifndef TEST_PARSER
5  cmd_move_con_to_workspace(&current_match, result, get_string("workspace"));
6 #else
7  fprintf(stderr, "cmd_move_con_to_workspace(%s)\n", get_string("workspace"));
8 #endif
9  state = INITIAL;
10  break;
11  case 1:
12 #ifndef TEST_PARSER
13  cmd_move_con_to_workspace(&current_match, result, get_string("workspace"));
14 #else
15  fprintf(stderr, "cmd_move_con_to_workspace(%s)\n", get_string("workspace"));
16 #endif
17  state = INITIAL;
18  break;
19  case 2:
20 #ifndef TEST_PARSER
21  cmd_move_con_to_workspace(&current_match, result, get_string("workspace"));
22 #else
23  fprintf(stderr, "cmd_move_con_to_workspace(%s)\n", get_string("workspace"));
24 #endif
25  state = INITIAL;
26  break;
27  case 3:
28 #ifndef TEST_PARSER
29  cmd_move_con_to_workspace(&current_match, result, get_string("workspace"));
30 #else
31  fprintf(stderr, "cmd_move_con_to_workspace(%s)\n", get_string("workspace"));
32 #endif
33  state = INITIAL;
34  break;
35  case 4:
36 #ifndef TEST_PARSER
37  cmd_move_con_to_workspace(&current_match, result, get_string("workspace"));
38 #else
39  fprintf(stderr, "cmd_move_con_to_workspace(%s)\n", get_string("workspace"));
40 #endif
41  state = INITIAL;
42  break;
43  case 5:
44 #ifndef TEST_PARSER
46 #else
47  fprintf(stderr, "cmd_move_con_to_workspace_name(%s)\n", get_string("workspace"));
48 #endif
49  state = INITIAL;
50  break;
51  case 6:
52 #ifndef TEST_PARSER
54 #else
55  fprintf(stderr, "cmd_criteria_match_windows()\n");
56 #endif
57  state = INITIAL;
58  break;
59  case 7:
60 #ifndef TEST_PARSER
61  cmd_move_window_to_position(&current_match, result, get_string("method"), get_string("coord_x"), get_string("coord_y"));
62 #else
63  fprintf(stderr, "cmd_move_window_to_position(%s, %s, %s)\n", get_string("method"), get_string("coord_x"), get_string("coord_y"));
64 #endif
65  state = INITIAL;
66  break;
67  case 8:
68 #ifndef TEST_PARSER
69  cmd_move_window_to_position(&current_match, result, get_string("method"), get_string("coord_x"), get_string("coord_y"));
70 #else
71  fprintf(stderr, "cmd_move_window_to_position(%s, %s, %s)\n", get_string("method"), get_string("coord_x"), get_string("coord_y"));
72 #endif
73  state = INITIAL;
74  break;
75  case 9:
76 #ifndef TEST_PARSER
77  cmd_resize(&current_match, result, get_string("way"), get_string("direction"), get_string("resize_px"), "10");
78 #else
79  fprintf(stderr, "cmd_resize(%s, %s, %s, %s)\n", get_string("way"), get_string("direction"), get_string("resize_px"), "10");
80 #endif
81  state = INITIAL;
82  break;
83  case 10:
84 #ifndef TEST_PARSER
85  cmd_border(&current_match, result, get_string("border_style"));
86 #else
87  fprintf(stderr, "cmd_border(%s)\n", get_string("border_style"));
88 #endif
89  state = INITIAL;
90  break;
91  case 11:
92 #ifndef TEST_PARSER
93  cmd_border(&current_match, result, get_string("border_style"));
94 #else
95  fprintf(stderr, "cmd_border(%s)\n", get_string("border_style"));
96 #endif
97  state = INITIAL;
98  break;
99  case 12:
100 #ifndef TEST_PARSER
101  cmd_border(&current_match, result, get_string("border_style"));
102 #else
103  fprintf(stderr, "cmd_border(%s)\n", get_string("border_style"));
104 #endif
105  state = INITIAL;
106  break;
107  case 13:
108 #ifndef TEST_PARSER
109  cmd_border(&current_match, result, get_string("border_style"));
110 #else
111  fprintf(stderr, "cmd_border(%s)\n", get_string("border_style"));
112 #endif
113  state = INITIAL;
114  break;
115  case 14:
116 #ifndef TEST_PARSER
117  cmd_mode(&current_match, result, get_string("mode"));
118 #else
119  fprintf(stderr, "cmd_mode(%s)\n", get_string("mode"));
120 #endif
121  state = INITIAL;
122  break;
123  case 15:
124 #ifndef TEST_PARSER
126 #else
127  fprintf(stderr, "cmd_move_con_to_workspace_number(%s)\n", get_string("number"));
128 #endif
129  state = INITIAL;
130  break;
131  case 16:
132 #ifndef TEST_PARSER
133  cmd_criteria_add(&current_match, result, get_string("ctype"), get_string("cvalue"));
134 #else
135  fprintf(stderr, "cmd_criteria_add(%s, %s)\n", get_string("ctype"), get_string("cvalue"));
136 #endif
137  state = CRITERIA;
138  break;
139  case 17:
140 #ifndef TEST_PARSER
141  cmd_floating(&current_match, result, get_string("floating"));
142 #else
143  fprintf(stderr, "cmd_floating(%s)\n", get_string("floating"));
144 #endif
145  state = INITIAL;
146  break;
147  case 18:
148 #ifndef TEST_PARSER
149  cmd_floating(&current_match, result, get_string("floating"));
150 #else
151  fprintf(stderr, "cmd_floating(%s)\n", get_string("floating"));
152 #endif
153  state = INITIAL;
154  break;
155  case 19:
156 #ifndef TEST_PARSER
157  cmd_floating(&current_match, result, get_string("floating"));
158 #else
159  fprintf(stderr, "cmd_floating(%s)\n", get_string("floating"));
160 #endif
161  state = INITIAL;
162  break;
163  case 20:
164 #ifndef TEST_PARSER
165  cmd_fullscreen(&current_match, result, get_string("fullscreen_mode"));
166 #else
167  fprintf(stderr, "cmd_fullscreen(%s)\n", get_string("fullscreen_mode"));
168 #endif
169  state = INITIAL;
170  break;
171  case 21:
172 #ifndef TEST_PARSER
173  cmd_fullscreen(&current_match, result, get_string("fullscreen_mode"));
174 #else
175  fprintf(stderr, "cmd_fullscreen(%s)\n", get_string("fullscreen_mode"));
176 #endif
177  state = INITIAL;
178  break;
179  case 22:
180 #ifndef TEST_PARSER
181  cmd_rename_workspace(&current_match, result, get_string("old_name"), get_string("new_name"));
182 #else
183  fprintf(stderr, "cmd_rename_workspace(%s, %s)\n", get_string("old_name"), get_string("new_name"));
184 #endif
185  state = INITIAL;
186  break;
187  case 23:
188 #ifndef TEST_PARSER
189  cmd_move_direction(&current_match, result, get_string("direction"), get_string("pixels"));
190 #else
191  fprintf(stderr, "cmd_move_direction(%s, %s)\n", get_string("direction"), get_string("pixels"));
192 #endif
193  state = INITIAL;
194  break;
195  case 24:
196 #ifndef TEST_PARSER
197  cmd_move_direction(&current_match, result, get_string("direction"), get_string("pixels"));
198 #else
199  fprintf(stderr, "cmd_move_direction(%s, %s)\n", get_string("direction"), get_string("pixels"));
200 #endif
201  state = INITIAL;
202  break;
203  case 25:
204 #ifndef TEST_PARSER
205  cmd_focus_output(&current_match, result, get_string("output"));
206 #else
207  fprintf(stderr, "cmd_focus_output(%s)\n", get_string("output"));
208 #endif
209  state = INITIAL;
210  break;
211  case 26:
212 #ifndef TEST_PARSER
213  cmd_resize(&current_match, result, get_string("way"), get_string("direction"), get_string("resize_px"), get_string("resize_ppt"));
214 #else
215  fprintf(stderr, "cmd_resize(%s, %s, %s, %s)\n", get_string("way"), get_string("direction"), get_string("resize_px"), get_string("resize_ppt"));
216 #endif
217  state = INITIAL;
218  break;
219  case 27:
220 #ifndef TEST_PARSER
221  cmd_layout_toggle(&current_match, result, get_string("toggle_mode"));
222 #else
223  fprintf(stderr, "cmd_layout_toggle(%s)\n", get_string("toggle_mode"));
224 #endif
225  state = INITIAL;
226  break;
227  case 28:
228 #ifndef TEST_PARSER
229  cmd_layout_toggle(&current_match, result, get_string("toggle_mode"));
230 #else
231  fprintf(stderr, "cmd_layout_toggle(%s)\n", get_string("toggle_mode"));
232 #endif
233  state = INITIAL;
234  break;
235  case 29:
236 #ifndef TEST_PARSER
237  cmd_layout_toggle(&current_match, result, get_string("toggle_mode"));
238 #else
239  fprintf(stderr, "cmd_layout_toggle(%s)\n", get_string("toggle_mode"));
240 #endif
241  state = INITIAL;
242  break;
243  case 30:
244 #ifndef TEST_PARSER
246 #else
247  fprintf(stderr, "cmd_scratchpad_show()\n");
248 #endif
249  state = INITIAL;
250  break;
251  case 31:
252 #ifndef TEST_PARSER
253  cmd_nop(&current_match, result, get_string("comment"));
254 #else
255  fprintf(stderr, "cmd_nop(%s)\n", get_string("comment"));
256 #endif
257  state = INITIAL;
258  break;
259  case 32:
260 #ifndef TEST_PARSER
262 #else
263  fprintf(stderr, "cmd_move_window_to_center(%s)\n", get_string("method"));
264 #endif
265  state = INITIAL;
266  break;
267  case 33:
268 #ifndef TEST_PARSER
269  cmd_workspace(&current_match, result, get_string("direction"));
270 #else
271  fprintf(stderr, "cmd_workspace(%s)\n", get_string("direction"));
272 #endif
273  state = INITIAL;
274  break;
275  case 34:
276 #ifndef TEST_PARSER
277  cmd_workspace(&current_match, result, get_string("direction"));
278 #else
279  fprintf(stderr, "cmd_workspace(%s)\n", get_string("direction"));
280 #endif
281  state = INITIAL;
282  break;
283  case 35:
284 #ifndef TEST_PARSER
285  cmd_workspace(&current_match, result, get_string("direction"));
286 #else
287  fprintf(stderr, "cmd_workspace(%s)\n", get_string("direction"));
288 #endif
289  state = INITIAL;
290  break;
291  case 36:
292 #ifndef TEST_PARSER
293  cmd_workspace(&current_match, result, get_string("direction"));
294 #else
295  fprintf(stderr, "cmd_workspace(%s)\n", get_string("direction"));
296 #endif
297  state = INITIAL;
298  break;
299  case 37:
300 #ifndef TEST_PARSER
302 #else
303  fprintf(stderr, "cmd_workspace_back_and_forth()\n");
304 #endif
305  state = INITIAL;
306  break;
307  case 38:
308 #ifndef TEST_PARSER
309  cmd_workspace_name(&current_match, result, get_string("workspace"));
310 #else
311  fprintf(stderr, "cmd_workspace_name(%s)\n", get_string("workspace"));
312 #endif
313  state = INITIAL;
314  break;
315  case 39:
316 #ifndef TEST_PARSER
317  cmd_append_layout(&current_match, result, get_string("path"));
318 #else
319  fprintf(stderr, "cmd_append_layout(%s)\n", get_string("path"));
320 #endif
321  state = INITIAL;
322  break;
323  case 40:
324 #ifndef TEST_PARSER
325  cmd_mark(&current_match, result, get_string("mark"));
326 #else
327  fprintf(stderr, "cmd_mark(%s)\n", get_string("mark"));
328 #endif
329  state = INITIAL;
330  break;
331  case 41:
332 #ifndef TEST_PARSER
334 #else
335  fprintf(stderr, "cmd_move_scratchpad()\n");
336 #endif
337  state = INITIAL;
338  break;
339  case 42:
340 #ifndef TEST_PARSER
341  cmd_move_con_to_output(&current_match, result, get_string("output"));
342 #else
343  fprintf(stderr, "cmd_move_con_to_output(%s)\n", get_string("output"));
344 #endif
345  state = INITIAL;
346  break;
347  case 43:
348 #ifndef TEST_PARSER
349  cmd_workspace_number(&current_match, result, get_string("workspace"));
350 #else
351  fprintf(stderr, "cmd_workspace_number(%s)\n", get_string("workspace"));
352 #endif
353  state = INITIAL;
354  break;
355  case 44:
356 #ifndef TEST_PARSER
358 #else
359  fprintf(stderr, "cmd_move_workspace_to_output(%s)\n", get_string("output"));
360 #endif
361  state = INITIAL;
362  break;
363  case 45:
364 #ifndef TEST_PARSER
365  cmd_split(&current_match, result, get_string("direction"));
366 #else
367  fprintf(stderr, "cmd_split(%s)\n", get_string("direction"));
368 #endif
369  state = INITIAL;
370  break;
371  case 46:
372 #ifndef TEST_PARSER
373  cmd_split(&current_match, result, get_string("direction"));
374 #else
375  fprintf(stderr, "cmd_split(%s)\n", get_string("direction"));
376 #endif
377  state = INITIAL;
378  break;
379  case 47:
380 #ifndef TEST_PARSER
381  cmd_split(&current_match, result, get_string("direction"));
382 #else
383  fprintf(stderr, "cmd_split(%s)\n", get_string("direction"));
384 #endif
385  state = INITIAL;
386  break;
387  case 48:
388 #ifndef TEST_PARSER
389  cmd_split(&current_match, result, get_string("direction"));
390 #else
391  fprintf(stderr, "cmd_split(%s)\n", get_string("direction"));
392 #endif
393  state = INITIAL;
394  break;
395  case 49:
396 #ifndef TEST_PARSER
397  cmd_kill(&current_match, result, get_string("kill_mode"));
398 #else
399  fprintf(stderr, "cmd_kill(%s)\n", get_string("kill_mode"));
400 #endif
401  state = INITIAL;
402  break;
403  case 50:
404 #ifndef TEST_PARSER
405  cmd_kill(&current_match, result, get_string("kill_mode"));
406 #else
407  fprintf(stderr, "cmd_kill(%s)\n", get_string("kill_mode"));
408 #endif
409  state = INITIAL;
410  break;
411  case 51:
412 #ifndef TEST_PARSER
413  cmd_kill(&current_match, result, get_string("kill_mode"));
414 #else
415  fprintf(stderr, "cmd_kill(%s)\n", get_string("kill_mode"));
416 #endif
417  state = INITIAL;
418  break;
419  case 52:
420 #ifndef TEST_PARSER
421  cmd_exec(&current_match, result, get_string("nosn"), get_string("command"));
422 #else
423  fprintf(stderr, "cmd_exec(%s, %s)\n", get_string("nosn"), get_string("command"));
424 #endif
425  state = INITIAL;
426  break;
427  case 53:
428 #ifndef TEST_PARSER
429  cmd_focus_direction(&current_match, result, get_string("direction"));
430 #else
431  fprintf(stderr, "cmd_focus_direction(%s)\n", get_string("direction"));
432 #endif
433  state = INITIAL;
434  break;
435  case 54:
436 #ifndef TEST_PARSER
437  cmd_focus_direction(&current_match, result, get_string("direction"));
438 #else
439  fprintf(stderr, "cmd_focus_direction(%s)\n", get_string("direction"));
440 #endif
441  state = INITIAL;
442  break;
443  case 55:
444 #ifndef TEST_PARSER
445  cmd_focus_direction(&current_match, result, get_string("direction"));
446 #else
447  fprintf(stderr, "cmd_focus_direction(%s)\n", get_string("direction"));
448 #endif
449  state = INITIAL;
450  break;
451  case 56:
452 #ifndef TEST_PARSER
453  cmd_focus_direction(&current_match, result, get_string("direction"));
454 #else
455  fprintf(stderr, "cmd_focus_direction(%s)\n", get_string("direction"));
456 #endif
457  state = INITIAL;
458  break;
459  case 57:
460 #ifndef TEST_PARSER
461  cmd_focus_window_mode(&current_match, result, get_string("window_mode"));
462 #else
463  fprintf(stderr, "cmd_focus_window_mode(%s)\n", get_string("window_mode"));
464 #endif
465  state = INITIAL;
466  break;
467  case 58:
468 #ifndef TEST_PARSER
469  cmd_focus_window_mode(&current_match, result, get_string("window_mode"));
470 #else
471  fprintf(stderr, "cmd_focus_window_mode(%s)\n", get_string("window_mode"));
472 #endif
473  state = INITIAL;
474  break;
475  case 59:
476 #ifndef TEST_PARSER
477  cmd_focus_window_mode(&current_match, result, get_string("window_mode"));
478 #else
479  fprintf(stderr, "cmd_focus_window_mode(%s)\n", get_string("window_mode"));
480 #endif
481  state = INITIAL;
482  break;
483  case 60:
484 #ifndef TEST_PARSER
485  cmd_focus_level(&current_match, result, get_string("level"));
486 #else
487  fprintf(stderr, "cmd_focus_level(%s)\n", get_string("level"));
488 #endif
489  state = INITIAL;
490  break;
491  case 61:
492 #ifndef TEST_PARSER
493  cmd_focus_level(&current_match, result, get_string("level"));
494 #else
495  fprintf(stderr, "cmd_focus_level(%s)\n", get_string("level"));
496 #endif
497  state = INITIAL;
498  break;
499  case 62:
500 #ifndef TEST_PARSER
501  cmd_focus(&current_match, result);
502 #else
503  fprintf(stderr, "cmd_focus()\n");
504 #endif
505  state = INITIAL;
506  break;
507  case 63:
508 #ifndef TEST_PARSER
509  cmd_layout(&current_match, result, get_string("layout_mode"));
510 #else
511  fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
512 #endif
513  state = INITIAL;
514  break;
515  case 64:
516 #ifndef TEST_PARSER
517  cmd_layout(&current_match, result, get_string("layout_mode"));
518 #else
519  fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
520 #endif
521  state = INITIAL;
522  break;
523  case 65:
524 #ifndef TEST_PARSER
525  cmd_layout(&current_match, result, get_string("layout_mode"));
526 #else
527  fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
528 #endif
529  state = INITIAL;
530  break;
531  case 66:
532 #ifndef TEST_PARSER
533  cmd_layout(&current_match, result, get_string("layout_mode"));
534 #else
535  fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
536 #endif
537  state = INITIAL;
538  break;
539  case 67:
540 #ifndef TEST_PARSER
541  cmd_layout(&current_match, result, get_string("layout_mode"));
542 #else
543  fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
544 #endif
545  state = INITIAL;
546  break;
547  case 68:
548 #ifndef TEST_PARSER
549  cmd_layout(&current_match, result, get_string("layout_mode"));
550 #else
551  fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
552 #endif
553  state = INITIAL;
554  break;
555  case 69:
556 #ifndef TEST_PARSER
557  cmd_move_direction(&current_match, result, get_string("direction"), "10");
558 #else
559  fprintf(stderr, "cmd_move_direction(%s, %s)\n", get_string("direction"), "10");
560 #endif
561  state = INITIAL;
562  break;
563  case 70:
564 #ifndef TEST_PARSER
566 #else
567  fprintf(stderr, "cmd_criteria_init()\n");
568 #endif
569  state = CRITERIA;
570  break;
571  case 71:
572 #ifndef TEST_PARSER
573  cmd_exit(&current_match, result);
574 #else
575  fprintf(stderr, "cmd_exit()\n");
576 #endif
577  state = INITIAL;
578  break;
579  case 72:
580 #ifndef TEST_PARSER
581  cmd_restart(&current_match, result);
582 #else
583  fprintf(stderr, "cmd_restart()\n");
584 #endif
585  state = INITIAL;
586  break;
587  case 73:
588 #ifndef TEST_PARSER
589  cmd_reload(&current_match, result);
590 #else
591  fprintf(stderr, "cmd_reload()\n");
592 #endif
593  state = INITIAL;
594  break;
595  case 74:
596 #ifndef TEST_PARSER
597  cmd_open(&current_match, result);
598 #else
599  fprintf(stderr, "cmd_open()\n");
600 #endif
601  state = INITIAL;
602  break;
603  case 75:
604 #ifndef TEST_PARSER
605  cmd_resize(&current_match, result, get_string("way"), get_string("direction"), "10", "10");
606 #else
607  fprintf(stderr, "cmd_resize(%s, %s, %s, %s)\n", get_string("way"), get_string("direction"), "10", "10");
608 #endif
609  state = INITIAL;
610  break;
611  default:
612  printf("BUG in the parser. state = %d\n", call_identifier);
613  }
614 }