f0eef142c984e55b1164ae5b7d1888c1ff4130ea
[maevies] / src / watc_provider.h
1 /*
2  * watc_provider.h
3  *
4  * This file is part of maevies
5  * Copyright (C) 2009 Simón Pena <spenap@gmail.com>
6  *
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.
11  *
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.
16  *
17  */
18
19 #ifndef WATC_PROVIDER_H_
20 #define WATC_PROVIDER_H_
21
22 #include <stdio.h>
23 #include <rest-0.6/rest/rest-proxy.h>
24 #include <unistd.h>
25
26 #define WATC_SERVICE_URL "http://whatsafterthecredits.com/api.php"
27 typedef struct _WATCInfo WATCInfo;
28
29 struct _WATCInfo {
30         gchar *movie_name;
31         gboolean has_stingers;
32 };
33
34 GSList *watc_has_stingers(const gchar *name);
35
36 void watcinfo_unref(WATCInfo *info);
37
38 void watcinfo_list_unref(GSList *list);
39
40 void watcinfo_print(WATCInfo *info);
41
42 #endif /* WATC_PROVIDER_H_ */