代码拉取完成,页面将自动刷新
/* Copyright (C)
* xq2537@gmail.com
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
/**
* @file android.c
* @brief The implementation of system controller
* @author xq2537@gmail.com
* @version 78.77
*/
#include <skyeye_types.h>
#include <skyeye_sched.h>
#include <skyeye_signal.h>
#include <skyeye_class.h>
#include <skyeye_interface.h>
#include <skyeye_obj.h>
#include <skyeye_mm.h>
#include <memory_space.h>
#include <skyeye_device.h>
#define DEBUG
#include <skyeye_log.h>
#include <skyeye_android_intf.h>
#include "android_main.h"
#include "android/skyeye/console.h"
#include "globals.h"
#include "android.h"
#include <skyeye_android_intf.h>
static conf_object_t* new_android(char* obj_name){
/* registe android callback functions */
android_t* ad = skyeye_mm_zero(sizeof(android_t));
ad->obj = new_conf_object(obj_name, ad);
android_interface_t* android_if = skyeye_mm_zero(sizeof(android_interface_t));
android_if->get_android_hw = get_android_hw;
android_if->qemu_add_mouse_event_handler = qemu_add_mouse_event_handler;
printf("add mouse handler address 0x%x\n",qemu_add_mouse_event_handler);
android_if->qemu_add_kbd_event_handler = qemu_add_kbd_event_handler;
android_if->graphic_console_init = graphic_console_init;
android_if->start_android = android_main;
android_if->obj = ad->obj;
SKY_register_interface(android_if, obj_name, ANDROID_INTF_NAME);
return ad->obj;
}
void free_android(conf_object_t* dev){
}
void init_android(){
static skyeye_class_t class_data = {
.class_name = "android",
.class_desc = "android",
.new_instance = new_android,
.free_instance = free_android,
.get_attr = NULL,
.set_attr = NULL
};
SKY_register_class(class_data.class_name, &class_data);
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。