Commit 3c03ea52 authored by claes's avatar claes

Anix diplayed in application object

parent dc2e644c
/*
* Proview $Id: rt_appl.cpp,v 1.3 2005-09-01 14:57:55 claes Exp $
* Proview $Id: rt_appl.cpp,v 1.4 2007-01-30 07:01:49 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -29,7 +29,7 @@
#include "rt_qcom_msg.h"
#include "rt_ini_event.h"
#include "co_error.h"
#include "pwr_baseclasses.h"
void rt_appl::init()
{
......@@ -75,12 +75,17 @@ void rt_appl::init()
void rt_appl::register_appl( char *name)
{
pwr_tStatus sts;
pwr_sClass_Application *op;
// Get configuration object
sts = gdh_NameToObjid( name, &m_apploid);
if ( EVEN(sts)) throw co_error(sts);
aproc_RegisterObject( m_apploid);
sts = gdh_ObjidToPointer( m_apploid, (void **)&op);
if ( ODD(sts))
op->Anix = m_anix;
}
void rt_appl::mainloop()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment