forked from auracaster/openocd
pld: use static registration instead of callback
Remove register_callbacks from pld_device structure, using an array of command_registration records instead.
This commit is contained in:
@@ -31,7 +31,7 @@ struct pld_driver
|
||||
{
|
||||
char *name;
|
||||
__PLD_DEVICE_COMMAND((*pld_device_command));
|
||||
int (*register_commands)(struct command_context *cmd_ctx);
|
||||
const struct command_registration *commands;
|
||||
int (*load)(struct pld_device *pld_device, const char *filename);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user