// Build a placeholder for a type name. Note that // we can map these to source code locations. Type const* Parser::on_id_type(Token tok) { Type const* t = get_id_type(tok.symbol()); locs_->emplace(t, tok.location()); return t; }
char *get_meshid(struct packet *pkt, unsigned char *meshidlen) { return get_id_type(pkt, meshidlen, BEACON_TAGTYPE_MESHID); }
char *get_ssid(struct packet *pkt, unsigned char *ssidlen) { return get_id_type(pkt, ssidlen, BEACON_TAGTYPE_SSID); }