Move realms from the nation file into a new realms file:
(boundstr, realmstr): Rename, new members ef_type, r_cnum, r_uid, r_realm, r_timestamp. (natstr): Remove member nat_b[]. (EF_REALM, realm_ca): New. (empfile): Add it. (ef_open_srv, ef_close_srv, main): Deal with new file. (getrealm, putrealm): New. (add, new, real, list_realm, sarg_getrange): Use them.
This commit is contained in:
parent
04a8b84592
commit
45adbdb00e
11 changed files with 94 additions and 34 deletions
|
@ -526,6 +526,17 @@ struct castr nat_ca[] = {
|
|||
{NSC_NOTYPE, 0, 0, 0, NULL, EF_BAD}
|
||||
};
|
||||
|
||||
struct castr realm_ca[] = {
|
||||
{NSC_SHORT, 0, 0, fldoff(realmstr, r_uid), "uid", EF_REALM},
|
||||
{NSC_NATID, 0, 0, fldoff(realmstr, r_cnum), "cnum", EF_NATION},
|
||||
{NSC_USHORT, 0, 0, fldoff(realmstr, r_realm), "realm"},
|
||||
{NSC_SHORT, 0, 0, fldoff(realmstr, r_xl), "xl"},
|
||||
{NSC_SHORT, 0, 0, fldoff(realmstr, r_xh), "xh"},
|
||||
{NSC_SHORT, 0, 0, fldoff(realmstr, r_yl), "yl"},
|
||||
{NSC_SHORT, 0, 0, fldoff(realmstr, r_yh), "yh"},
|
||||
{NSC_NOTYPE, 0, 0, 0, NULL, EF_BAD}
|
||||
};
|
||||
|
||||
struct castr intrchr_ca[] = {
|
||||
{NSC_STRING, NSC_CONST, 0, offsetof(struct sctintrins, in_name), "name",
|
||||
EF_BAD},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue