fdt.h File Reference

FDT parsing. More...

#include "flute_defines.h"
#include "../alclib/defines.h"
#include "../alclib/utils.h"

Include dependency graph for fdt.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  file
struct  fdt

Typedefs

typedef file file_t
typedef fdt fdt_t

Functions

void initialize_fdt_parser (void)
void release_fdt_parser (void)
fdt_tdecode_fdt_payload (char *fdt_payload)
void FreeFDT (fdt_t *fdt)
int update_fdt (fdt_t *fdt_db, fdt_t *instance)
file_tfind_file_with_toi (fdt_t *fdt, unsigned long long toi)
void PrintFDT (fdt_t *fdt, int s_id)
void free_file (file_t *file)


Detailed Description

FDT parsing.

Author
peltotal
Date
2007/02/28 08:58:01
Revision
1.26

MAD-FLUTELIB: Implementation of FLUTE protocol. Copyright (c) 2003-2007 TUT - Tampere University of Technology main authors/contacts: jani.peltotalo@tut.fi and sami.peltotalo@tut.fi

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

In addition, as a special exception, TUT - Tampere University of Technology gives permission to link the code of this program with the OpenSSL library (or with modified versions of OpenSSL that use the same license as OpenSSL), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than OpenSSL. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.

Definition in file fdt.h.


Typedef Documentation

typedef struct fdt fdt_t

typedef struct file file_t


Function Documentation

fdt_t* decode_fdt_payload ( char *  fdt_payload  ) 

This function decodes FDT XML document to the fdt structure using Expat XML library.

Parameters:
fdt_payload pointer to buffer containing FDT XML document
Returns:
pointer to the fdt structure, NULL in error cases

Definition at line 592 of file fdt.c.

References fdt::complete, fdt::encoding, fdt::es_len, fdt::expires, FALSE, fdt, fdt::fec_enc_id, fdt::fec_inst_id, file, fdt::file_list, fdt::finite_field, GF_BITS, is_first_toi, lock_fdt(), fdt::max_nb_of_es, fdt::max_sb_len, fdt::nb_of_es_per_group, fdt::nb_of_files, prev, startElement_FDT(), TRUE, fdt::type, and unlock_fdt().

Referenced by fdt_thread(), main(), remove_gz_files(), repair_sender_in_fdt_based_mode(), and sender_in_fdt_based_mode().

Here is the call graph for this function:

Here is the caller graph for this function:

file_t* find_file_with_toi ( fdt_t fdt,
unsigned long long  toi 
)

This function returns FDT information structure for wanted toi.

Parameters:
fdt pointer to FDT database
toi transport object identifier
Returns:
FDT information structure for wanted toi, NULL if FDT information does not exists

Definition at line 766 of file fdt.c.

References fdt, file, fdt::file_list, file::next, and file::toi.

Referenced by copy_file_name(), and copy_md5().

Here is the caller graph for this function:

void free_file ( file_t file  ) 

This function frees file structure.

Parameters:
file pointer to file structure

Definition at line 810 of file fdt.c.

References file::encoding, file, file::location, lock_fdt(), file::md5, file::type, and unlock_fdt().

Referenced by receiver_in_ui_mode().

Here is the call graph for this function:

Here is the caller graph for this function:

void FreeFDT ( fdt_t fdt  ) 

This function frees FDT structure.

Parameters:
fdt pointer to the FDT structure

Definition at line 648 of file fdt.c.

References fdt::encoding, file::encoding, fdt, file, fdt::file_list, file::location, lock_fdt(), file::md5, file::next, fdt::type, file::type, and unlock_fdt().

Referenced by fdt_thread(), flute_receiver_report(), flute_sender(), main(), and repair_sender_in_fdt_based_mode().

Here is the call graph for this function:

Here is the caller graph for this function:

void initialize_fdt_parser ( void   ) 

This function initializes FDT parser.

Definition at line 578 of file fdt.c.

References global_variables_semaphore.

Referenced by start_up_flute().

Here is the caller graph for this function:

void PrintFDT ( fdt_t fdt,
int  s_id 
)

This function prints FDT information.

Parameters:
fdt pointer to FDT structure
s_id session identifier

Definition at line 780 of file fdt.c.

References file::encoding, fdt, file, fdt::file_list, file::location, lock_fdt(), file::next, file::toi, and unlock_fdt().

Referenced by fdt_thread().

Here is the call graph for this function:

Here is the caller graph for this function:

void release_fdt_parser ( void   ) 

This function releases FDT parser.

Definition at line 585 of file fdt.c.

References global_variables_semaphore.

Referenced by shut_down_flute(), and shut_down_flute2().

Here is the caller graph for this function:

int update_fdt ( fdt_t fdt_db,
fdt_t instance 
)

This function updates FDT database.

Parameters:
fdt_db pointer to FDT database
instance pointer to received FDT Instance
Returns:
1 if existing file description in the FDT database is complemented or 2 when new file description entity is added in the FDT database, 0 if FDT database is not updated, -1 in error cases

Definition at line 693 of file fdt.c.

References copy_file_info(), file::fec_enc_id, file::fec_inst_id, fdt::file_list, lock_fdt(), file::next, file::prev, file::toi, and unlock_fdt().

Here is the call graph for this function:


Generated on Fri Mar 9 20:08:56 2007 for MAD-FCL by  doxygen 1.5.0