Skip to content

Commit

Permalink
Added missing files to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
PromyLOPh committed Jun 10, 2008
1 parent 6a33c03 commit 112528c
Show file tree
Hide file tree
Showing 25 changed files with 3,812 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AUTHORS
@@ -0,0 +1,2 @@
Reverse engineering, main code:
Lars-Dominik Braun <PromyLOPh@gmail.com>
6 changes: 6 additions & 0 deletions BUGS
@@ -0,0 +1,6 @@
Bugs
====

A lot, I think. But none of them are found yet...

Report them to: PromyLOPh@gmail.com
19 changes: 19 additions & 0 deletions COPYING
@@ -0,0 +1,19 @@
Copyright (c) 2008 Lars-Dominik Braun

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
15 changes: 15 additions & 0 deletions ChangeLog
@@ -0,0 +1,15 @@
2008-06-09
* replaced calloc & strcpy by strdup in xml.c
* rating implemented
* skip, change station, quit implemented
* now using thread for audio playback

2008-06-07
* updated readme
* documented some more functions
* fixed autotools
* added primitive playback of first song using libao and faad2

2008-06-05
* url creation now uses less buffers
* first public release
25 changes: 25 additions & 0 deletions INSTALL
@@ -0,0 +1,25 @@
Install
=======

Do not install this application yet!

Dependencies
------------

Versions may vary :) Just get the newest one:

libao http://www.xiph.org/ao/ (pianobar)
libcurl http://curl.haxx.se/ (libpiano, pianobar)
libfaad2 http://www.audiocoding.com/downloads.html (pianobar)
libxml2 http://xmlsoft.org/ (libpiano)

Build
-----

./autogen.sh
./configure
make

Just run the client from this source directory

./src/pianobar
3 changes: 3 additions & 0 deletions Makefile.am
@@ -0,0 +1,3 @@
SUBDIRS = libpiano src

EXTRA_DIST = autogen.sh RoadMap BUGS
4 changes: 4 additions & 0 deletions NEWS
@@ -0,0 +1,4 @@
News
====

Nothing happened yet...
18 changes: 18 additions & 0 deletions RoadMap
@@ -0,0 +1,18 @@
Roadmap
=======

Ordered by importance:

Must-have:
----------

* implement all pandora commands like ban/love/...
* buffer songs (works without too, but would be a huge improvement)
* fixes, fixes, fixes (look for memory leaks or implement error handling, e.g.)

Wishes:
-------

* replaygain
* cache for authtoken (how long are they valid?) and other userdata
* last.fm scrobbling
7 changes: 7 additions & 0 deletions autogen.sh
@@ -0,0 +1,7 @@
#!/bin/sh

libtoolize --force \
&& aclocal \
&& automake --add-missing \
&& autoconf \
&& ./configure
37 changes: 37 additions & 0 deletions configure.in
@@ -0,0 +1,37 @@
AC_INIT([pianobar], [20080609], [PromyLOPh@gmail.com])
AC_CONFIG_SRCDIR([src/main.c])
AM_INIT_AUTOMAKE([-Wall])

AC_PROG_CC
AM_PROG_CC_C_O
AM_SANITY_CHECK
AM_PROG_LIBTOOL

PKG_PROG_PKG_CONFIG

PKG_CHECK_MODULES(LIBCURL, libcurl >= 7.18.0)
AC_SUBST(LIBCURL_CFLAGS)
AC_SUBST(LIBCURL_LIBS)

PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= 2.6.31)
AC_SUBST(LIBXML_CFLAGS)
AC_SUBST(LIBXML_LIBS)

PKG_CHECK_MODULES(LIBAO, ao >= 0.8.8)
AC_SUBST(LIBAO_CFLAGS)
AC_SUBST(LIBAO_LIBS)

AC_CHECK_LIB([faad], [NeAACDecOpen], [LIBFAAD_LIBS=-lfaad], AC_MSG_ERROR([libfaad2 is required. See INSTALL]))
AC_SUBST(LIBFAAD_LIBS)

# FIXME: check for pthread

AC_CHECK_HEADERS([stdlib.h string.h])

AC_CHECK_FUNCS([memset])

AC_TYPE_SIZE_T

AC_CONFIG_FILES(Makefile src/Makefile libpiano/Makefile)

AC_OUTPUT
6 changes: 6 additions & 0 deletions libpiano/Makefile.am
@@ -0,0 +1,6 @@
lib_LTLIBRARIES = libpiano.la

libpiano_la_SOURCES = crypt.c http.c main.c xml.c const.h crypt.h crypt_key_input.h crypt_key_output.h http.h main.h xml.h
include_HEADERS = piano.h
libpiano_la_CPPFLAGS = ${LIBCURL_CFLAGS} ${LIBXML_CFLAGS}
libpiano_la_LIBADD = ${LIBCURL_LIBS} ${LIBXML_LIBS}
35 changes: 35 additions & 0 deletions libpiano/const.h
@@ -0,0 +1,35 @@
/*
Copyright (c) 2008 Lars-Dominik Braun
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

#ifndef _CONST_H
#define _CONST_H

/* constants */


#define PIANO_USERAGENT "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9pre) Gecko/2008051115 Firefox/3.0pre"
#define PIANO_RPC_URL "http://www.pandora.com/radio/xmlrpc/v19?"
#define PIANO_SECURE_RPC_URL "https://www.pandora.com/radio/xmlrpc/v19?"
#define PIANO_URL_BUFFER_SIZE 1024
#define PIANO_HTTP_BUFFER_SIZE 100000

#endif /* _CONST_H */

0 comments on commit 112528c

Please sign in to comment.