/home/gigerk/eth/sa2/xpsh-adaptors-0.0.1/src/mp3/mp3.c File Reference

#include "mp3.h"

Functions

char ** implemented_mime_types ()
 returns an array of MIME-types that this adaptor can process
int n_implemented_mime_types ()
 the number of MIME-types that the funtion implemented_mime_types() returns
char * get_ns_prefix ()
 returns the prefix of a namespace used in this adaptor
char * get_ns_uri ()
 returns the URI of a namespace used in this adaptor
void expand_metadata (node_xpsh *root_metadata_node, const char *filename, const char *mime_type)
 expands the metadata-subtree
void expand_content (node_xpsh *root_content_node, const char *filename, const char *mime_type)
 expands the content-subtree
node_xpsh * newNode (node_xpsh *parent, node_type t, char *name, const char *value, node_xpsh *prev)
 allocates memory for a new node and sets initial values
mp3header getHeaderInfo (const char *filename)
 reads the mp3-header and extracts the encoding-information

Detailed Description

Author:
Kaspar Giger
Date:
04-2006

Function Documentation

void expand_content node_xpsh *  root_content_node,
const char *  filename,
const char *  mime_type
 

expands the content-subtree

Parameters:
root_content_node the root node (existing!) of the content subtree
filename the name of the file that should be expanded
mime_type the MIME type that was detected for the file

void expand_metadata node_xpsh *  root_metadata_node,
const char *  filename,
const char *  mime_type
 

expands the metadata-subtree

Parameters:
root_metadata_node the root node (existing!) of the metadata subtree
filename the name of the file that should be expanded
mime_type the MIME type that was detected for the file

char* get_ns_prefix  ) 
 

returns the prefix of a namespace used in this adaptor

Returns:
the namespace prefix

char* get_ns_uri  ) 
 

returns the URI of a namespace used in this adaptor

Returns:
the namespace URI

struct mp3header getHeaderInfo const char *  filename  ) 
 

reads the mp3-header and extracts the encoding-information

Parameters:
filename the name of the mp3-file
Returns:
an mp3header structure containing all information

char** implemented_mime_types  ) 
 

returns an array of MIME-types that this adaptor can process

Returns:
a string array of MIME-types

int n_implemented_mime_types  ) 
 

the number of MIME-types that the funtion implemented_mime_types() returns

Returns:
the number of different MIME-types that this adaptor can process

node_xpsh* newNode node_xpsh *  parent,
node_type  t,
char *  name,
const char *  value,
node_xpsh *  prev
 

allocates memory for a new node and sets initial values

Parameters:
parent the parent node
t the node type
name the name of the node
value the value of the node
prev the previous Sibling (if there is one)
Returns:
the new node


Generated on Mon Apr 17 18:39:36 2006 for xpsh-adaptors by  doxygen 1.4.6