4 * This file is part of maevies
5 * Copyright (C) 2009 Simon 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.
22 #include "watc_provider.h"
24 static void show_watc_info(gpointer info, gpointer data);
26 gint main(gint argc, gchar **argv) {
28 GSList *result_list = NULL;
29 const gchar *movie_name = NULL;
32 movie_name = "Zombieland";
40 result_list = watc_has_stingers(movie_name);
42 g_slist_foreach(result_list, (GFunc) show_watc_info, NULL);
44 watcinfo_list_unref(result_list);
49 static void show_watc_info(gpointer info, gpointer data) {
51 WATCInfo *movie_info = (info);
53 watcinfo_print(movie_info);