# HG changeset patch # User nenolod # Date 1138477785 28800 # Node ID 4eb4a52f440e7302336e28c07e04666ad0324dc5 # Parent 3312c831db3eccf59f9f5033fbf18ddb4ba2c317 [svn] add disk_getvol and disk_setvol diff -r 3312c831db3e -r 4eb4a52f440e Plugins/Output/disk_writer/disk_writer.c --- a/Plugins/Output/disk_writer/disk_writer.c Sat Jan 28 11:13:12 2006 -0800 +++ b/Plugins/Output/disk_writer/disk_writer.c Sat Jan 28 11:49:45 2006 -0800 @@ -77,6 +77,10 @@ static gint disk_get_written_time(void); static gint disk_get_output_time(void); static void disk_configure(void); +static void disk_getvol(gint *, gint *); +static void disk_setvol(gint, gint); + +static int lvol = 0, rvol = 0; OutputPlugin disk_op = { @@ -87,8 +91,8 @@ NULL, NULL, /* about */ disk_configure, /* configure */ - NULL, /* get_volume */ - NULL, /* set_volume */ + disk_getvol, /* get_volume */ + disk_setvol, /* set_volume */ disk_open, disk_write, disk_close, @@ -415,3 +419,15 @@ gtk_widget_show(configure_win); } } + +static void disk_getvol(gint *l, gint *r) +{ + (*l) = lvol; + (*r) = rvol; +} + +static void disk_setvol(gint l, gint r) +{ + lvol = l; + rvol = r; +}