X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fcustom.h;h=250a7bac19afc6636efac7ce32aff61cfc26e050;hb=157acec25f2e60c76607edc3d62cf23fe47f4efe;hp=f4a57115aae467872ce9fd6d65507fba28f0fe1a;hpb=545e490d1b044e8453c54a62b64e4da0d12bee65;p=libucw.git diff --git a/lib/custom.h b/lib/custom.h index f4a57115..250a7bac 100644 --- a/lib/custom.h +++ b/lib/custom.h @@ -98,6 +98,9 @@ enum string_type { * A good place for definitions of the functions is lib/custom.c. * * Please order the attributes by decreasing size to get optimum padding. + * + * If you also want the search server to sort by a custom attribute + * on ties, define CUSTOM_SORTING. */ #if 0 /* Example */ @@ -108,6 +111,8 @@ struct card_attr; void custom_get_lm(struct card_attr *ca, byte *attr); byte *custom_parse_lm(u32 *dest, byte *value, uns intval); +#define CUSTOM_SORTING + #else #define CUSTOM_ATTRS