headers/bsd: Add sys/queue.h.
[haiku.git] / src / tests / servers / app / workspace_switcher / workspace_switcher.cpp
blob5d048236c72edf8584fbedc3fb9731ee88298893
1 /*
2 * Copyright 2008, Haiku Inc.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Axel Dörfler, axeld@pinc-software.de
7 */
10 #include <stdlib.h>
12 #include <Application.h>
15 int
16 main(int argc, char** argv)
18 BApplication app("application/x-vnd.Haiku-test-wss");
20 if (argc == 1) {
21 // switch forever
22 while (true) {
23 activate_workspace(0);
24 snooze(3000);
25 activate_workspace(1);
27 return 0;
30 for (int i = 1; i < argc; i++) {
31 activate_workspace(strtoul(argv[i], NULL, 0));
32 snooze(3000);
35 return 0;