1 /**
2  * @file folder.h  sub folders for hierarchic node soures
3  *
4  * Copyright (C) 2006-2008 Lars Windolf <lars.windolf@gmx.de>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20 
21 #ifndef _FOLDER_H
22 #define _FOLDER_H
23 
24 #include "node_type.h"
25 
26 #define IS_FOLDER(node) (node->type == folder_get_node_type ())
27 
28 /*
29    Liferea supports different node sources in the feed list tree.
30    Some of those can be organized by sub folders implemented by
31    this node type.
32 
33    The root node of the Liferea feed list tree is the implemented
34    as a special folder and therefore shares almost all of the
35    folder functionality. Being a read/write enabled folder it
36    allows to add other node sources as childs.
37  */
38 
39 /**
40  * Returns the implementation of the folder node type.
41  */
42 nodeTypePtr folder_get_node_type(void);
43 
44 /**
45  * Returns the implementation of the root node type.
46  */
47 nodeTypePtr root_get_node_type(void);
48 
49 #endif
50