file.h (xorriso-1.4.6) | : | file.h (xorriso-1.4.8) | ||
---|---|---|---|---|
/* -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 8; -*- */ | /* -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 8; -*- */ | |||
/* Copyright (c) 2004 - 2006 Derek Foreman, Ben Jansens | /* Copyright (c) 2004 - 2006 Derek Foreman, Ben Jansens | |||
Copyright (c) 2006 - 2010 Thomas Schmitt <scdbackup@gmx.net> | Copyright (c) 2006 - 2017 Thomas Schmitt <scdbackup@gmx.net> | |||
Provided under GPL version 2 or later. | Provided under GPL version 2 or later. | |||
*/ | */ | |||
#ifndef BURN__FILE_H | #ifndef BURN__FILE_H | |||
#define BURN__FILE_H | #define BURN__FILE_H | |||
struct burn_source_file | struct burn_source_file | |||
{ | { | |||
char magic[4]; | char magic[4]; | |||
skipping to change at line 29 | skipping to change at line 29 | |||
/* ts A70126 : burn_source_file obsoleted burn_source_fd */ | /* ts A70126 : burn_source_file obsoleted burn_source_fd */ | |||
/* ts A70930 */ | /* ts A70930 */ | |||
struct burn_source_fifo { | struct burn_source_fifo { | |||
char magic[4]; | char magic[4]; | |||
/* The fifo stays inactive and unequipped with eventual resources | /* The fifo stays inactive and unequipped with eventual resources | |||
until its read() method is called for the first time. | until its read() method is called for the first time. | |||
Only then burn_fifo_start() gets called, allocates the complete | Only then burn_fifo_start() gets called, allocates the complete | |||
resources, starts a thread with burn_fifo_source_shuffler() | resources, starts a thread with burn_fifo_source_shoveller() | |||
which shuffles data and finally destroys the resources. | which shovels data and finally destroys the resources. | |||
This late start is to stay modest in case of multiple tracks | This late start is to stay modest in case of multiple tracks | |||
in one disc. | in one disc. | |||
*/ | */ | |||
int is_started; | int is_started; | |||
void *thread_handle; /* actually a pointer to a thread_t */ | void *thread_handle; /* actually a pointer to a thread_t */ | |||
int thread_pid; | int thread_pid; | |||
int thread_is_valid; | int thread_is_valid; | |||
/* The shoveller aborts if this is 1. Resource leaks are possible. */ | ||||
volatile int do_abort; | ||||
/* the burn_source for which this fifo is acting as proxy */ | /* the burn_source for which this fifo is acting as proxy */ | |||
struct burn_source *inp; | struct burn_source *inp; | |||
int inp_read_size; | int inp_read_size; | |||
/* <<< up to now it was only a pipe. This is on its way out. */ | /* <<< up to now it was only a pipe. This is on its way out. */ | |||
int outlet[2]; | int outlet[2]; | |||
/* The ring buffer mechanism */ | /* The ring buffer mechanism */ | |||
int chunksize; | int chunksize; | |||
int chunks; | int chunks; | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 6 lines changed or added |