1 /* 2 * Copyright (C) 2006 Andrej Kacian <andrej@kacian.sk> 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License as 6 * published by the Free Software Foundation; either version 2 of the 7 * License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public 15 * License along with this program; if not, write to the 16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 * Boston, MA 02111-1307, USA. 18 */ 19 20 #ifndef __FEEDITEMENCLOSURE_H 21 #define __FEEDITEMENCLOSURE_H 22 23 struct _FeedItemEnclosure { 24 gchar *url; 25 gchar *type; 26 gulong size; 27 }; 28 29 typedef struct _FeedItemEnclosure FeedItemEnclosure; 30 31 FeedItemEnclosure *feed_item_enclosure_new(gchar *url, gchar *type, gulong size); 32 void feed_item_enclosure_free(FeedItemEnclosure *enclosure); 33 34 gchar *feed_item_enclosure_get_url(FeedItemEnclosure *enclosure); 35 void feed_item_enclosure_set_url(FeedItemEnclosure *enclosure, gchar *url); 36 37 gchar *feed_item_enclosure_get_type(FeedItemEnclosure *enclosure); 38 void feed_item_enclosure_set_type(FeedItemEnclosure *enclosure, gchar *type); 39 40 gulong feed_item_enclosure_get_size(FeedItemEnclosure *enclosure); 41 void feed_item_enclosure_set_size(FeedItemEnclosure *enclosure, gulong size); 42 43 FeedItemEnclosure *feed_item_enclosure_copy(FeedItemEnclosure *enclosure); 44 45 #endif /* __FEEDITEMENCLOSURE_H */ 46