147ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase/* 247ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase * Copyright (C) 2011 The Android Open Source Project 347ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase * 447ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase * Licensed under the Apache License, Version 2.0 (the "License"); 547ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase * you may not use this file except in compliance with the License. 647ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase * You may obtain a copy of the License at 747ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase * 847ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase * http://www.apache.org/licenses/LICENSE-2.0 947ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase * 1047ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase * Unless required by applicable law or agreed to in writing, software 1147ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase * distributed under the License is distributed on an "AS IS" BASIS, 1247ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1347ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase * See the License for the specific language governing permissions and 1447ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase * limitations under the License. 1547ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase */ 1647ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase 1747ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase#ifndef ANDROID_FUNCTOR_H 1847ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase#define ANDROID_FUNCTOR_H 1947ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase 2047ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase#include <utils/Errors.h> 2147ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase 2247ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haasenamespace android { 2347ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase 2447ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haaseclass Functor { 2547ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haasepublic: 2647ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase Functor() {} 2747ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase virtual ~Functor() {} 28a08152f43c01035373fd56500e40d5bf7996a689Romain Guy virtual status_t operator ()(int what, void* data) { return NO_ERROR; } 2947ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase}; 3047ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase 3147ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase}; // namespace android 3247ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase 3347ab362e8d7ac1b2f72a4e16b00bb8b56e8ac68aChet Haase#endif // ANDROID_FUNCTOR_H 34