mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-05 09:51:55 +02:00
993ea811e5
We recognize http, https, ftp, and file.
45 lines
936 B
C
45 lines
936 B
C
/*
|
|
* tree.h - Component hierarchy
|
|
*
|
|
* Copyright 2012 by Werner Almesberger
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef TREE_H
|
|
#define TREE_H
|
|
|
|
#include "libs.h"
|
|
|
|
|
|
struct line {
|
|
char *s;
|
|
int url; /* 1 if URL */
|
|
struct line *next;
|
|
};
|
|
|
|
struct node {
|
|
const char *name;
|
|
const struct entry *e; /* NULL if intermediate node */
|
|
struct line *comment; /* NULL if intermediate node */
|
|
int indent; /* level of indentation (characters) */
|
|
struct node *parent;
|
|
struct node *child;
|
|
struct node *next;
|
|
};
|
|
|
|
|
|
extern struct node *tree;
|
|
|
|
|
|
void read_tree(FILE *file);
|
|
void read_desc(FILE *file);
|
|
void set_libs(const struct lib *lib, struct node *node);
|
|
void dump_tree(void);
|
|
void dump_comp(void);
|
|
|
|
#endif /* !TREE_H */
|