3b06b22ed4
The getService() and registerAsService() methods of interface objects now have default parameters of "default" for the service name. HALs will not have to use any service name unless they want to register more than one service. Test: builds; verify HAL still works In support of b/33844934 Change-Id: Id7b76e1df98e1ecacb530a1b5fec76bf14ba6eb7
13 lines
337 B
C++
13 lines
337 B
C++
#define LOG_TAG "android.hardware.nfc@1.0-service"
|
|
|
|
#include <android/hardware/nfc/1.0/INfc.h>
|
|
|
|
#include <hidl/LegacySupport.h>
|
|
|
|
// Generated HIDL files
|
|
using android::hardware::nfc::V1_0::INfc;
|
|
using android::hardware::defaultPassthroughServiceImplementation;
|
|
|
|
int main() {
|
|
return defaultPassthroughServiceImplementation<INfc>();
|
|
}
|