Line | |
---|
1 | #define PROF_VER (1)
|
---|
2 |
|
---|
3 | struct profile {
|
---|
4 | int version;
|
---|
5 | int chrvcnt; char *chrvec;
|
---|
6 | int metavcnt; char *metavec;
|
---|
7 | int extvcnt; char *extvec;
|
---|
8 | int menuvcnt; char *menuvec;
|
---|
9 | };
|
---|
10 |
|
---|
11 | struct stored_profile {
|
---|
12 | unsigned char version[2];
|
---|
13 | unsigned char chrvcnt[2], chrvec[2];
|
---|
14 | unsigned char metavcnt[2], metavec[2];
|
---|
15 | unsigned char extvcnt[2], extvec[2];
|
---|
16 | unsigned char menuvcnt[2], menuvec[2];
|
---|
17 | };
|
---|
18 |
|
---|
19 | #define prof_pack(p, n) ((p)[0] = (n) & 0xFF, (p)[1] = (n) >> 8)
|
---|
20 | #define prof_upack(p) ((p)[0] | ((p)[1] << 8))
|
---|
Note:
See
TracBrowser
for help on using the repository browser.