parse_query_string.c File Reference

Functions for query string parsing. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "parse_query_string.h"

Include dependency graph for parse_query_string.c:

Go to the source code of this file.

Functions

qs_missing_block_tmissing_block_exist (unsigned int sbn, qs_missing_block_t *block_list)
void insert_missing_block (qs_missing_block_t *block, query_str_t *qs)
void insert_missing_symbol (qs_missing_symbol_t *symbol, qs_missing_block_t *block)
query_str_tparse_query_string (char *query_str)
void free_query_str (query_str_t *qs)


Detailed Description

Functions for query string parsing.

Author
peltotal
Date
2007/02/27 12:50:48
Revision
1.9

MAD-FLUTE-REPAIR-SERVER: Implementation of repair server for FLUTE protocol. Copyright (c) 2005-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

Definition in file parse_query_string.c.


Function Documentation

void free_query_str ( query_str_t qs  ) 

This function frees query_string structure.

Parameters:
qs query_string structure to be freed

Definition at line 328 of file parse_query_string.c.

References query_str::block_list, qs_missing_block::es_list, query_str::fileURI, free_uri(), qs_missing_symbol::next, and qs_missing_block::next.

Referenced by main(), and parse_query_string().

Here is the call graph for this function:

Here is the caller graph for this function:

void insert_missing_block ( qs_missing_block_t block,
query_str_t qs 
)

This is a private function which adds missing block to the list.

Parameters:
block missing block
qs query string structure, which contains also missing block list

Definition at line 70 of file parse_query_string.c.

References query_str::block_list, and qs_missing_block::next.

Referenced by parse_query_string().

Here is the caller graph for this function:

void insert_missing_symbol ( qs_missing_symbol_t symbol,
qs_missing_block_t block 
)

This is a private function which adds missing block to the list.

Parameters:
symbol missing symbol
block missing block

Definition at line 99 of file parse_query_string.c.

References qs_missing_block::es_list, and qs_missing_symbol::next.

Referenced by parse_query_string().

Here is the caller graph for this function:

qs_missing_block_t* missing_block_exist ( unsigned int  sbn,
qs_missing_block_t block_list 
)

This is a private function which checks if missing block already exists in the list.

Parameters:
sbn source block number
block_list list of missing blocks
Returns:
missing_block structure if exists, NULL if not

Definition at line 40 of file parse_query_string.c.

References qs_missing_block::next, and qs_missing_block::sbn.

Referenced by parse_query_string().

Here is the caller graph for this function:

query_str_t* parse_query_string ( char *  query_str  ) 

This function parses query string.

Parameters:
query_str query string to be parsed
Returns:
query_string structure, NULL in error cases

Definition at line 120 of file parse_query_string.c.

References query_str::block_list, qs_missing_block::es_list, qs_missing_symbol::esi, query_str::fileURI, free_query_str(), insert_missing_block(), insert_missing_symbol(), missing_block_exist(), qs_missing_block::next, qs_missing_symbol::next, parse_uri(), and qs_missing_block::sbn.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:


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