Ejemplo n.º 1
0
/*..........................................................................*/
static QHsm *Entry_ctor(raid5_entry_t *rentry)
{
	Entry *me;
	Entry *entry;

	/* allocate the memory */
	me = entry = entry_alloc();
	Q_ASSERT(me != NULL);

	QS_OBJ_DICTIONARY(entry);
	/* QS_OBJ_DICTIONARY(entry->x); */
	
	QS_SIG_DICTIONARY(DIR_REQUEST_SIG, me);
	QS_SIG_DICTIONARY(DIR_UPDATE_SIG,  me);
	QS_SIG_DICTIONARY(DIR_INSERT_SIG,  me);
	
	/* adding free list */
	list_add_tail(&me->entry, &rentry->free);
	
	/* call QHsm */
	QHsm_ctor(&me->super, (QStateHandler)&Entry_initial);

	return &me->super;
}
Ejemplo n.º 2
0
/*${SMs::ToastOven_ctor} ...................................................*/
void ToastOven_ctor(void) {
    ToastOven *me = &l_oven;
    QHsm_ctor(&me->super, Q_STATE_CAST(&ToastOven_initial));
}
/*..........................................................................*/
void NumEntry_ctor(NumEntry *me) {                                  /* ctor */
    QHsm_ctor(&me->super, (QStateHandler)&NumEntry_initial);
}
Ejemplo n.º 4
0
/*..........................................................................*/
void QHsmTst_ctor(void) {
    QHsmTst *me = &l_hsmtst;
    QHsm_ctor(&me->super, (QStateHandler)&QHsmTst_initial);
}
Ejemplo n.º 5
0
/* @(/1/1) .................................................................*/
void QHsmTst_ctor(void) {
    QHsmTst *me = &l_hsmtst;
    QHsm_ctor(&me->super, Q_STATE_CAST(&QHsmTst_initial));
}
Ejemplo n.º 6
0
/*..........................................................................*/
void QHsmTst_ctor(void) {
    QHsm_ctor(&HSM_QHsmTst.super, (QStateHandler)&QHsmTst_initial);
}
Ejemplo n.º 7
0
/*..........................................................................*/
void UltimateHook_ctor(UltimateHook *me) {
    QHsm_ctor(&me->super, (QStateHandler)&UltimateHook_initial);
}
/*..........................................................................*/
static void ToastOven_ctor(ToastOven * const me) {          /* default ctor */
    QHsm_ctor(&me->super, Q_STATE_CAST(&ToastOven_initial));
}
Ejemplo n.º 9
0
/*..........................................................................*/
void ToasterOven_ctor(ToasterOven *me) {                    /* default ctor */
    QHsm_ctor(&me->super, (QStateHandler)&ToasterOven_initial);
}
Ejemplo n.º 10
0
/* @(/1/10) ................................................................*/
void Tag_ctor(Tag *me) {
  QHsm_ctor(&me->super, (QStateHandler)&Tag_Initial);
}
Ejemplo n.º 11
0
void QCalc_ctor(QCalc *me) {
    QHsm_ctor(&me->super, (QStateHandler)&QCalc_initial);
}
Ejemplo n.º 12
0
/*${AOs::Philo::ctor} ......................................................*/
void Philo_ctor(Philo * const me, uint8_t num) {
    QHsm_ctor(&me->super, Q_STATE_CAST(&Philo_initial));
    me->num = num;
}
/*..........................................................................*/
void Calc_ctor(void) {
    Calc *me = &l_calc;
    QHsm_ctor(&me->super, Q_STATE_CAST(&Calc_initial));
}