1 /* Copyright (C) 2016-2018 Shengyu Zhang <i@silverrainz.me>
2  *
3  * This file is part of Srain.
4  *
5  * Srain is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 /**
20  * @file sui_notification.c
21  * @brief
22  * @author Shengyu Zhang <i@silverrainz.me>
23  * @version
24  * @date 2018-05-05
25  */
26 
27 #include "sui_notification.h"
28 
29 #include "utils.h"
30 
sui_notification_new(void)31 SuiNotification* sui_notification_new(void){
32     SuiNotification *self;
33 
34     self = g_malloc0(sizeof(SuiNotification));
35 
36     return self;
37 }
38 
sui_notification_free(SuiNotification * self)39 void sui_notification_free(SuiNotification* self){
40     str_assign(&self->id, NULL);
41     str_assign(&self->icon, NULL);
42     str_assign(&self->title, NULL);
43     str_assign(&self->body, NULL);
44     g_free(self);
45 }
46