require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_NETGRAPH_BTSOCKET_L2CAP_H_)) {
    eval 'sub _NETGRAPH_BTSOCKET_L2CAP_H_ () {1;}' unless defined(&_NETGRAPH_BTSOCKET_L2CAP_H_);
    require 'sys/timeout.ph';
    eval 'sub NG_BTSOCKET_L2CAP_RAW_SENDSPACE () { &NG_L2CAP_MTU_DEFAULT;}' unless defined(&NG_BTSOCKET_L2CAP_RAW_SENDSPACE);
    eval 'sub NG_BTSOCKET_L2CAP_RAW_RECVSPACE () { &NG_L2CAP_MTU_DEFAULT;}' unless defined(&NG_BTSOCKET_L2CAP_RAW_RECVSPACE);
    eval 'sub NG_BTSOCKET_L2CAP_RAW_PRIVILEGED () {(1<< 0);}' unless defined(&NG_BTSOCKET_L2CAP_RAW_PRIVILEGED);
    if(0) {
    }
    eval 'sub so2l2cap_raw_pcb {
        my($so) = @_;
	    eval q(((($so)-> &so_pcb)));
    }' unless defined(&so2l2cap_raw_pcb);
    if(defined(&_KERNEL)) {
    }
    eval 'sub NG_BTSOCKET_L2CAP_SENDSPACE () { &NG_L2CAP_MTU_DEFAULT;}' unless defined(&NG_BTSOCKET_L2CAP_SENDSPACE);
    eval 'sub NG_BTSOCKET_L2CAP_RECVSPACE () {(64* 1024);}' unless defined(&NG_BTSOCKET_L2CAP_RECVSPACE);
    eval 'sub NG_BTSOCKET_L2CAP_CLIENT () {(1<< 0);}' unless defined(&NG_BTSOCKET_L2CAP_CLIENT);
    eval 'sub NG_BTSOCKET_L2CAP_TIMO () {(1<< 1);}' unless defined(&NG_BTSOCKET_L2CAP_TIMO);
    eval 'sub NG_BTSOCKET_L2CAP_CLOSED () {0;}' unless defined(&NG_BTSOCKET_L2CAP_CLOSED);
    eval 'sub NG_BTSOCKET_L2CAP_CONNECTING () {1;}' unless defined(&NG_BTSOCKET_L2CAP_CONNECTING);
    eval 'sub NG_BTSOCKET_L2CAP_CONFIGURING () {2;}' unless defined(&NG_BTSOCKET_L2CAP_CONFIGURING);
    eval 'sub NG_BTSOCKET_L2CAP_OPEN () {3;}' unless defined(&NG_BTSOCKET_L2CAP_OPEN);
    eval 'sub NG_BTSOCKET_L2CAP_DISCONNECTING () {4;}' unless defined(&NG_BTSOCKET_L2CAP_DISCONNECTING);
    eval 'sub NG_BTSOCKET_L2CAP_CFG_IN () {(1<< 0);}' unless defined(&NG_BTSOCKET_L2CAP_CFG_IN);
    eval 'sub NG_BTSOCKET_L2CAP_CFG_OUT () {(1<< 1);}' unless defined(&NG_BTSOCKET_L2CAP_CFG_OUT);
    eval 'sub NG_BTSOCKET_L2CAP_CFG_BOTH () {( &NG_BTSOCKET_L2CAP_CFG_IN |  &NG_BTSOCKET_L2CAP_CFG_OUT);}' unless defined(&NG_BTSOCKET_L2CAP_CFG_BOTH);
    eval 'sub NG_BTSOCKET_L2CAP_CFG_IN_SENT () {(1<< 2);}' unless defined(&NG_BTSOCKET_L2CAP_CFG_IN_SENT);
    eval 'sub NG_BTSOCKET_L2CAP_CFG_OUT_SENT () {(1<< 3);}' unless defined(&NG_BTSOCKET_L2CAP_CFG_OUT_SENT);
    if(0) {
    }
    eval 'sub so2l2cap_pcb {
        my($so) = @_;
	    eval q(((($so)-> &so_pcb)));
    }' unless defined(&so2l2cap_pcb);
    if(defined(&_KERNEL)) {
    }
}
1;
