1b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase/* 2b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase * Copyright (C) 2011 The Android Open Source Project 3b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase * 4b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase * Licensed under the Apache License, Version 2.0 (the "License"); 5b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase * you may not use this file except in compliance with the License. 6b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase * You may obtain a copy of the License at 7b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase * 8b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase * http://www.apache.org/licenses/LICENSE-2.0 9b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase * 10b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase * Unless required by applicable law or agreed to in writing, software 11b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase * distributed under the License is distributed on an "AS IS" BASIS, 12b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase * See the License for the specific language governing permissions and 14b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase * limitations under the License. 15b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase */ 16b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase 17b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase#ifndef ANDROID_FUNCTOR_H 18b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase#define ANDROID_FUNCTOR_H 19b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase 20b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase#include <utils/Errors.h> 21b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase 22b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haasenamespace android { 23b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase 24b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haaseclass Functor { 25b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haasepublic: 26b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase Functor() {} 27b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase virtual ~Functor() {} 28349626eb76ed2618e9a57e63d7acb4b28a85dae4Romain Guy virtual status_t operator ()(int what, void* data) { return NO_ERROR; } 29b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase}; 30b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase 31b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase}; // namespace android 32b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase 33b90c51a7258966c0372a84ec2059fd1b03e2a782Chet Haase#endif // ANDROID_FUNCTOR_H 34