More work on client browsing and some query fixes on DACP server
[stereo.git] / DAAPLib / src / util / DACPConstants.java
blob19c110eb34d92ee02220a3c2bfa4e8dadae16991
1 package util;
3 public class DACPConstants extends daap.DAAPConstants {
5 public static final int cmst = 1668117364; //dmcp.status
6 public static final int mstt = 1836282996;
7 public static final int cmsr = 1668117362; //playback status revision number
8 public static final int caps = 1667330163;
9 public static final int cash = 1667330920;
10 public static final int carp = 1667330672;
11 public static final int caas = 1667326323; //shuffle? seen 2 when shuffle was on
12 public static final int caar = 1667326322; //repeat? seen 6 when repeat was off
13 public static final int canp = 1667329648; //only when playing 16 bytes
14 public static final int cann = 1667329646;
15 public static final int cana = 1667329633;
16 public static final int canl = 1667329644;
17 public static final int cang = 1667329639;
18 public static final int asai = 1634951529;
19 public static final int cmmk = 1668115819;
20 public static final int cant = 1667329652; //remaining time, millis
21 public static final int cast = 1667330932; //total time, millis
22 public static final int assr = 1634956146;
23 public static final int muty = 1836414073;
24 public static final int mtco = 1836344175;
25 public static final int mrco = 1836213103;
26 public static final int mlcl = 1835819884;
27 public static final int mlit = 1835821428;
28 public static final int apso = 1634759535;
31 public static final int msrv = parseInt("msrv");
32 public static final int mpro = parseInt("mpro");
33 public static final int apro = parseInt("apro");
34 public static final int mlog = parseInt("mlog");
35 public static final int mlid = parseInt("mlid");
36 public static final int mdcl = parseInt("mdcl");
37 public static final int minm = parseInt("minm");
38 public static final int mupd = parseInt("mupd");
39 public static final int musr = parseInt("musr");
41 public static final int avdb = parseInt("avdb");
42 public static final int abro = parseInt("abro");
43 public static final int abar = parseInt("abar");
44 public static final int agal = parseInt("agal"); //daap.albumgroup?
46 public static final int mper = parseInt("mper");
47 public static final int mimc = parseInt("mimc");
48 public static final int mctc = parseInt("mctc");
49 public static final int miid = parseInt("miid");
51 public static final int caci = parseInt("caci"); //dmcp.ctrl-int
53 //all boolean flags. What do they mean?
54 //c: control
55 //m/a: media, audio
56 //s: setting?
57 public static final int cmik = parseInt("cmik");
58 public static final int cmsp = parseInt("cmsp");
59 public static final int cmsv = parseInt("cmsv");
60 public static final int cass = parseInt("cass");
61 public static final int casu = parseInt("casu");
63 public static final int cmgt = parseInt("cmgt"); //something to do with volume - GeT property?
64 public static final int cmvo = parseInt("cmvo"); //dmcp.volume? includes integer volume 0-100?
66 public static final int casp = parseInt("casp"); //dacp.speakers maybe
67 public static final int msma = parseInt("msma"); //no idea (long, 0 in itunes)
68 public static final int caia = parseInt("caia"); //boolean (true for itunes) is available?
70 public static final int cmcp = parseInt("cmcp"); //control prompt update response
72 //these nodes are used for indexes
73 public static final int mshl = parseInt("mshl"); //list, composed of mlit nodes
74 public static final int mshc = parseInt("mshc"); //two bytes - range? second is ascii letter
75 public static final int mshi = parseInt("mshi"); //index
76 public static final int mshn = parseInt("mshn"); //number of items
79 public static final int cmst = parseInt("cmst");
80 public static final int mstt = parseInt("mstt");
81 public static final int cmsr = parseInt("cmsr");
82 public static final int caps = parseInt("caps");
83 public static final int cash = parseInt("cash");
84 public static final int carp = parseInt("carp");
85 public static final int caas = parseInt("caas");
86 public static final int caar = parseInt("caar");
87 public static final int canp = parseInt("canp");
88 public static final int cann = parseInt("cann");
89 public static final int cana = parseInt("cana");
90 public static final int canl = parseInt("canl");
91 public static final int cang = parseInt("cang");
92 public static final int asai = parseInt("asai");
93 public static final int cmmk = parseInt("cmmk");
94 public static final int cant = parseInt("cant");
95 public static final int cast = parseInt("cast");
96 public static final int assr = parseInt("assr");
98 public static final int muty = parseInt("muty");
99 public static final int mtco = parseInt("mtco");
100 public static final int mrco = parseInt("mrco");
101 public static final int mlcl = parseInt("mlcl");
102 public static final int mlit = parseInt("mlit");
104 public static final int apso = parseInt("apso");
106 public static void main(String[] args) throws IllegalArgumentException, IllegalAccessException {
107 for (Field f: DACPConstants.class.getFields()) {
108 System.out.println("\tpublic static final int " + f.getName() + " = " + f.get(new DACPConstants())+ ";");