Logo Search packages:      
Sourcecode: gamin version File versions  Download package

gam_tree.h

#ifndef __MD_TREE_H__
#define __MD_TREE_H__

#include <glib.h>
#include "gam_node.h"

G_BEGIN_DECLS

typedef struct _GamTree GamTree;

GamTree        *gam_tree_new                   (void);

void           gam_tree_free                  (GamTree *tree);

gboolean       gam_tree_add                   (GamTree *tree,
                                    GamNode *parent,
                                    GamNode *child);

gboolean       gam_tree_remove                (GamTree *tree,
                                    GamNode *node);

GamNode        *gam_tree_add_at_path           (GamTree        *tree,
                                    const char    *path,
                                    gboolean       is_dir);

GamNode        *gam_tree_get_at_path           (GamTree        *tree,
                                    const char    *path);

GList         *gam_tree_find_subscriptions    (GamTree        *tree,
                                    GamListener    *listener);

GList         *gam_tree_get_children          (GamTree            *tree,
                                    GamNode            *dir);

gboolean       gam_tree_has_children          (GamTree            *tree,
                                    GamNode            *node);

guint          gam_tree_get_size              (GamTree *tree);

#if 0
/* for debug only */
void           gam_tree_dump                  (GamTree *tree, GamNode *node);
#endif

G_END_DECLS

#endif /* __MD_TREE_H__ */

Generated by  Doxygen 1.6.0   Back to index