blob: 97a81182dc2f89941d3b473dcf07a7d2c10f4e78 [file] [log] [blame]
// Copyright 2014 The Android Open Source Project
//
// This software is licensed under the terms of the GNU General Public
// License version 2, as published by the Free Software Foundation, and
// may be copied, distributed, and modified under those terms.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
#include "android/looper-base.h"
#include "android/base/async/Looper.h"
using ::android::internal::GLooper;
::Looper* looper_newGeneric(void) {
GLooper* glooper = new GLooper(
::android::base::Looper::create());
return &glooper->looper;
}