apd.c File Reference

Associated prosedure description. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <expat.h>
#include "apd.h"

Include dependency graph for apd.c:

Go to the source code of this file.

Functions

static void startElementHandler_APD (void *userData, const char *name, const char **atts)
static void endElementHandler_APD (void *userData, const char *name)
static void characterDataHandler_APD (void *userData, const XML_Char *s, int len)
apd_tdecode_apd_config (char *apd_config)
void FreeAPD (apd_t *apd)

Variables

apd_tapd


Detailed Description

Associated prosedure description.

Author
peltotal
Date
2007/02/28 08:58:00
Revision
1.14

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 apd.c.


Function Documentation

static void characterDataHandler_APD ( void *  userData,
const XML_Char *  s,
int  len 
) [static]

This is a private function which is used in parsing.

Parameters:
userData used to check in what element we are
s pointer to buffer containing character data (s is not 0 terminated)
len character data length

Definition at line 145 of file apd.c.

References apd, serviceURI::next, apd::postFileRepair, serviceURI::prev, postFileRepair::serviceURI_List, and serviceURI::URI.

Referenced by decode_apd_config().

Here is the caller graph for this function:

apd_t* decode_apd_config ( char *  apd_config  ) 

This function decodes APD XML document to apd structure by using Expat XML library.

Parameters:
apd_config pointer to buffer containing APD XML document
Returns:
pointer to apd structure, NULL in error cases

Definition at line 192 of file apd.c.

References apd, characterDataHandler_APD(), endElementHandler_APD(), and startElementHandler_APD().

Referenced by flute_receiver_report().

Here is the call graph for this function:

Here is the caller graph for this function:

static void endElementHandler_APD ( void *  userData,
const char *  name 
) [static]

This is a private function which is used in parsing.

Parameters:
userData must be, not used
name pointer to buffer containing element's name

Definition at line 130 of file apd.c.

Referenced by decode_apd_config().

Here is the caller graph for this function:

void FreeAPD ( apd_t apd  ) 

This function frees apd structure.

Parameters:
apd pointer to apd structure

Definition at line 224 of file apd.c.

References apd, apd::bmFileRepair, serviceURI::next, apd::postFileRepair, and postFileRepair::serviceURI_List.

Referenced by flute_receiver_report().

Here is the caller graph for this function:

static void startElementHandler_APD ( void *  userData,
const char *  name,
const char **  atts 
) [static]

This is a private function which is used in parsing.

Parameters:
userData used to carry element name to characterDataHandler function
name pointer to buffer containing element's name
atts pointer to buffer containing element's attributes

Definition at line 58 of file apd.c.

References apd, apd::bmFileRepair, postFileRepair::offsetTime, apd::postFileRepair, postFileRepair::randomTimePeriod, postFileRepair::serviceURI_List, and bmFileRepair::sessionDescriptionURI.

Referenced by decode_apd_config().

Here is the caller graph for this function:


Variable Documentation

apd_t* apd

Global variable used in parsing

Definition at line 47 of file apd.c.

Referenced by characterDataHandler_APD(), decode_apd_config(), flute_receiver_report(), FreeAPD(), and startElementHandler_APD().


Generated on Fri Mar 9 20:01:55 2007 for MAD-FCL by  doxygen 1.5.0