return RESPONSE_SUCCESS;
}
+int miracle_wipe( command_argument cmd_arg )
+{
+ miracle_unit unit = miracle_get_unit(cmd_arg->unit);
+
+ if (unit == NULL)
+ return RESPONSE_INVALID_UNIT;
+ else
+ {
+ if ( miracle_unit_wipe( unit ) != valerie_ok )
+ return RESPONSE_BAD_FILE;
+ }
+ return RESPONSE_SUCCESS;
+}
+
int miracle_clear( command_argument cmd_arg )
{
miracle_unit unit = miracle_get_unit(cmd_arg->unit);
miracle_unit unit = miracle_get_unit(cmd_arg->unit);
if ( unit != NULL && producer != NULL )
{
- if ( miracle_unit_append_service( unit, mlt_producer_service( producer ) ) == valerie_ok )
+ if ( miracle_unit_append_service( unit, MLT_PRODUCER_SERVICE( producer ) ) == valerie_ok )
{
mlt_producer_close( producer );
return RESPONSE_SUCCESS;