Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Burn.DriveInfo[] info = ImageBurner._drive_scan();
- stdout.printf("len=%u\n", info.length);
- for(uint i = 0; i < info.length; i++) {
- unowned Burn.DriveInfo cur = info[i];
- stdout.printf("Vendor: %s\n", (string)cur.vendor);
- }
- -----------
- (gdb) print di
- $2 = (struct burn_drive_info *) 0x61a890
- (gdb) print di[1]
- $4 = {vendor = "HL-DT-ST", product = "BDDVDRW GGC-H20L", revision = "1.02", location = "/dev/sr1\000\000\000\000\000\000\000\000",
- read_dvdram = 1, read_dvdr = 1, read_dvdrom = 1, read_cdr = 1, read_cdrw = 1, write_dvdram = 1, write_dvdr = 1, write_cdr = 1,
- write_cdrw = 1, write_simulate = 1, c2_errors = 1, buffer_size = 2048, tao_block_types = 257, sao_block_types = 16384,
- raw_block_types = 0, packet_block_types = 0, drive = 0x7ffff519bd58}
- (gdb) print di[2]
- $5 = {vendor = "\000\000\000\000\000\000\000\000", product = '\000' <repeats 16 times>, revision = "\000\000\000\000",
- location = '\000' <repeats 16 times>, read_dvdram = 0, read_dvdr = 0, read_dvdrom = 0, read_cdr = 0, read_cdrw = 0,
- write_dvdram = 0, write_dvdr = 0, write_cdr = 0, write_cdrw = 0, write_simulate = 0, c2_errors = 0, buffer_size = 0,
- tao_block_types = 0, sao_block_types = 0, raw_block_types = 0, packet_block_types = 0, drive = 0x0}
- (gdb)
Add Comment
Please, Sign In to add comment