Return hashes in SRs.
[doldaconnect.git] / lib / initcmds.h
CommitLineData
d3372da9 1
2/* Do not modify this file - it is autogenerated by makecmds */
3
4static void initcmds(void)
5{
6 struct command *cmd;
7
8 cmd = makecmd(L"lssr");
9 addresp(cmd, 200, RESP_STR, RESP_STR, RESP_STR, RESP_INT, RESP_INT, RESP_INT, RESP_FLOAT, RESP_END);
10 addresp(cmd, 201, RESP_END);
11 addresp(cmd, 514, RESP_END);
12 cmd = makecmd(L"lssrch");
13 addresp(cmd, 200, RESP_INT, RESP_INT, RESP_INT, RESP_INT, RESP_END);
14 addresp(cmd, 201, RESP_END);
15 cmd = makecmd(L"shutdown");
16 addresp(cmd, 200, RESP_END);
17 addresp(cmd, 502, RESP_END);
18 cmd = makecmd(L"quit");
19 addresp(cmd, 200, RESP_END);
20 cmd = makecmd(L"lsauth");
21 addresp(cmd, 200, RESP_STR, RESP_END);
22 addresp(cmd, 201, RESP_END);
23 cmd = makecmd(L"login");
24 addresp(cmd, 200, RESP_END); /* Success */
25 addresp(cmd, 300, RESP_STR, RESP_END); /* Auto (think GSS-API) */
26 addresp(cmd, 301, RESP_STR, RESP_END); /* No echo */
27 addresp(cmd, 302, RESP_STR, RESP_END); /* Echo */
28 addresp(cmd, 303, RESP_STR, RESP_END); /* Info message */
29 addresp(cmd, 304, RESP_STR, RESP_END); /* Error message */
30 addresp(cmd, 501, RESP_END);
31 addresp(cmd, 503, RESP_END); /* Already logging in */
32 addresp(cmd, 504, RESP_END); /* Charset error */
33 addresp(cmd, 505, RESP_DSC, RESP_STR, RESP_END); /* Back-end error */
34 addresp(cmd, 506, RESP_END); /* Authentication error */
35 addresp(cmd, 508, RESP_END); /* No such authentication mechanism */
36 cmd = makecmd(L"pass");
37 addresp(cmd, 200, RESP_END);
38 addresp(cmd, 300, RESP_STR, RESP_END);
39 addresp(cmd, 301, RESP_STR, RESP_END);
40 addresp(cmd, 302, RESP_STR, RESP_END);
41 addresp(cmd, 303, RESP_STR, RESP_END);
42 addresp(cmd, 304, RESP_STR, RESP_END);
43 addresp(cmd, 504, RESP_END);
44 addresp(cmd, 505, RESP_DSC, RESP_STR, RESP_END);
45 addresp(cmd, 506, RESP_END);
46 addresp(cmd, 507, RESP_END); /* Data not expected */
47 cmd = makecmd(L"cnct");
48 addresp(cmd, 200, RESP_END);
49 addresp(cmd, 502, RESP_END);
50 addresp(cmd, 504, RESP_END);
51 addresp(cmd, 509, RESP_END);
52 addresp(cmd, 511, RESP_END);
53 cmd = makecmd(L"lsnodes");
54 addresp(cmd, 200, RESP_INT, RESP_STR, RESP_STR, RESP_INT, RESP_INT, RESP_END);
55 addresp(cmd, 201, RESP_END);
56 addresp(cmd, 502, RESP_END);
57 cmd = makecmd(L"dcnct");
58 addresp(cmd, 200, RESP_END);
59 addresp(cmd, 502, RESP_END);
60 addresp(cmd, 510, RESP_END);
61 cmd = makecmd(L"lspeers");
62 addresp(cmd, 200, RESP_STR, RESP_STR, RESP_END); /* Peer ID and nick are standardized, so they can be here -- the rest have to be extracted manually */
63 addresp(cmd, 201, RESP_END);
64 addresp(cmd, 510, RESP_END);
65 cmd = makecmd(L"lspa");
66 addresp(cmd, 200, RESP_STR, RESP_INT, RESP_END);
67 addresp(cmd, 201, RESP_END);
68 addresp(cmd, 502, RESP_END);
69 addresp(cmd, 510, RESP_END);
70 cmd = makecmd(L"download");
71 addresp(cmd, 200, RESP_INT, RESP_END);
72 addresp(cmd, 502, RESP_END);
73 addresp(cmd, 510, RESP_END);
74 addresp(cmd, 511, RESP_END);
75 cmd = makecmd(L"lstrans");
76 addresp(cmd, 200, RESP_INT, RESP_INT, RESP_INT, RESP_STR, RESP_STR, RESP_STR, RESP_INT, RESP_INT, RESP_END);
77 addresp(cmd, 201, RESP_END);
78 addresp(cmd, 502, RESP_END);
79 cmd = makecmd(L"cancel");
80 addresp(cmd, 200, RESP_END);
81 addresp(cmd, 502, RESP_END);
82 addresp(cmd, 512, RESP_END);
83 cmd = makecmd(L"notify");
84 addresp(cmd, 200, RESP_END);
85 addresp(cmd, 501, RESP_END);
86 cmd = makecmd(L"sendchat");
87 addresp(cmd, 200, RESP_END);
88 addresp(cmd, 501, RESP_END);
89 addresp(cmd, 502, RESP_END);
90 addresp(cmd, 504, RESP_END);
91 addresp(cmd, 505, RESP_END);
92 addresp(cmd, 509, RESP_END);
93 addresp(cmd, 510, RESP_END);
94 addresp(cmd, 513, RESP_END);
95 cmd = makecmd(L"search");
96 addresp(cmd, 200, RESP_INT, RESP_INT, RESP_END);
97 addresp(cmd, 501, RESP_END);
98 addresp(cmd, 502, RESP_END);
99 addresp(cmd, 509, RESP_END);
100 addresp(cmd, 510, RESP_END);
101 cmd = makecmd(L"cansrch");
102 addresp(cmd, 200, RESP_END);
103 addresp(cmd, 514, RESP_END);
104 cmd = makecmd(L"filtercmd");
105 addresp(cmd, 200, RESP_STR, RESP_END);
106 addresp(cmd, 201, RESP_END);
107 addresp(cmd, 501, RESP_END);
108 addresp(cmd, 502, RESP_END);
109 addresp(cmd, 504, RESP_END);
110 addresp(cmd, 505, RESP_END);
111 cmd = makecmd(L"lstrarg");
112 addresp(cmd, 200, RESP_STR, RESP_STR, RESP_END);
113 addresp(cmd, 201, RESP_END);
114 addresp(cmd, 501, RESP_END);
115 addresp(cmd, 502, RESP_END);
116 addresp(cmd, 512, RESP_END);
117 cmd = makecmd(NULL); /* Nameless notification */
118 addresp(cmd, 600, RESP_INT, RESP_INT, RESP_STR, RESP_STR, RESP_STR, RESP_END); /* FN chat */
119 addresp(cmd, 601, RESP_INT, RESP_INT, RESP_END); /* FN state change */
120 addresp(cmd, 602, RESP_INT, RESP_STR, RESP_END); /* FN name change */
121 addresp(cmd, 603, RESP_INT, RESP_END); /* FN destroy */
122 addresp(cmd, 604, RESP_INT, RESP_STR, RESP_END); /* FN create */
123 addresp(cmd, 605, RESP_INT, RESP_INT, RESP_END); /* FN num peers change */
124 addresp(cmd, 610, RESP_INT, RESP_INT, RESP_STR, RESP_STR, RESP_END); /* Transfer create */
125 addresp(cmd, 611, RESP_INT, RESP_INT, RESP_END); /* Transfer state change */
126 addresp(cmd, 612, RESP_INT, RESP_STR, RESP_END); /* Transfer nick change */
127 addresp(cmd, 613, RESP_INT, RESP_INT, RESP_END); /* Transfer size change */
128 addresp(cmd, 614, RESP_INT, RESP_INT, RESP_END); /* Transfer error update */
129 addresp(cmd, 615, RESP_INT, RESP_INT, RESP_END); /* Transfer progress */
130 addresp(cmd, 616, RESP_INT, RESP_STR, RESP_END); /* Transfer path change */
131 addresp(cmd, 617, RESP_INT, RESP_END); /* Transfer destroy */
132 addresp(cmd, 620, RESP_INT, RESP_INT, RESP_END);
133 addresp(cmd, 621, RESP_INT, RESP_END);
134 addresp(cmd, 622, RESP_INT, RESP_STR, RESP_STR, RESP_STR, RESP_INT, RESP_INT, RESP_INT, RESP_FLOAT, RESP_END);
135 cmd = makecmd(NULL); /* Nameless connection */
136 addresp(cmd, 200, RESP_STR, RESP_END);
137 addresp(cmd, 502, RESP_END);
138}