Project: Updated copyright info
[maevies] / src / maevies_movie.c
1 /*
2  * movie.c
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 #include "maevies_movie.h"
20 #include "movie_info_provider.h"
21 #include "extra_scenes_provider.h"
22
23 MaeviesMovie *maevies_movie_new(const gchar *name) {
24
25         MaeviesMovie *movie = g_new0(MaeviesMovie,1);
26
27         movie->title = name;
28
29         return movie;
30 }
31
32 void movie_get_info(MaeviesMovie *movie, GCallback callback) {
33
34         /* Get movie info */
35         get_info(movie);
36
37         /* Get movie stingers */
38         movie->has_stingers = has_stingers(movie->title);
39 }
40