예제 #1
0
void* main_thread(void* param)
{
    ENTER_FUNCTION();
    thread_sleep(1);
    DPRINTF(g_enable, "g_data == %d", g_data);
    return 0;
}
DcpBrief* DisplayLangApplet::constructBrief(int partId)
{
    ENTER_FUNCTION();
    Q_UNUSED(partId);
    DcpBrief *ret = new DisplayLangBrief();
    LEAVE_FUNCTION();
    return ret;
}
QString DisplayLangApplet::title() const
{
    ENTER_FUNCTION();
    //% "Language"
    QString ret = qtTrId("qtn_comm_settings_language");
    LEAVE_FUNCTION();
    return ret;
}
MSheet* DisplayLangApplet::constructSheet(int widgetId)
{
    ENTER_FUNCTION();
    Q_UNUSED(widgetId);
    MSheet* widget = new DisplayWidget();
    LEAVE_FUNCTION();
    return widget;
}
예제 #5
0
NTSTATUS ExecuteFlush(PDEVICE_OBJECT DeviceObject, PTHREAD Thread, BOOLEAN Finalize) {
	PDEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension;
	PLEVELING_CTX Ctx = DeviceExtension->Ctx;
	NTSTATUS status;
	ENTER_FUNCTION(LVL_FLUSH, "Ctx=%p", Ctx);
	ASSERT(!Ctx->Flushing);
	Ctx->Flushing = TRUE;
	Ctx->Finalizing = Finalize;
	status = ExecuteFlushHandler(DeviceObject, Thread);
	LEAVE_FUNCTION(LVL_FLUSH, "%s", NtStatusName(status));
	return status;
}
QVector<MAction*> DisplayLangApplet::viewMenuItems()
{
    ENTER_FUNCTION();
    QVector<MAction*> vector;

    // closeAction
    /* MAction *closeAction = new MAction(DcpDisplayLang::QuitSettingsMenuText, this);
    closeAction->setPossibleLocations(MAction::ViewMenu);
    connect(closeAction, SIGNAL(triggered()), qApp, SLOT(closeAllWindows()));
    vector.push_back(closeAction);*/

    LEAVE_FUNCTION();
    return vector;
}
예제 #7
0
NTSTATUS ExecuteFlushHandler(PDEVICE_OBJECT DeviceObject, PTHREAD Thread) {
	PDEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension;
	PLEVELING_CTX Ctx = DeviceExtension->Ctx;
	PIRP Irp = Thread->Irp;
	NTSTATUS status;
	ENTER_FUNCTION(LVL_FLUSH, "Ctx=%p", Ctx);
	ASSERT(Ctx->Flushing);
	if((Ctx->CachePos & 7) != 0) {
		ULONG LBA = Ctx->CacheLBA[Ctx->CachePos - 1] + 1;
		ULONG LEN = 8 - (Ctx->CachePos & 7);
		TRACE(LVL_FLUSH, "Flush Cache Fill Read Ctx=%p", Ctx);
		ASSERT((LBA >> 3) < Ctx->SIZE_OF_MAP);
		if(Ctx->Map[LBA >> 3] != NOT_MAPPED) {
			if(NULL != Irp) {
				IoMarkIrpPending(Irp);
			}
			ExecuteCacheFillRead(Ctx, LBA, LEN);
			status = STATUS_PENDING;
			goto exit;
		}
		CacheFillReadZero(Ctx, LBA, LEN);
	}