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  printf("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  printf("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  printf("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  printf("cmd_move_con_to_workspace(%s)\n", get_string("workspace"));
32 #endif
33  state = INITIAL;
34  break;
35  case 4:
36 #ifndef TEST_PARSER
38 #else
39  printf("cmd_move_con_to_workspace_name(%s)\n", get_string("workspace"));
40 #endif
41  state = INITIAL;
42  break;
43  case 5:
44 #ifndef TEST_PARSER
46 #else
47  printf("cmd_criteria_match_windows()\n");
48 #endif
49  state = INITIAL;
50  break;
51  case 6:
52 #ifndef TEST_PARSER
53  cmd_move_window_to_position(&current_match, result, get_string("method"), get_string("coord_x"), get_string("coord_y"));
54 #else
55  printf("cmd_move_window_to_position(%s, %s, %s)\n", get_string("method"), get_string("coord_x"), get_string("coord_y"));
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  printf("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_resize(&current_match, result, get_string("way"), get_string("direction"), get_string("resize_px"), "10");
70 #else
71  printf("cmd_resize(%s, %s, %s, %s)\n", get_string("way"), get_string("direction"), get_string("resize_px"), "10");
72 #endif
73  state = INITIAL;
74  break;
75  case 9:
76 #ifndef TEST_PARSER
77  cmd_border(&current_match, result, get_string("border_style"));
78 #else
79  printf("cmd_border(%s)\n", get_string("border_style"));
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  printf("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  printf("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  printf("cmd_border(%s)\n", get_string("border_style"));
104 #endif
105  state = INITIAL;
106  break;
107  case 13:
108 #ifndef TEST_PARSER
109  cmd_mode(&current_match, result, get_string("mode"));
110 #else
111  printf("cmd_mode(%s)\n", get_string("mode"));
112 #endif
113  state = INITIAL;
114  break;
115  case 14:
116 #ifndef TEST_PARSER
118 #else
119  printf("cmd_move_con_to_workspace_number(%s)\n", get_string("number"));
120 #endif
121  state = INITIAL;
122  break;
123  case 15:
124 #ifndef TEST_PARSER
125  cmd_criteria_add(&current_match, result, get_string("ctype"), get_string("cvalue"));
126 #else
127  printf("cmd_criteria_add(%s, %s)\n", get_string("ctype"), get_string("cvalue"));
128 #endif
129  state = CRITERIA;
130  break;
131  case 16:
132 #ifndef TEST_PARSER
133  cmd_floating(&current_match, result, get_string("floating"));
134 #else
135  printf("cmd_floating(%s)\n", get_string("floating"));
136 #endif
137  state = INITIAL;
138  break;
139  case 17:
140 #ifndef TEST_PARSER
141  cmd_floating(&current_match, result, get_string("floating"));
142 #else
143  printf("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  printf("cmd_floating(%s)\n", get_string("floating"));
152 #endif
153  state = INITIAL;
154  break;
155  case 19:
156 #ifndef TEST_PARSER
157  cmd_fullscreen(&current_match, result, get_string("fullscreen_mode"));
158 #else
159  printf("cmd_fullscreen(%s)\n", get_string("fullscreen_mode"));
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  printf("cmd_fullscreen(%s)\n", get_string("fullscreen_mode"));
168 #endif
169  state = INITIAL;
170  break;
171  case 21:
172 #ifndef TEST_PARSER
173  cmd_rename_workspace(&current_match, result, get_string("old_name"), get_string("new_name"));
174 #else
175  printf("cmd_rename_workspace(%s, %s)\n", get_string("old_name"), get_string("new_name"));
176 #endif
177  state = INITIAL;
178  break;
179  case 22:
180 #ifndef TEST_PARSER
181  cmd_move_direction(&current_match, result, get_string("direction"), get_string("pixels"));
182 #else
183  printf("cmd_move_direction(%s, %s)\n", get_string("direction"), get_string("pixels"));
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  printf("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_focus_output(&current_match, result, get_string("output"));
198 #else
199  printf("cmd_focus_output(%s)\n", get_string("output"));
200 #endif
201  state = INITIAL;
202  break;
203  case 25:
204 #ifndef TEST_PARSER
205  cmd_resize(&current_match, result, get_string("way"), get_string("direction"), get_string("resize_px"), get_string("resize_ppt"));
206 #else
207  printf("cmd_resize(%s, %s, %s, %s)\n", get_string("way"), get_string("direction"), get_string("resize_px"), get_string("resize_ppt"));
208 #endif
209  state = INITIAL;
210  break;
211  case 26:
212 #ifndef TEST_PARSER
214 #else
215  printf("cmd_scratchpad_show()\n");
216 #endif
217  state = INITIAL;
218  break;
219  case 27:
220 #ifndef TEST_PARSER
221  cmd_nop(&current_match, result, get_string("comment"));
222 #else
223  printf("cmd_nop(%s)\n", get_string("comment"));
224 #endif
225  state = INITIAL;
226  break;
227  case 28:
228 #ifndef TEST_PARSER
230 #else
231  printf("cmd_move_window_to_center(%s)\n", get_string("method"));
232 #endif
233  state = INITIAL;
234  break;
235  case 29:
236 #ifndef TEST_PARSER
237  cmd_workspace(&current_match, result, get_string("direction"));
238 #else
239  printf("cmd_workspace(%s)\n", get_string("direction"));
240 #endif
241  state = INITIAL;
242  break;
243  case 30:
244 #ifndef TEST_PARSER
245  cmd_workspace(&current_match, result, get_string("direction"));
246 #else
247  printf("cmd_workspace(%s)\n", get_string("direction"));
248 #endif
249  state = INITIAL;
250  break;
251  case 31:
252 #ifndef TEST_PARSER
253  cmd_workspace(&current_match, result, get_string("direction"));
254 #else
255  printf("cmd_workspace(%s)\n", get_string("direction"));
256 #endif
257  state = INITIAL;
258  break;
259  case 32:
260 #ifndef TEST_PARSER
261  cmd_workspace(&current_match, result, get_string("direction"));
262 #else
263  printf("cmd_workspace(%s)\n", get_string("direction"));
264 #endif
265  state = INITIAL;
266  break;
267  case 33:
268 #ifndef TEST_PARSER
270 #else
271  printf("cmd_workspace_back_and_forth()\n");
272 #endif
273  state = INITIAL;
274  break;
275  case 34:
276 #ifndef TEST_PARSER
277  cmd_workspace_name(&current_match, result, get_string("workspace"));
278 #else
279  printf("cmd_workspace_name(%s)\n", get_string("workspace"));
280 #endif
281  state = INITIAL;
282  break;
283  case 35:
284 #ifndef TEST_PARSER
285  cmd_append_layout(&current_match, result, get_string("path"));
286 #else
287  printf("cmd_append_layout(%s)\n", get_string("path"));
288 #endif
289  state = INITIAL;
290  break;
291  case 36:
292 #ifndef TEST_PARSER
293  cmd_mark(&current_match, result, get_string("mark"));
294 #else
295  printf("cmd_mark(%s)\n", get_string("mark"));
296 #endif
297  state = INITIAL;
298  break;
299  case 37:
300 #ifndef TEST_PARSER
302 #else
303  printf("cmd_move_scratchpad()\n");
304 #endif
305  state = INITIAL;
306  break;
307  case 38:
308 #ifndef TEST_PARSER
309  cmd_move_con_to_output(&current_match, result, get_string("output"));
310 #else
311  printf("cmd_move_con_to_output(%s)\n", get_string("output"));
312 #endif
313  state = INITIAL;
314  break;
315  case 39:
316 #ifndef TEST_PARSER
317  cmd_workspace_number(&current_match, result, get_string("workspace"));
318 #else
319  printf("cmd_workspace_number(%s)\n", get_string("workspace"));
320 #endif
321  state = INITIAL;
322  break;
323  case 40:
324 #ifndef TEST_PARSER
325  cmd_split(&current_match, result, get_string("direction"));
326 #else
327  printf("cmd_split(%s)\n", get_string("direction"));
328 #endif
329  state = INITIAL;
330  break;
331  case 41:
332 #ifndef TEST_PARSER
333  cmd_split(&current_match, result, get_string("direction"));
334 #else
335  printf("cmd_split(%s)\n", get_string("direction"));
336 #endif
337  state = INITIAL;
338  break;
339  case 42:
340 #ifndef TEST_PARSER
341  cmd_split(&current_match, result, get_string("direction"));
342 #else
343  printf("cmd_split(%s)\n", get_string("direction"));
344 #endif
345  state = INITIAL;
346  break;
347  case 43:
348 #ifndef TEST_PARSER
349  cmd_split(&current_match, result, get_string("direction"));
350 #else
351  printf("cmd_split(%s)\n", get_string("direction"));
352 #endif
353  state = INITIAL;
354  break;
355  case 44:
356 #ifndef TEST_PARSER
358 #else
359  printf("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_kill(&current_match, result, get_string("kill_mode"));
366 #else
367  printf("cmd_kill(%s)\n", get_string("kill_mode"));
368 #endif
369  state = INITIAL;
370  break;
371  case 46:
372 #ifndef TEST_PARSER
373  cmd_kill(&current_match, result, get_string("kill_mode"));
374 #else
375  printf("cmd_kill(%s)\n", get_string("kill_mode"));
376 #endif
377  state = INITIAL;
378  break;
379  case 47:
380 #ifndef TEST_PARSER
381  cmd_kill(&current_match, result, get_string("kill_mode"));
382 #else
383  printf("cmd_kill(%s)\n", get_string("kill_mode"));
384 #endif
385  state = INITIAL;
386  break;
387  case 48:
388 #ifndef TEST_PARSER
389  cmd_exec(&current_match, result, get_string("nosn"), get_string("command"));
390 #else
391  printf("cmd_exec(%s, %s)\n", get_string("nosn"), get_string("command"));
392 #endif
393  state = INITIAL;
394  break;
395  case 49:
396 #ifndef TEST_PARSER
397  cmd_focus_direction(&current_match, result, get_string("direction"));
398 #else
399  printf("cmd_focus_direction(%s)\n", get_string("direction"));
400 #endif
401  state = INITIAL;
402  break;
403  case 50:
404 #ifndef TEST_PARSER
405  cmd_focus_direction(&current_match, result, get_string("direction"));
406 #else
407  printf("cmd_focus_direction(%s)\n", get_string("direction"));
408 #endif
409  state = INITIAL;
410  break;
411  case 51:
412 #ifndef TEST_PARSER
413  cmd_focus_direction(&current_match, result, get_string("direction"));
414 #else
415  printf("cmd_focus_direction(%s)\n", get_string("direction"));
416 #endif
417  state = INITIAL;
418  break;
419  case 52:
420 #ifndef TEST_PARSER
421  cmd_focus_direction(&current_match, result, get_string("direction"));
422 #else
423  printf("cmd_focus_direction(%s)\n", get_string("direction"));
424 #endif
425  state = INITIAL;
426  break;
427  case 53:
428 #ifndef TEST_PARSER
429  cmd_focus_window_mode(&current_match, result, get_string("window_mode"));
430 #else
431  printf("cmd_focus_window_mode(%s)\n", get_string("window_mode"));
432 #endif
433  state = INITIAL;
434  break;
435  case 54:
436 #ifndef TEST_PARSER
437  cmd_focus_window_mode(&current_match, result, get_string("window_mode"));
438 #else
439  printf("cmd_focus_window_mode(%s)\n", get_string("window_mode"));
440 #endif
441  state = INITIAL;
442  break;
443  case 55:
444 #ifndef TEST_PARSER
445  cmd_focus_window_mode(&current_match, result, get_string("window_mode"));
446 #else
447  printf("cmd_focus_window_mode(%s)\n", get_string("window_mode"));
448 #endif
449  state = INITIAL;
450  break;
451  case 56:
452 #ifndef TEST_PARSER
453  cmd_focus_level(&current_match, result, get_string("level"));
454 #else
455  printf("cmd_focus_level(%s)\n", get_string("level"));
456 #endif
457  state = INITIAL;
458  break;
459  case 57:
460 #ifndef TEST_PARSER
461  cmd_focus_level(&current_match, result, get_string("level"));
462 #else
463  printf("cmd_focus_level(%s)\n", get_string("level"));
464 #endif
465  state = INITIAL;
466  break;
467  case 58:
468 #ifndef TEST_PARSER
469  cmd_focus(&current_match, result);
470 #else
471  printf("cmd_focus()\n");
472 #endif
473  state = INITIAL;
474  break;
475  case 59:
476 #ifndef TEST_PARSER
477  cmd_layout(&current_match, result, get_string("layout_mode"));
478 #else
479  printf("cmd_layout(%s)\n", get_string("layout_mode"));
480 #endif
481  state = INITIAL;
482  break;
483  case 60:
484 #ifndef TEST_PARSER
485  cmd_layout(&current_match, result, get_string("layout_mode"));
486 #else
487  printf("cmd_layout(%s)\n", get_string("layout_mode"));
488 #endif
489  state = INITIAL;
490  break;
491  case 61:
492 #ifndef TEST_PARSER
493  cmd_layout(&current_match, result, get_string("layout_mode"));
494 #else
495  printf("cmd_layout(%s)\n", get_string("layout_mode"));
496 #endif
497  state = INITIAL;
498  break;
499  case 62:
500 #ifndef TEST_PARSER
501  cmd_layout(&current_match, result, get_string("layout_mode"));
502 #else
503  printf("cmd_layout(%s)\n", get_string("layout_mode"));
504 #endif
505  state = INITIAL;
506  break;
507  case 63:
508 #ifndef TEST_PARSER
509  cmd_move_direction(&current_match, result, get_string("direction"), "10");
510 #else
511  printf("cmd_move_direction(%s, %s)\n", get_string("direction"), "10");
512 #endif
513  state = INITIAL;
514  break;
515  case 64:
516 #ifndef TEST_PARSER
518 #else
519  printf("cmd_criteria_init()\n");
520 #endif
521  state = CRITERIA;
522  break;
523  case 65:
524 #ifndef TEST_PARSER
525  cmd_exit(&current_match, result);
526 #else
527  printf("cmd_exit()\n");
528 #endif
529  state = INITIAL;
530  break;
531  case 66:
532 #ifndef TEST_PARSER
533  cmd_restart(&current_match, result);
534 #else
535  printf("cmd_restart()\n");
536 #endif
537  state = INITIAL;
538  break;
539  case 67:
540 #ifndef TEST_PARSER
541  cmd_reload(&current_match, result);
542 #else
543  printf("cmd_reload()\n");
544 #endif
545  state = INITIAL;
546  break;
547  case 68:
548 #ifndef TEST_PARSER
549  cmd_open(&current_match, result);
550 #else
551  printf("cmd_open()\n");
552 #endif
553  state = INITIAL;
554  break;
555  case 69:
556 #ifndef TEST_PARSER
557  cmd_resize(&current_match, result, get_string("way"), get_string("direction"), "10", "10");
558 #else
559  printf("cmd_resize(%s, %s, %s, %s)\n", get_string("way"), get_string("direction"), "10", "10");
560 #endif
561  state = INITIAL;
562  break;
563  default:
564  printf("BUG in the parser. state = %d\n", call_identifier);
565  }
566 }