Commit 0c09a1b7 authored by claes's avatar claes

Application objid stored in object

parent 2657bab8
......@@ -55,14 +55,13 @@ void rt_appl::init()
void rt_appl::register_appl( char *name)
{
pwr_tOid oid;
pwr_tStatus sts;
// Get configuration object
sts = gdh_NameToObjid( name, &oid);
sts = gdh_NameToObjid( name, &m_apploid);
if ( EVEN(sts)) throw co_error(sts);
aproc_RegisterObject( oid);
aproc_RegisterObject( m_apploid);
}
void rt_appl::mainloop()
......
......@@ -30,11 +30,15 @@ class rt_appl {
void mainloop();
double scantime() { return m_scantime;}
void set_scantime( double time) { m_scantime = time;}
pwr_tOid& apploid() { return m_apploid;}
private:
errh_eAnix m_anix;
double m_scantime;
qcom_sQid m_qid;
char m_name[80];
pwr_tOid m_apploid;
};
#endif
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