themselves are a good enough example.
}
#endif
-
-#if 0 /* Example */
-
-/* FIXME: The example is wrong */
-
-void
-custom_get_lm(struct card_attr *ca, byte *attr)
-{
- if (attr)
- ca->lm = atol(attr);
- else
- ca->lm = 0;
-}
-
-byte *
-custom_parse_lm(u32 *dest, byte *value, uns intval)
-{
- if (value)
- return "LM is an integer, not a string";
- *dest = intval;
- return NULL;
-}
-
-#endif
#else
-#if 0
-
-/* FIXME: Add a simple example */
-
-#else
-
/* No custom attributes defined */
#define CUSTOM_CARD_ATTRS
static inline void custom_create_attrs(struct odes *odes UNUSED, struct card_attr *ca UNUSED) { }
#endif
-
-#endif