~ubuntu-branches/ubuntu/wily/pianobar/wily-proposed

« back to all changes in this revision

Viewing changes to src/libpiano/xml.h

  • Committer: Bazaar Package Importer
  • Author(s): Luke Faraone
  • Date: 2011-02-08 17:23:25 UTC
  • mfrom: (1.3.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110208172325-0qf3sxpsu37j5ez9
Tags: 2011.01.24-1
* New upstream version. 
* Switch to DEP5 copyright.
* Augment CFLAGS to use the c99 standard.
* Don't install the now-removed AUTHORS file into docs.
* Drop dep on cmake.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (c) 2008-2010
 
3
        Lars-Dominik Braun <lars@6xq.net>
 
4
 
 
5
Permission is hereby granted, free of charge, to any person obtaining a copy
 
6
of this software and associated documentation files (the "Software"), to deal
 
7
in the Software without restriction, including without limitation the rights
 
8
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 
9
copies of the Software, and to permit persons to whom the Software is
 
10
furnished to do so, subject to the following conditions:
 
11
 
 
12
The above copyright notice and this permission notice shall be included in
 
13
all copies or substantial portions of the Software.
 
14
 
 
15
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
16
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
17
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 
18
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
19
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 
20
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 
21
THE SOFTWARE.
 
22
*/
 
23
 
 
24
#ifndef _XML_H
 
25
#define _XML_H
 
26
 
 
27
#include "piano.h"
 
28
 
 
29
PianoReturn_t PianoXmlParseUserinfo (PianoHandle_t *ph, const char *xml);
 
30
PianoReturn_t PianoXmlParseStations (PianoHandle_t *ph, const char *xml);
 
31
PianoReturn_t PianoXmlParsePlaylist (PianoHandle_t *ph, const char *xml,
 
32
                PianoSong_t **);
 
33
PianoReturn_t PianoXmlParseSearch (const char *searchXml,
 
34
                PianoSearchResult_t *searchResult);
 
35
PianoReturn_t PianoXmlParseSimple (const char *xml);
 
36
PianoReturn_t PianoXmlParseCreateStation (PianoHandle_t *ph,
 
37
                const char *xml);
 
38
PianoReturn_t PianoXmlParseAddSeed (PianoHandle_t *ph, const char *xml,
 
39
                PianoStation_t *station);
 
40
PianoReturn_t PianoXmlParseGenreExplorer (PianoHandle_t *ph,
 
41
                const char *xmlContent);
 
42
PianoReturn_t PianoXmlParseTranformStation (const char *searchXml);
 
43
PianoReturn_t PianoXmlParseNarrative (const char *xml, char **retNarrative);
 
44
PianoReturn_t PianoXmlParseSeedSuggestions (char *, PianoSearchResult_t *);
 
45
 
 
46
char *PianoXmlEncodeString (const char *s);
 
47
 
 
48
#endif /* _XML_H */