4 * This file is part of maevies
5 * Copyright (C) 2009 Simón Pena <spenap@gmail.com>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 3 of the
10 * License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
24 #include <rest-0.6/rest/rest-proxy.h>
25 #include <rest-0.6/rest/rest-proxy-call.h>
26 #include <rest-0.6/rest/rest-xml-parser.h>
28 #define GET_MESSAGE(x) ( (x) ? x : " - " )
29 #define TMDB_API_KEY "249e1a42df9bee09fac5e92d3a51396b"
30 #define TMDB_SERVICE_URL "http://api.themoviedb.org/2.1"
31 #define TMDB_LANGUAGE "en"
32 #define TMDB_FORMAT "xml"
33 #define TMDB_SEARCH_METHOD "Movie.search"
35 typedef struct _TMDBMovie TMDBMovie;
41 gchar *alternative_name;
53 TMDBMovie *tmdb_get_info(const gchar *name);
55 void tmdb_movie_unref(TMDBMovie *movie);
57 void tmdb_movie_print(const TMDBMovie *movie);
59 #endif /* TMDB_MOVIE_H_ */