design_pattern_for_c  V 1.00
state_info_t Struct Reference

state method definition, to know detail, add parameter "name". More...

#include <state_manager.h>

Data Fields

int state
 
char * name
 state value related function More...
 
int(* state_method )(void *arg)
 name, function name defined by macro. More...
 

Detailed Description

state method definition, to know detail, add parameter "name".

It is set by STATE_MNG_SET_INFO_INIT or STATE_MNG_SET_INFO macro. Please use it.

Definition at line 15 of file state_manager.h.

Field Documentation

◆ name

char* name

state value related function

Definition at line 17 of file state_manager.h.

◆ state

int state

Definition at line 16 of file state_manager.h.

◆ state_method

int(* state_method) (void *arg)

name, function name defined by macro.

So please use macro

Definition at line 18 of file state_manager.h.


The documentation for this struct was generated from the following file: