|
40 | 40 | * objtab.c file. ES iterates the table of pointers to these descriptors |
41 | 41 | * at each lifecycle phase: |
42 | 42 | * |
43 | | - * - EarlyInit : called before any tasks are started |
44 | | - * - TaskMain : entry point passed to OS_TaskCreate(); NULL for library modules |
45 | | - * - Cleanup : called during shutdown; NULL if not required |
| 43 | + * - EarlyInit : called before any tasks are started |
| 44 | + * - TaskMain : entry point passed to OS_TaskCreate(); NULL for library modules |
| 45 | + * - AppCleanupCb : Notification function called when state from an external is cleaned up. |
| 46 | + * If this module has any resources associated with the given app, this routine |
| 47 | + * should free those resources. If this module does not track any per-app state, |
| 48 | + * then this should be set NULL. The parameter is the CFE ES AppId converted to |
| 49 | + * a plain unsigned integer value (the CFE_ES_AppId_t typedef does not exist here). |
46 | 50 | */ |
47 | 51 | typedef struct |
48 | 52 | { |
49 | | - const char *Name; /**< Module name, e.g. "CFE_EVS" */ |
50 | | - int32 (*EarlyInit)(void); /**< Early initialization function; must not be NULL */ |
51 | | - void (*TaskMain)(void); /**< Task entry point; NULL for library-only modules */ |
52 | | - int32 (*Cleanup)(uint32 Id); /**< Cleanup function; NULL if not required */ |
53 | | - uint32 Priority; /**< Task priority; ignored if TaskMain is NULL */ |
54 | | - uint32 StackSize; /**< Task stack size in bytes; ignored if TaskMain is NULL */ |
| 53 | + const char *Name; /**< Module name, e.g. "CFE_EVS" */ |
| 54 | + int32 (*EarlyInit)(void); /**< Early initialization function; must not be NULL */ |
| 55 | + void (*TaskMain)(void); /**< Task entry point; NULL for library-only modules */ |
| 56 | + int32 (*AppCleanupCb)(uint32 Id); /**< Callback function to invoke when external apps are stopped */ |
| 57 | + uint32 Priority; /**< Task priority; ignored if TaskMain is NULL */ |
| 58 | + uint32 StackSize; /**< Task stack size in bytes; ignored if TaskMain is NULL */ |
55 | 59 | } Target_ObjectTable_t; |
56 | 60 |
|
57 | 61 | #endif /* CFE_ES_OBJTAB_H */ |
0 commit comments