baf2c9a366019adbe433aa702ed04223b87baf65
[maevies] / src / maevies_movieschedule.c
1 /*
2  * maevies_movieschedule.c
3  *
4  * This file is part of maevies
5  * Copyright (C) 2009 Gervasio Varela <gervarela@picandocodigo.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_movieschedule.h"
20
21
22 MaeviesMovieSchedule *maevies_movieschedule_new(MaeviesMovieSchedule* theater) {
23
24         MaeviesMovieSchedule *ms = g_new0(MaeviesTheater,1);
25
26         ms->theater = theater;
27
28         return ms;
29 }
30
31
32 MaeviesMovieSchedule *maevies_movieschedule_new(MaeviesMovieSchedule* theater, GSList* timeList) {
33
34         MaeviesMovieSchedule *ms = maevies_movieschedule_new(theater);
35
36         ms->timeList = timeList;
37
38         return ms;
39 }
40