android13/external/usb_modeswitch/usb_dongle/Misc.cpp

70 lines
1.3 KiB
C++
Executable File

/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <cutils/properties.h>
#define LOG_TAG "USB_DONGLE"
#include <cutils/log.h>
#include "Misc.h"
Misc::Misc(MiscManager *mm)
{
mMm = mm;
mDebug = false;
}
Misc::~Misc()
{
}
void Misc::setDebug(bool enable) {
mDebug = enable;
}
/*
该函数由派生类实现
*/
int Misc::handleUsbEvent(NetlinkEvent *evt) {
errno = ENOSYS;
return -1;
}
/*
该函数由派生类实现
*/
int Misc::handleScsiEvent(NetlinkEvent *evt) {
errno = ENOSYS;
return -1;
}
int Misc::handleUsb()
{ errno = ENOSYS;
return -1;}