/* Returns the string name corresponding to the given AirpcapLinkType, or NULL in case of error.  */
const gchar* airpcap_get_link_name(AirpcapLinkType lt)
/* Returns the string name corresponding to the given AirpcapLinkType, or NULL in case of error.  */
const gchar* airpcap_get_link_name(AirpcapLinkType lt)
{
    if (lt == AIRPCAP_LT_802_11) {
        return AIRPCAP_LINK_TYPE_NAME_802_11_ONLY;
    }else if (lt == AIRPCAP_LT_802_11_PLUS_RADIO) {
        return AIRPCAP_LINK_TYPE_NAME_802_11_PLUS_RADIO;
    }else if (lt == AIRPCAP_LT_802_11_PLUS_PPI) {
        return AIRPCAP_LINK_TYPE_NAME_802_11_PLUS_PPI;
    }else if (lt == AIRPCAP_LT_UNKNOWN) {
        return AIRPCAP_LINK_TYPE_NAME_UNKNOWN;
    }
    return NULL;
}