require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_DEV_BLUETOOTH_BTDEV_H_)) {
    eval 'sub _DEV_BLUETOOTH_BTDEV_H_ () {1;}' unless defined(&_DEV_BLUETOOTH_BTDEV_H_);
    require 'netbt/bluetooth.ph';
    eval 'sub bd_hid () { ($bdd->{bdd_hid});}' unless defined(&bd_hid);
    eval 'sub bd_hset () { ($bdd->{bdd_hset});}' unless defined(&bd_hset);
    eval 'sub bd_hf () { ($bdd->{bdd_hf});}' unless defined(&bd_hf);
    eval 'sub BTDEV_HID () {0x1;}' unless defined(&BTDEV_HID);
    eval 'sub BTDEV_HSET () {0x2;}' unless defined(&BTDEV_HSET);
    eval 'sub BTDEV_HF () {0x3;}' unless defined(&BTDEV_HF);
    eval 'sub BTDEV_MODE_NONE () {0;}' unless defined(&BTDEV_MODE_NONE);
    eval 'sub BTDEV_MODE_AUTH () {1;}' unless defined(&BTDEV_MODE_AUTH);
    eval 'sub BTDEV_MODE_ENCRYPT () {2;}' unless defined(&BTDEV_MODE_ENCRYPT);
    eval 'sub BTDEV_MODE_SECURE () {3;}' unless defined(&BTDEV_MODE_SECURE);
    eval 'sub BTHID_INITIATE () {(1<< 0);}' unless defined(&BTHID_INITIATE);
    eval 'sub BTDEV_ATTACH () { &_IOW(ord(\'b\'), 14, \'struct btdev_attach_args\');}' unless defined(&BTDEV_ATTACH);
    eval 'sub BTDEV_DETACH () { &_IOW(ord(\'b\'), 15, \'struct btdev_attach_args\');}' unless defined(&BTDEV_DETACH);
    if(defined(&_KERNEL)) {
	eval 'sub btdev_name {
	    my($d) = @_;
    	    eval q(((($d))-> ($sc_dev->{dv_xname})));
	}' unless defined(&btdev_name);
    }
}
1;
