device_identification
interface is used to identify device
type such as product, stepping etc.
get_id returns the identifier for the given key. Existing keys can be retrieved using the get_key function. All existing keys should return a valid identifier string. For unknown keys the returned value is NULL.
get_key returns the key at the specified index or NULL starting at 0, to get the key at that index. At the index where NULL is returned there are no more keys.
get_key returns the key at the specified index, or NULL if the index does not correspond to a key. To get the complete list of keys, call get_key using an index starting at zero, and increase the index for each call until get_key returns NULL.
SIM_INTERFACE(device_identification) { const char *(*get_id)(conf_object_t *NOTNULL obj, const char *key); const char *(*get_key)(conf_object_t *NOTNULL obj, unsigned int index); }; #define DEVICE_IDENTIFICATION_INTERFACE "device_identification"