Merge packet_get_callback_signature into packet_get_response_signature

And extend packet_get_callback_type to packet_get_response_type.