i3
GENERATED_command_call.h
Go to the documentation of this file.
1 static void GENERATED_call(const int call_identifier, struct CommandResultIR *result) {
2  switch (call_identifier) {
3  case 0:
4  result->next_state = INITIAL;
5 #ifndef TEST_PARSER
6  cmd_rename_workspace(&current_match, result, NULL, get_string("new_name"));
7 #else
8  fprintf(stderr, "cmd_rename_workspace(NULL, %s)\n", get_string("new_name"));
9 #endif
10  break;
11  case 1:
12  result->next_state = INITIAL;
13 #ifndef TEST_PARSER
14  cmd_rename_workspace(&current_match, result, NULL, "to");
15 #else
16  fprintf(stderr, "cmd_rename_workspace(NULL, %s)\n", "to");
17 #endif
18  break;
19  case 2:
20  result->next_state = INITIAL;
21 #ifndef TEST_PARSER
22  cmd_rename_workspace(&current_match, result, get_string("old_name"), get_string("new_name"));
23 #else
24  fprintf(stderr, "cmd_rename_workspace(%s, %s)\n", get_string("old_name"), get_string("new_name"));
25 #endif
26  break;
27  case 3:
28  result->next_state = INITIAL;
29 #ifndef TEST_PARSER
31 #else
32  fprintf(stderr, "cmd_move_workspace_to_output(%s)\n", get_string("output"));
33 #endif
34  break;
35  case 4:
36  result->next_state = INITIAL;
37 #ifndef TEST_PARSER
38  cmd_move_con_to_workspace_number(&current_match, result, get_string("number"), get_string("no_auto_back_and_forth"));
39 #else
40  fprintf(stderr, "cmd_move_con_to_workspace_number(%s, %s)\n", get_string("number"), get_string("no_auto_back_and_forth"));
41 #endif
42  break;
43  case 5:
44  result->next_state = INITIAL;
45 #ifndef TEST_PARSER
46  cmd_resize(&current_match, result, get_string("way"), get_string("direction"), get_long("resize_px"), get_long("resize_ppt"));
47 #else
48  fprintf(stderr, "cmd_resize(%s, %s, %ld, %ld)\n", get_string("way"), get_string("direction"), get_long("resize_px"), get_long("resize_ppt"));
49 #endif
50  break;
51  case 6:
52  result->next_state = INITIAL;
53 #ifndef TEST_PARSER
54  cmd_resize(&current_match, result, get_string("way"), get_string("direction"), get_long("resize_px"), get_long("resize_ppt"));
55 #else
56  fprintf(stderr, "cmd_resize(%s, %s, %ld, %ld)\n", get_string("way"), get_string("direction"), get_long("resize_px"), get_long("resize_ppt"));
57 #endif
58  break;
59  case 7:
60  result->next_state = INITIAL;
61 #ifndef TEST_PARSER
62  cmd_move_window_to_position(&current_match, result, get_string("method"), get_long("coord_x"), get_long("coord_y"));
63 #else
64  fprintf(stderr, "cmd_move_window_to_position(%s, %ld, %ld)\n", get_string("method"), get_long("coord_x"), get_long("coord_y"));
65 #endif
66  break;
67  case 8:
68  result->next_state = INITIAL;
69 #ifndef TEST_PARSER
70  cmd_move_window_to_position(&current_match, result, get_string("method"), get_long("coord_x"), get_long("coord_y"));
71 #else
72  fprintf(stderr, "cmd_move_window_to_position(%s, %ld, %ld)\n", get_string("method"), get_long("coord_x"), get_long("coord_y"));
73 #endif
74  break;
75  case 9:
76  result->next_state = INITIAL;
77 #ifndef TEST_PARSER
78  cmd_fullscreen(&current_match, result, "toggle", get_string("mode"));
79 #else
80  fprintf(stderr, "cmd_fullscreen(%s, %s)\n", "toggle", get_string("mode"));
81 #endif
82  break;
83  case 10:
84  result->next_state = INITIAL;
85 #ifndef TEST_PARSER
86  cmd_fullscreen(&current_match, result, "toggle", "output");
87 #else
88  fprintf(stderr, "cmd_fullscreen(%s, %s)\n", "toggle", "output");
89 #endif
90  break;
91  case 11:
92  result->next_state = INITIAL;
93 #ifndef TEST_PARSER
94  cmd_move_direction(&current_match, result, get_string("direction"), get_long("pixels"));
95 #else
96  fprintf(stderr, "cmd_move_direction(%s, %ld)\n", get_string("direction"), get_long("pixels"));
97 #endif
98  break;
99  case 12:
100  result->next_state = INITIAL;
101 #ifndef TEST_PARSER
102  cmd_move_direction(&current_match, result, get_string("direction"), get_long("pixels"));
103 #else
104  fprintf(stderr, "cmd_move_direction(%s, %ld)\n", get_string("direction"), get_long("pixels"));
105 #endif
106  break;
107  case 13:
108  result->next_state = INITIAL;
109 #ifndef TEST_PARSER
111 #else
112  fprintf(stderr, "cmd_move_window_to_center(%s)\n", get_string("method"));
113 #endif
114  break;
115  case 14:
116  result->next_state = INITIAL;
117 #ifndef TEST_PARSER
119 #else
120  fprintf(stderr, "cmd_move_window_to_mouse()\n");
121 #endif
122  break;
123  case 15:
124  result->next_state = INITIAL;
125 #ifndef TEST_PARSER
127 #else
128  fprintf(stderr, "cmd_move_window_to_mouse()\n");
129 #endif
130  break;
131  case 16:
132  result->next_state = INITIAL;
133 #ifndef TEST_PARSER
135 #else
136  fprintf(stderr, "cmd_move_window_to_mouse()\n");
137 #endif
138  break;
139  case 17:
140  result->next_state = INITIAL;
141 #ifndef TEST_PARSER
142  cmd_workspace_number(&current_match, result, get_string("workspace"), get_string("no_auto_back_and_forth"));
143 #else
144  fprintf(stderr, "cmd_workspace_number(%s, %s)\n", get_string("workspace"), get_string("no_auto_back_and_forth"));
145 #endif
146  break;
147  case 18:
148  result->next_state = INITIAL;
149 #ifndef TEST_PARSER
150  cmd_fullscreen(&current_match, result, get_string("action"), get_string("mode"));
151 #else
152  fprintf(stderr, "cmd_fullscreen(%s, %s)\n", get_string("action"), get_string("mode"));
153 #endif
154  break;
155  case 19:
156  result->next_state = INITIAL;
157 #ifndef TEST_PARSER
158  cmd_fullscreen(&current_match, result, get_string("action"), "output");
159 #else
160  fprintf(stderr, "cmd_fullscreen(%s, %s)\n", get_string("action"), "output");
161 #endif
162  break;
163  case 20:
164  result->next_state = INITIAL;
165 #ifndef TEST_PARSER
166  cmd_move_direction(&current_match, result, get_string("direction"), 10);
167 #else
168  fprintf(stderr, "cmd_move_direction(%s, %d)\n", get_string("direction"), 10);
169 #endif
170  break;
171  case 21:
172  result->next_state = INITIAL;
173 #ifndef TEST_PARSER
174  cmd_move_con_to_output(&current_match, result, get_string("output"));
175 #else
176  fprintf(stderr, "cmd_move_con_to_output(%s)\n", get_string("output"));
177 #endif
178  break;
179  case 22:
180  result->next_state = INITIAL;
181 #ifndef TEST_PARSER
182  cmd_move_con_to_workspace(&current_match, result, get_string("workspace"));
183 #else
184  fprintf(stderr, "cmd_move_con_to_workspace(%s)\n", get_string("workspace"));
185 #endif
186  break;
187  case 23:
188  result->next_state = INITIAL;
189 #ifndef TEST_PARSER
190  cmd_move_con_to_workspace(&current_match, result, get_string("workspace"));
191 #else
192  fprintf(stderr, "cmd_move_con_to_workspace(%s)\n", get_string("workspace"));
193 #endif
194  break;
195  case 24:
196  result->next_state = INITIAL;
197 #ifndef TEST_PARSER
198  cmd_move_con_to_workspace(&current_match, result, get_string("workspace"));
199 #else
200  fprintf(stderr, "cmd_move_con_to_workspace(%s)\n", get_string("workspace"));
201 #endif
202  break;
203  case 25:
204  result->next_state = INITIAL;
205 #ifndef TEST_PARSER
206  cmd_move_con_to_workspace(&current_match, result, get_string("workspace"));
207 #else
208  fprintf(stderr, "cmd_move_con_to_workspace(%s)\n", get_string("workspace"));
209 #endif
210  break;
211  case 26:
212  result->next_state = INITIAL;
213 #ifndef TEST_PARSER
214  cmd_move_con_to_workspace(&current_match, result, get_string("workspace"));
215 #else
216  fprintf(stderr, "cmd_move_con_to_workspace(%s)\n", get_string("workspace"));
217 #endif
218  break;
219  case 27:
220  result->next_state = INITIAL;
221 #ifndef TEST_PARSER
223 #else
224  fprintf(stderr, "cmd_move_con_to_workspace_back_and_forth()\n");
225 #endif
226  break;
227  case 28:
228  result->next_state = INITIAL;
229 #ifndef TEST_PARSER
230  cmd_move_con_to_workspace_name(&current_match, result, get_string("workspace"), get_string("no_auto_back_and_forth"));
231 #else
232  fprintf(stderr, "cmd_move_con_to_workspace_name(%s, %s)\n", get_string("workspace"), get_string("no_auto_back_and_forth"));
233 #endif
234  break;
235  case 29:
236  result->next_state = INITIAL;
237 #ifndef TEST_PARSER
238  cmd_append_layout(&current_match, result, get_string("path"));
239 #else
240  fprintf(stderr, "cmd_append_layout(%s)\n", get_string("path"));
241 #endif
242  break;
243  case 30:
244  result->next_state = CRITERIA;
245 #ifndef TEST_PARSER
246  cmd_criteria_add(&current_match, result, get_string("ctype"), get_string("cvalue"));
247 #else
248  fprintf(stderr, "cmd_criteria_add(%s, %s)\n", get_string("ctype"), get_string("cvalue"));
249 #endif
250  break;
251  case 31:
252  result->next_state = INITIAL;
253 #ifndef TEST_PARSER
254  cmd_layout_toggle(&current_match, result, get_string("toggle_mode"));
255 #else
256  fprintf(stderr, "cmd_layout_toggle(%s)\n", get_string("toggle_mode"));
257 #endif
258  break;
259  case 32:
260  result->next_state = INITIAL;
261 #ifndef TEST_PARSER
262  cmd_layout_toggle(&current_match, result, get_string("toggle_mode"));
263 #else
264  fprintf(stderr, "cmd_layout_toggle(%s)\n", get_string("toggle_mode"));
265 #endif
266  break;
267  case 33:
268  result->next_state = INITIAL;
269 #ifndef TEST_PARSER
270  cmd_layout_toggle(&current_match, result, get_string("toggle_mode"));
271 #else
272  fprintf(stderr, "cmd_layout_toggle(%s)\n", get_string("toggle_mode"));
273 #endif
274  break;
275  case 34:
276  result->next_state = INITIAL;
277 #ifndef TEST_PARSER
278  cmd_resize_set(&current_match, result, get_long("width"), get_long("height"));
279 #else
280  fprintf(stderr, "cmd_resize_set(%ld, %ld)\n", get_long("width"), get_long("height"));
281 #endif
282  break;
283  case 35:
284  result->next_state = INITIAL;
285 #ifndef TEST_PARSER
286  cmd_resize_set(&current_match, result, get_long("width"), get_long("height"));
287 #else
288  fprintf(stderr, "cmd_resize_set(%ld, %ld)\n", get_long("width"), get_long("height"));
289 #endif
290  break;
291  case 36:
292  result->next_state = INITIAL;
293 #ifndef TEST_PARSER
294  cmd_resize(&current_match, result, get_string("way"), get_string("direction"), get_long("resize_px"), 10);
295 #else
296  fprintf(stderr, "cmd_resize(%s, %s, %ld, %d)\n", get_string("way"), get_string("direction"), get_long("resize_px"), 10);
297 #endif
298  break;
299  case 37:
300  result->next_state = INITIAL;
301 #ifndef TEST_PARSER
302  cmd_border(&current_match, result, get_string("border_style"), 2);
303 #else
304  fprintf(stderr, "cmd_border(%s, %d)\n", get_string("border_style"), 2);
305 #endif
306  break;
307  case 38:
308  result->next_state = INITIAL;
309 #ifndef TEST_PARSER
310  cmd_border(&current_match, result, get_string("border_style"), get_long("border_width"));
311 #else
312  fprintf(stderr, "cmd_border(%s, %ld)\n", get_string("border_style"), get_long("border_width"));
313 #endif
314  break;
315  case 39:
316  result->next_state = INITIAL;
317 #ifndef TEST_PARSER
318  cmd_focus_output(&current_match, result, get_string("output"));
319 #else
320  fprintf(stderr, "cmd_focus_output(%s)\n", get_string("output"));
321 #endif
322  break;
323  case 40:
324  result->next_state = INITIAL;
325 #ifndef TEST_PARSER
326  cmd_move_con_to_mark(&current_match, result, get_string("mark"));
327 #else
328  fprintf(stderr, "cmd_move_con_to_mark(%s)\n", get_string("mark"));
329 #endif
330  break;
331  case 41:
332  result->next_state = INITIAL;
333 #ifndef TEST_PARSER
334  cmd_title_format(&current_match, result, get_string("format"));
335 #else
336  fprintf(stderr, "cmd_title_format(%s)\n", get_string("format"));
337 #endif
338  break;
339  case 42:
340  result->next_state = INITIAL;
341 #ifndef TEST_PARSER
342  cmd_fullscreen(&current_match, result, get_string("action"), "output");
343 #else
344  fprintf(stderr, "cmd_fullscreen(%s, %s)\n", get_string("action"), "output");
345 #endif
346  break;
347  case 43:
348  result->next_state = INITIAL;
349 #ifndef TEST_PARSER
351 #else
352  fprintf(stderr, "cmd_scratchpad_show()\n");
353 #endif
354  break;
355  case 44:
356  result->next_state = INITIAL;
357 #ifndef TEST_PARSER
358  cmd_resize(&current_match, result, get_string("way"), get_string("direction"), 10, 10);
359 #else
360  fprintf(stderr, "cmd_resize(%s, %s, %d, %d)\n", get_string("way"), get_string("direction"), 10, 10);
361 #endif
362  break;
363  case 45:
364  result->next_state = INITIAL;
365 #ifndef TEST_PARSER
366  cmd_workspace(&current_match, result, get_string("direction"));
367 #else
368  fprintf(stderr, "cmd_workspace(%s)\n", get_string("direction"));
369 #endif
370  break;
371  case 46:
372  result->next_state = INITIAL;
373 #ifndef TEST_PARSER
374  cmd_workspace(&current_match, result, get_string("direction"));
375 #else
376  fprintf(stderr, "cmd_workspace(%s)\n", get_string("direction"));
377 #endif
378  break;
379  case 47:
380  result->next_state = INITIAL;
381 #ifndef TEST_PARSER
382  cmd_workspace(&current_match, result, get_string("direction"));
383 #else
384  fprintf(stderr, "cmd_workspace(%s)\n", get_string("direction"));
385 #endif
386  break;
387  case 48:
388  result->next_state = INITIAL;
389 #ifndef TEST_PARSER
390  cmd_workspace(&current_match, result, get_string("direction"));
391 #else
392  fprintf(stderr, "cmd_workspace(%s)\n", get_string("direction"));
393 #endif
394  break;
395  case 49:
396  result->next_state = INITIAL;
397 #ifndef TEST_PARSER
399 #else
400  fprintf(stderr, "cmd_workspace_back_and_forth()\n");
401 #endif
402  break;
403  case 50:
404  result->next_state = INITIAL;
405 #ifndef TEST_PARSER
406  cmd_workspace_name(&current_match, result, get_string("workspace"), get_string("no_auto_back_and_forth"));
407 #else
408  fprintf(stderr, "cmd_workspace_name(%s, %s)\n", get_string("workspace"), get_string("no_auto_back_and_forth"));
409 #endif
410  break;
411  case 51:
412  result->next_state = INITIAL;
413 #ifndef TEST_PARSER
414  cmd_bar(&current_match, result, get_string("bar_type"), get_string("bar_value"), get_string("bar_id"));
415 #else
416  fprintf(stderr, "cmd_bar(%s, %s, %s)\n", get_string("bar_type"), get_string("bar_value"), get_string("bar_id"));
417 #endif
418  break;
419  case 52:
420  result->next_state = INITIAL;
421 #ifndef TEST_PARSER
423 #else
424  fprintf(stderr, "cmd_criteria_match_windows()\n");
425 #endif
426  break;
427  case 53:
428  result->next_state = INITIAL;
429 #ifndef TEST_PARSER
430  cmd_debuglog(&current_match, result, get_string("argument"));
431 #else
432  fprintf(stderr, "cmd_debuglog(%s)\n", get_string("argument"));
433 #endif
434  break;
435  case 54:
436  result->next_state = INITIAL;
437 #ifndef TEST_PARSER
438  cmd_debuglog(&current_match, result, get_string("argument"));
439 #else
440  fprintf(stderr, "cmd_debuglog(%s)\n", get_string("argument"));
441 #endif
442  break;
443  case 55:
444  result->next_state = INITIAL;
445 #ifndef TEST_PARSER
446  cmd_debuglog(&current_match, result, get_string("argument"));
447 #else
448  fprintf(stderr, "cmd_debuglog(%s)\n", get_string("argument"));
449 #endif
450  break;
451  case 56:
452  result->next_state = INITIAL;
453 #ifndef TEST_PARSER
454  cmd_floating(&current_match, result, get_string("floating"));
455 #else
456  fprintf(stderr, "cmd_floating(%s)\n", get_string("floating"));
457 #endif
458  break;
459  case 57:
460  result->next_state = INITIAL;
461 #ifndef TEST_PARSER
462  cmd_floating(&current_match, result, get_string("floating"));
463 #else
464  fprintf(stderr, "cmd_floating(%s)\n", get_string("floating"));
465 #endif
466  break;
467  case 58:
468  result->next_state = INITIAL;
469 #ifndef TEST_PARSER
470  cmd_floating(&current_match, result, get_string("floating"));
471 #else
472  fprintf(stderr, "cmd_floating(%s)\n", get_string("floating"));
473 #endif
474  break;
475  case 59:
476  result->next_state = CRITERIA;
477 #ifndef TEST_PARSER
479 #else
480  fprintf(stderr, "cmd_criteria_init()\n");
481 #endif
482  break;
483  case 60:
484  result->next_state = INITIAL;
485 #ifndef TEST_PARSER
486  cmd_exit(&current_match, result);
487 #else
488  fprintf(stderr, "cmd_exit()\n");
489 #endif
490  break;
491  case 61:
492  result->next_state = INITIAL;
493 #ifndef TEST_PARSER
494  cmd_restart(&current_match, result);
495 #else
496  fprintf(stderr, "cmd_restart()\n");
497 #endif
498  break;
499  case 62:
500  result->next_state = INITIAL;
501 #ifndef TEST_PARSER
502  cmd_reload(&current_match, result);
503 #else
504  fprintf(stderr, "cmd_reload()\n");
505 #endif
506  break;
507  case 63:
508  result->next_state = INITIAL;
509 #ifndef TEST_PARSER
510  cmd_open(&current_match, result);
511 #else
512  fprintf(stderr, "cmd_open()\n");
513 #endif
514  break;
515  case 64:
516  result->next_state = INITIAL;
517 #ifndef TEST_PARSER
518  cmd_border(&current_match, result, get_string("border_style"), 0);
519 #else
520  fprintf(stderr, "cmd_border(%s, %d)\n", get_string("border_style"), 0);
521 #endif
522  break;
523  case 65:
524  result->next_state = INITIAL;
525 #ifndef TEST_PARSER
526  cmd_border(&current_match, result, get_string("border_style"), 0);
527 #else
528  fprintf(stderr, "cmd_border(%s, %d)\n", get_string("border_style"), 0);
529 #endif
530  break;
531  case 66:
532  result->next_state = INITIAL;
533 #ifndef TEST_PARSER
534  cmd_border(&current_match, result, get_string("border_style"), 1);
535 #else
536  fprintf(stderr, "cmd_border(%s, %d)\n", get_string("border_style"), 1);
537 #endif
538  break;
539  case 67:
540  result->next_state = INITIAL;
541 #ifndef TEST_PARSER
542  cmd_layout(&current_match, result, get_string("layout_mode"));
543 #else
544  fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
545 #endif
546  break;
547  case 68:
548  result->next_state = INITIAL;
549 #ifndef TEST_PARSER
550  cmd_layout(&current_match, result, get_string("layout_mode"));
551 #else
552  fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
553 #endif
554  break;
555  case 69:
556  result->next_state = INITIAL;
557 #ifndef TEST_PARSER
558  cmd_layout(&current_match, result, get_string("layout_mode"));
559 #else
560  fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
561 #endif
562  break;
563  case 70:
564  result->next_state = INITIAL;
565 #ifndef TEST_PARSER
566  cmd_layout(&current_match, result, get_string("layout_mode"));
567 #else
568  fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
569 #endif
570  break;
571  case 71:
572  result->next_state = INITIAL;
573 #ifndef TEST_PARSER
574  cmd_layout(&current_match, result, get_string("layout_mode"));
575 #else
576  fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
577 #endif
578  break;
579  case 72:
580  result->next_state = INITIAL;
581 #ifndef TEST_PARSER
582  cmd_layout(&current_match, result, get_string("layout_mode"));
583 #else
584  fprintf(stderr, "cmd_layout(%s)\n", get_string("layout_mode"));
585 #endif
586  break;
587  case 73:
588  result->next_state = INITIAL;
589 #ifndef TEST_PARSER
590  cmd_shmlog(&current_match, result, get_string("argument"));
591 #else
592  fprintf(stderr, "cmd_shmlog(%s)\n", get_string("argument"));
593 #endif
594  break;
595  case 74:
596  result->next_state = INITIAL;
597 #ifndef TEST_PARSER
598  cmd_sticky(&current_match, result, get_string("action"));
599 #else
600  fprintf(stderr, "cmd_sticky(%s)\n", get_string("action"));
601 #endif
602  break;
603  case 75:
604  result->next_state = INITIAL;
605 #ifndef TEST_PARSER
606  cmd_sticky(&current_match, result, get_string("action"));
607 #else
608  fprintf(stderr, "cmd_sticky(%s)\n", get_string("action"));
609 #endif
610  break;
611  case 76:
612  result->next_state = INITIAL;
613 #ifndef TEST_PARSER
614  cmd_sticky(&current_match, result, get_string("action"));
615 #else
616  fprintf(stderr, "cmd_sticky(%s)\n", get_string("action"));
617 #endif
618  break;
619  case 77:
620  result->next_state = INITIAL;
621 #ifndef TEST_PARSER
622  cmd_unmark(&current_match, result, get_string("mark"));
623 #else
624  fprintf(stderr, "cmd_unmark(%s)\n", get_string("mark"));
625 #endif
626  break;
627  case 78:
628  result->next_state = INITIAL;
629 #ifndef TEST_PARSER
630  cmd_unmark(&current_match, result, get_string("mark"));
631 #else
632  fprintf(stderr, "cmd_unmark(%s)\n", get_string("mark"));
633 #endif
634  break;
635  case 79:
636  result->next_state = INITIAL;
637 #ifndef TEST_PARSER
638  cmd_focus_direction(&current_match, result, get_string("direction"));
639 #else
640  fprintf(stderr, "cmd_focus_direction(%s)\n", get_string("direction"));
641 #endif
642  break;
643  case 80:
644  result->next_state = INITIAL;
645 #ifndef TEST_PARSER
646  cmd_focus_direction(&current_match, result, get_string("direction"));
647 #else
648  fprintf(stderr, "cmd_focus_direction(%s)\n", get_string("direction"));
649 #endif
650  break;
651  case 81:
652  result->next_state = INITIAL;
653 #ifndef TEST_PARSER
654  cmd_focus_direction(&current_match, result, get_string("direction"));
655 #else
656  fprintf(stderr, "cmd_focus_direction(%s)\n", get_string("direction"));
657 #endif
658  break;
659  case 82:
660  result->next_state = INITIAL;
661 #ifndef TEST_PARSER
662  cmd_focus_direction(&current_match, result, get_string("direction"));
663 #else
664  fprintf(stderr, "cmd_focus_direction(%s)\n", get_string("direction"));
665 #endif
666  break;
667  case 83:
668  result->next_state = INITIAL;
669 #ifndef TEST_PARSER
670  cmd_focus_window_mode(&current_match, result, get_string("window_mode"));
671 #else
672  fprintf(stderr, "cmd_focus_window_mode(%s)\n", get_string("window_mode"));
673 #endif
674  break;
675  case 84:
676  result->next_state = INITIAL;
677 #ifndef TEST_PARSER
678  cmd_focus_window_mode(&current_match, result, get_string("window_mode"));
679 #else
680  fprintf(stderr, "cmd_focus_window_mode(%s)\n", get_string("window_mode"));
681 #endif
682  break;
683  case 85:
684  result->next_state = INITIAL;
685 #ifndef TEST_PARSER
686  cmd_focus_window_mode(&current_match, result, get_string("window_mode"));
687 #else
688  fprintf(stderr, "cmd_focus_window_mode(%s)\n", get_string("window_mode"));
689 #endif
690  break;
691  case 86:
692  result->next_state = INITIAL;
693 #ifndef TEST_PARSER
694  cmd_focus_level(&current_match, result, get_string("level"));
695 #else
696  fprintf(stderr, "cmd_focus_level(%s)\n", get_string("level"));
697 #endif
698  break;
699  case 87:
700  result->next_state = INITIAL;
701 #ifndef TEST_PARSER
702  cmd_focus_level(&current_match, result, get_string("level"));
703 #else
704  fprintf(stderr, "cmd_focus_level(%s)\n", get_string("level"));
705 #endif
706  break;
707  case 88:
708  result->next_state = INITIAL;
709 #ifndef TEST_PARSER
710  cmd_focus(&current_match, result);
711 #else
712  fprintf(stderr, "cmd_focus()\n");
713 #endif
714  break;
715  case 89:
716  result->next_state = INITIAL;
717 #ifndef TEST_PARSER
718  cmd_split(&current_match, result, get_string("direction"));
719 #else
720  fprintf(stderr, "cmd_split(%s)\n", get_string("direction"));
721 #endif
722  break;
723  case 90:
724  result->next_state = INITIAL;
725 #ifndef TEST_PARSER
726  cmd_split(&current_match, result, get_string("direction"));
727 #else
728  fprintf(stderr, "cmd_split(%s)\n", get_string("direction"));
729 #endif
730  break;
731  case 91:
732  result->next_state = INITIAL;
733 #ifndef TEST_PARSER
734  cmd_split(&current_match, result, get_string("direction"));
735 #else
736  fprintf(stderr, "cmd_split(%s)\n", get_string("direction"));
737 #endif
738  break;
739  case 92:
740  result->next_state = INITIAL;
741 #ifndef TEST_PARSER
742  cmd_split(&current_match, result, get_string("direction"));
743 #else
744  fprintf(stderr, "cmd_split(%s)\n", get_string("direction"));
745 #endif
746  break;
747  case 93:
748  result->next_state = INITIAL;
749 #ifndef TEST_PARSER
750  cmd_split(&current_match, result, get_string("direction"));
751 #else
752  fprintf(stderr, "cmd_split(%s)\n", get_string("direction"));
753 #endif
754  break;
755  case 94:
756  result->next_state = INITIAL;
757 #ifndef TEST_PARSER
758  cmd_split(&current_match, result, get_string("direction"));
759 #else
760  fprintf(stderr, "cmd_split(%s)\n", get_string("direction"));
761 #endif
762  break;
763  case 95:
764  result->next_state = INITIAL;
765 #ifndef TEST_PARSER
766  cmd_exec(&current_match, result, get_string("nosn"), get_string("command"));
767 #else
768  fprintf(stderr, "cmd_exec(%s, %s)\n", get_string("nosn"), get_string("command"));
769 #endif
770  break;
771  case 96:
772  result->next_state = INITIAL;
773 #ifndef TEST_PARSER
774  cmd_kill(&current_match, result, get_string("kill_mode"));
775 #else
776  fprintf(stderr, "cmd_kill(%s)\n", get_string("kill_mode"));
777 #endif
778  break;
779  case 97:
780  result->next_state = INITIAL;
781 #ifndef TEST_PARSER
782  cmd_kill(&current_match, result, get_string("kill_mode"));
783 #else
784  fprintf(stderr, "cmd_kill(%s)\n", get_string("kill_mode"));
785 #endif
786  break;
787  case 98:
788  result->next_state = INITIAL;
789 #ifndef TEST_PARSER
790  cmd_kill(&current_match, result, get_string("kill_mode"));
791 #else
792  fprintf(stderr, "cmd_kill(%s)\n", get_string("kill_mode"));
793 #endif
794  break;
795  case 99:
796  result->next_state = INITIAL;
797 #ifndef TEST_PARSER
798  cmd_mark(&current_match, result, get_string("mark"), get_string("mode"), get_string("toggle"));
799 #else
800  fprintf(stderr, "cmd_mark(%s, %s, %s)\n", get_string("mark"), get_string("mode"), get_string("toggle"));
801 #endif
802  break;
803  case 100:
804  result->next_state = INITIAL;
805 #ifndef TEST_PARSER
806  cmd_mode(&current_match, result, get_string("mode"));
807 #else
808  fprintf(stderr, "cmd_mode(%s)\n", get_string("mode"));
809 #endif
810  break;
811  case 101:
812  result->next_state = INITIAL;
813 #ifndef TEST_PARSER
815 #else
816  fprintf(stderr, "cmd_move_scratchpad()\n");
817 #endif
818  break;
819  case 102:
820  result->next_state = INITIAL;
821 #ifndef TEST_PARSER
822  cmd_nop(&current_match, result, get_string("comment"));
823 #else
824  fprintf(stderr, "cmd_nop(%s)\n", get_string("comment"));
825 #endif
826  break;
827  case 103:
828  result->next_state = INITIAL;
829 #ifndef TEST_PARSER
830  cmd_nop(&current_match, result, NULL);
831 #else
832  fprintf(stderr, "cmd_nop(NULL)\n");
833 #endif
834  break;
835  default:
836  printf("BUG in the parser. state = %d\n", call_identifier);
837  assert(false);
838  }
839 }
void cmd_mark(I3_CMD, const char *mark, const char *mode, const char *toggle)
Implementation of 'mark [–add|–replace] [–toggle] <mark>'.
Definition: commands.c:965
void cmd_workspace_name(I3_CMD, const char *name, const char *_no_auto_back_and_forth)
Implementation of 'workspace [–no-auto-back-and-forth] <name>'.
Definition: commands.c:936
void cmd_move_con_to_workspace(I3_CMD, const char *which)
Implementation of 'move [window|container] [to] workspace next|prev|next_on_output|prev_on_output'.
Definition: commands.c:286
void cmd_move_con_to_workspace_name(I3_CMD, const char *name, const char *_no_auto_back_and_forth)
Implementation of 'move [–no-auto-back-and-forth] [window|container] [to] workspace <name>'...
Definition: commands.c:362
void cmd_criteria_match_windows(I3_CMD)
A match specification just finished (the closing square bracket was found), so we filter the list of ...
Definition: commands.c:194
void cmd_criteria_add(I3_CMD, const char *ctype, const char *cvalue)
Interprets a ctype=cvalue pair and adds it to the current match specification.
Definition: commands.c:277
void cmd_exec(I3_CMD, const char *nosn, const char *command)
Implementation of 'exec [–no-startup-id] <command>'.
Definition: commands.c:1215
void cmd_resize(I3_CMD, const char *way, const char *direction, long resize_px, long resize_ppt)
Implementation of 'resize grow|shrink <direction> [<px> px] [or <ppt> ppt]'.
Definition: commands.c:648
static const char * get_string(const char *identifier)
void cmd_criteria_init(I3_CMD)
Initializes the specified 'Match' data structure and the initial state of commands.c for matching target windows of a command.
void cmd_floating(I3_CMD, const char *floating_mode)
Implementation of 'floating enable|disable|toggle'.
Definition: commands.c:1087
void cmd_split(I3_CMD, const char *direction)
Implementation of 'split v|h|t|vertical|horizontal|toggle'.
Definition: commands.c:1143
void cmd_workspace_back_and_forth(I3_CMD)
Implementation of 'workspace back_and_forth'.
Definition: commands.c:918
void cmd_debuglog(I3_CMD, const char *argument)
Definition: commands.c:2111
void cmd_shmlog(I3_CMD, const char *argument)
Definition: commands.c:2080
void cmd_mode(I3_CMD, const char *mode)
Implementation of 'mode <string>'.
Definition: commands.c:1017
void cmd_focus_window_mode(I3_CMD, const char *window_mode)
Implementation of 'focus tiling|floating|mode_toggle'.
Definition: commands.c:1255
void cmd_move_window_to_mouse(I3_CMD)
Implementation of 'move [window|container] [to] position mouse'.
Definition: commands.c:1771
void cmd_exit(I3_CMD)
Implementation of 'exit'.
Definition: commands.c:1565
void cmd_layout_toggle(I3_CMD, const char *toggle_mode)
Implementation of 'layout toggle [all|split]'.
Definition: commands.c:1538
void cmd_focus_output(I3_CMD, const char *name)
Implementation of 'focus output <output>'.
Definition: commands.c:1638
void cmd_restart(I3_CMD)
Implementation of 'restart'.
Definition: commands.c:1601
void cmd_append_layout(I3_CMD, const char *cpath)
Implementation of 'append_layout <path>'.
Definition: commands.c:778
void cmd_sticky(I3_CMD, const char *action)
Implementation of 'sticky enable|disable|toggle'.
Definition: commands.c:1417
void cmd_focus_level(I3_CMD, const char *level)
Implementation of 'focus parent|child'.
Definition: commands.c:1286
void cmd_move_con_to_mark(I3_CMD, const char *mark)
Implementation of 'move [window|container] [to] mark <str>'.
Definition: commands.c:1067
void cmd_reload(I3_CMD)
Implementation of 'reload'.
Definition: commands.c:1582
void cmd_kill(I3_CMD, const char *kill_mode_str)
Implementation of 'kill [window|client]'.
Definition: commands.c:1182
void cmd_move_direction(I3_CMD, const char *direction, long move_px)
Implementation of 'move <direction> [<pixels> [px]]'.
Definition: commands.c:1455
void cmd_move_window_to_center(I3_CMD, const char *method)
Implementation of 'move [window|container] [to] [absolute] position center.
Definition: commands.c:1727
void cmd_title_format(I3_CMD, const char *format)
Implementation of 'title_format <format>'.
Definition: commands.c:1837
static Match current_match
void cmd_open(I3_CMD)
Implementation of 'open'.
Definition: commands.c:1618
void cmd_focus_direction(I3_CMD, const char *direction)
Implementation of 'focus left|right|up|down'.
Definition: commands.c:1229
void cmd_rename_workspace(I3_CMD, const char *old_name, const char *new_name)
Implementation of 'rename workspace <name> to <name>'.
Definition: commands.c:1880
void cmd_move_con_to_output(I3_CMD, const char *name)
Implementation of 'move [window|container] [to] output <str>'.
Definition: commands.c:1029
static long get_long(const char *identifier)
void cmd_workspace(I3_CMD, const char *which)
Implementation of 'workspace next|prev|next_on_output|prev_on_output'.
Definition: commands.c:840
void cmd_move_con_to_workspace_back_and_forth(I3_CMD)
Implementation of 'move [window|container] [to] workspace back_and_forth'.
Definition: commands.c:335
void cmd_move_window_to_position(I3_CMD, const char *method, long x, long y)
Implementation of 'move [window|container] [to] [absolute] position <px> [px] <px> [px]...
Definition: commands.c:1680
static void GENERATED_call(const int call_identifier, struct CommandResultIR *result)
void cmd_workspace_number(I3_CMD, const char *which, const char *_no_auto_back_and_forth)
Implementation of 'workspace [–no-auto-back-and-forth] number <number>'.
Definition: commands.c:876
void cmd_fullscreen(I3_CMD, const char *action, const char *fullscreen_mode)
Implementation of 'fullscreen [enable|disable|toggle] [global]'.
Definition: commands.c:1390
void cmd_move_con_to_workspace_number(I3_CMD, const char *which, const char *_no_auto_back_and_forth)
Implementation of 'move [–no-auto-back-and-forth] [window|container] [to] workspace number <number>&#39...
Definition: commands.c:408
void cmd_focus(I3_CMD)
Implementation of 'focus'.
Definition: commands.c:1314
void cmd_unmark(I3_CMD, const char *mark)
Implementation of 'unmark [mark]'.
Definition: commands.c:998
void cmd_bar(I3_CMD, const char *bar_type, const char *bar_value, const char *bar_id)
Implementation of 'bar (hidden_state hide|show|toggle)|(mode dock|hide|invisible|toggle) [<bar_id>]'...
Definition: commands.c:2058
void cmd_move_workspace_to_output(I3_CMD, const char *name)
Implementation of 'move workspace to [output] <str>'.
Definition: commands.c:1118
void cmd_layout(I3_CMD, const char *layout_str)
Implementation of 'layout default|stacked|stacking|tabbed|splitv|splith'.
Definition: commands.c:1494
void cmd_scratchpad_show(I3_CMD)
Implementation of 'scratchpad show'.
Definition: commands.c:1815
void cmd_border(I3_CMD, const char *border_style_str, long border_width)
Implementation of 'border normal|pixel [<n>]', 'border none|1pixel|toggle'.
Definition: commands.c:719
void cmd_nop(I3_CMD, const char *comment)
Implementation of 'nop <comment>'.
Definition: commands.c:768
void cmd_move_scratchpad(I3_CMD)
Implementation of 'move scratchpad'.
Definition: commands.c:1795
void cmd_resize_set(I3_CMD, long cwidth, long cheight)
Implementation of 'resize set <px> [px] <px> [px]'.
Definition: commands.c:691