X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Ftarget_type.h;h=234cdfb0071fce12e8885cd2eff2467a4a83997b;hb=48768db9d6420013ccd88107a67de85fdcd5bbd8;hp=cf3c864c80f072c326682c898b79466c4110c485;hpb=2803fa3822d4aaa4803b103a035fe98782a8adc9;p=openocd.git diff --git a/src/target/target_type.h b/src/target/target_type.h index cf3c864c80..234cdfb007 100644 --- a/src/target/target_type.h +++ b/src/target/target_type.h @@ -225,6 +225,13 @@ struct target_type { * */ int (*init_target)(struct command_context *cmd_ctx, struct target *target); + /** + * Free all the resources allocated by the target. + * + * @param target The target to deinit + */ + void (*deinit_target)(struct target *target); + /* translate from virtual to physical address. Default implementation is successful * no-op(i.e. virtual==physical). */