1 /*
2     SuperCollider real time audio synthesis system
3     Copyright (c) 2002 James McCartney. All rights reserved.
4     http://www.audiosynth.com
5 
6     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10 
11     This program is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15 
16     You should have received a copy of the GNU General Public License
17     along with this program; if not, write to the Free Software
18     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
19 */
20 
21 
22 #pragma once
23 
24 // command numbers:
25 enum {
26     cmd_none = 0,
27 
28     cmd_notify = 1,
29     cmd_status = 2,
30     cmd_quit = 3,
31     cmd_cmd = 4,
32 
33     cmd_d_recv = 5,
34     cmd_d_load = 6,
35     cmd_d_loadDir = 7,
36     cmd_d_freeAll = 8,
37 
38     cmd_s_new = 9,
39 
40     cmd_n_trace = 10,
41     cmd_n_free = 11,
42     cmd_n_run = 12,
43     cmd_n_cmd = 13,
44     cmd_n_map = 14,
45     cmd_n_set = 15,
46     cmd_n_setn = 16,
47     cmd_n_fill = 17,
48     cmd_n_before = 18,
49     cmd_n_after = 19,
50 
51     cmd_u_cmd = 20,
52 
53     cmd_g_new = 21,
54     cmd_g_head = 22,
55     cmd_g_tail = 23,
56     cmd_g_freeAll = 24,
57 
58     cmd_c_set = 25,
59     cmd_c_setn = 26,
60     cmd_c_fill = 27,
61 
62     cmd_b_alloc = 28,
63     cmd_b_allocRead = 29,
64     cmd_b_read = 30,
65     cmd_b_write = 31,
66     cmd_b_free = 32,
67     cmd_b_close = 33,
68     cmd_b_zero = 34,
69     cmd_b_set = 35,
70     cmd_b_setn = 36,
71     cmd_b_fill = 37,
72     cmd_b_gen = 38,
73 
74     cmd_dumpOSC = 39,
75 
76     cmd_c_get = 40,
77     cmd_c_getn = 41,
78     cmd_b_get = 42,
79     cmd_b_getn = 43,
80     cmd_s_get = 44,
81     cmd_s_getn = 45,
82 
83     cmd_n_query = 46,
84     cmd_b_query = 47,
85 
86     cmd_n_mapn = 48,
87     cmd_s_noid = 49,
88 
89     cmd_g_deepFree = 50,
90     cmd_clearSched = 51,
91 
92     cmd_sync = 52,
93 
94     cmd_d_free = 53,
95 
96     cmd_b_allocReadChannel = 54,
97     cmd_b_readChannel = 55,
98 
99     cmd_g_dumpTree = 56,
100     cmd_g_queryTree = 57,
101 
102     cmd_error = 58,
103 
104     cmd_s_newargs = 59,
105 
106     cmd_n_mapa = 60,
107     cmd_n_mapan = 61,
108     cmd_n_order = 62,
109 
110     cmd_p_new = 63,
111 
112     cmd_version = 64,
113 
114     NUMBER_OF_COMMANDS = 65
115 };
116