#define CALLBACK_EXSIST (cmdCallbackContainer.numberOfCBentrys > 0) |
Referenced by gdb_main_loop(), getDebugChar(), jtag_test(), putDebugChar(), and putpacket().
enum pendingACT |
Callback Actions
void inQueueCmdCallbackEntry | ( | struct cmdCallbackEntry * | entry, | |
int(*)(int arg, int cnt, struct context *context) | fntCB, | |||
int | argSrc, | |||
int | cntSrc, | |||
struct context * | contextSrc, | |||
int | contextSize | |||
) |
Append a callback entry at the end of a list.
Also update a copy of all entry elements needed for later callback.
(if a context exist, then allocate a new buffer and copy all elements to it)
entry | pointer to callback entry | |
fntCB | function that should be called | |
argSrc | first functions argument | |
cntSrc | second functions argument | |
contextSrc | last functions argument (pointer to more data) | |
contextSize | size of additional context data |
References cmdCallbackEntry::arg, cmdCallbackEntry::cnt, cmdCallbackEntry::context, cmdCallbackEntry::fntCB, cmdCallbackEntry::nextCBentry, and cmdCallbackEntry::prevCBentry.
Referenced by activateMemCleanUp(), checkFlashCB_read_sector(), eraseFlashCB_sector(), ftdiBlink(), ftdiBlinkStopCB(), gdb_flash_auto_programming(), gdb_monitor_Rcmd(), memCleanUpCB(), printmemMapCB_info(), programFlashCB_write_sector(), and verifyFlashCB_read_sector().
struct cmdCallbackEntry* deQueueCmdCallbackEntry | ( | void | ) | [read] |
collect first entry from list and remove it from the list.
- |
References cmdCallbackEntry::nextCBentry, and cmdCallbackEntry::prevCBentry.
Referenced by doCallback(), and removeAllCallbacks().