#ifndef PLD_H
#define PLD_H
-#include "command.h"
+#include <helper/command.h>
struct pld_device;
{
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);
};
int pld_register_commands(struct command_context *cmd_ctx);
-int pld_init(struct command_context *cmd_ctx);
-
struct pld_device *get_pld_device_by_num(int num);
#define ERROR_PLD_DEVICE_INVALID (-1000)