Replace use of deprecated macro G_TYPE_INSTANCE_GET_PRIVATE
[geda-gaf.git] / gnetlist-legacy / include / prototype.h
blobf853db0a17eb0c93524bcba90caf9cb2ca6ff075
1 /* g_netlist.c */
2 void g_set_project_current(TOPLEVEL *pr_current);
3 SCM g_scm_c_get_uref (OBJECT *object);
4 SCM g_get_verbosity ();
5 SCM g_get_backend_arguments ();
6 SCM g_get_input_files();
7 SCM g_get_packages(SCM level);
8 SCM g_get_non_unique_packages(SCM level);
9 SCM g_get_pins(SCM uref);
10 SCM g_get_all_nets(SCM scm_level);
11 SCM g_get_all_unique_nets(SCM scm_level);
12 SCM g_get_all_connections(SCM scm_netname);
13 SCM g_get_nets(SCM scm_uref, SCM scm_pin);
14 SCM g_get_pins_nets(SCM scm_uref);
15 SCM g_get_all_package_attributes(SCM scm_uref, SCM scm_wanted_attrib);
16 SCM g_get_attribute_by_pinseq(SCM scm_uref, SCM scm_pinseq, SCM scm_wanted_attrib);
17 SCM g_get_attribute_by_pinnumber(SCM scm_uref, SCM scm_pin, SCM scm_wanted_attrib);
18 SCM g_get_toplevel_attribute(SCM scm_wanted_attrib);
19 SCM g_graphical_objs_in_net_with_attrib_get_attrib(SCM scm_netname, SCM scm_has_attribute, SCM scm_wanted_attribute);
20 /* g_rc.c */
21 SCM g_rc_gnetlist_version(SCM version);
22 SCM g_rc_net_naming_priority(SCM mode);
23 SCM g_rc_hierarchy_traversal(SCM mode);
24 SCM g_rc_hierarchy_uref_mangle(SCM mode);
25 SCM g_rc_hierarchy_netname_mangle(SCM mode);
26 SCM g_rc_hierarchy_netattrib_mangle(SCM mode);
27 SCM g_rc_hierarchy_netname_separator(SCM name);
28 SCM g_rc_hierarchy_netattrib_separator(SCM name);
29 SCM g_rc_hierarchy_uref_separator(SCM name);
30 SCM g_rc_hierarchy_netattrib_order(SCM mode);
31 SCM g_rc_hierarchy_netname_order(SCM mode);
32 SCM g_rc_hierarchy_uref_order(SCM mode);
33 SCM g_rc_unnamed_netname(SCM name);
34 SCM g_rc_unnamed_busname(SCM name);
35 /* g_register.c */
36 void g_register_funcs(void);
37 SCM g_quit(void);
38 /* globals.c */
39 /* gnetlist.c */
40 void gnetlist_quit(void);
41 void main_prog(void *closure, int argc, char *argv[]);
42 int main(int argc, char *argv[]);
43 /* i_vars.c */
44 void i_vars_set(TOPLEVEL *pr_current);
45 /* parsecmd.c */
46 void usage(char *cmd);
47 GSList *create_input_files_list(int argi, int argc, char *argv[]);
48 int parse_commandline(int argc, char *argv[]);
49 /* s_cpinlist.c */
50 CPINLIST *s_cpinlist_return_tail(CPINLIST *head);
51 CPINLIST *s_cpinlist_return_head(CPINLIST *tail);
52 CPINLIST *s_cpinlist_add(CPINLIST *ptr);
53 void s_cpinlist_print(CPINLIST *ptr);
54 CPINLIST *s_cpinlist_search_pin(CPINLIST *ptr, char *pin_number);
55 /* s_hierarchy.c */
56 void s_hierarchy_traverse(TOPLEVEL *pr_current, OBJECT *o_current, NETLIST *netlist);
57 void s_hierarchy_post_process(TOPLEVEL *pr_current, NETLIST *head);
58 int s_hierarchy_setup_rename(TOPLEVEL *pr_current, NETLIST *head, char *uref, char *label, char *new_name);
59 void s_hierarchy_remove_urefconn(NETLIST *head, char *uref_disable);
60 void s_hierarchy_remove_compsite_all(NETLIST *head);
61 char *s_hierarchy_create_uref(TOPLEVEL *pr_current, char *basename, char *hierarchy_tag);
62 char *s_hierarchy_create_netname(TOPLEVEL *pr_current, char *basename, char *hierarchy_tag);
63 char *s_hierarchy_create_netattrib(TOPLEVEL *pr_current, char *basename, char *hierarchy_tag);
64 void s_hierarchy_remove_uref_mangling(TOPLEVEL *pr_current, NETLIST *head);
65 char *s_hierarchy_return_baseuref(TOPLEVEL *pr_current, char *uref);
66 int s_hierarchy_graphical_search(OBJECT* o_current, int count);
67 /* s_misc.c */
68 void verbose_print(char *string);
69 void verbose_done(void);
70 void verbose_reset_index(void);
71 /* s_net.c */
72 NET *s_net_add(NET *ptr);
73 void s_net_print(NET *ptr);
74 char *s_net_return_connected_string(TOPLEVEL *pr_current, OBJECT *object, char *hierarchy_tag);
75 int s_net_find(NET *net_head, NET *node);
76 char *s_net_name_search(TOPLEVEL *pr_current, NET *net_head);
77 char *s_net_name(TOPLEVEL *pr_current, NETLIST *netlist_head, NET *net_head, char *hierarchy_tag, int type);
78 /* s_netattrib.c */
79 gchar *s_netattrib_pinnum_get_connected_string (const gchar *pinnum) G_GNUC_WARN_UNUSED_RESULT;
80 const gchar *s_netattrib_connected_string_get_pinnum (const gchar *str);
81 void s_netattrib_check_connected_string (const gchar *str);
82 char *s_netattrib_extract_netname(char *value);
83 void s_netattrib_create_pins(TOPLEVEL *pr_current, OBJECT *o_current, NETLIST *netlist, char *value, char *hierarchy_tag);
84 void s_netattrib_handle(TOPLEVEL *pr_current, OBJECT *o_current, NETLIST *netlist, char *hierarchy_tag);
85 char *s_netattrib_net_search(OBJECT *o_current, const gchar *wanted_pin);
86 char *s_netattrib_return_netname(TOPLEVEL *pr_current, OBJECT *o_current, char *pinnumber, char *hierarchy_tag);
87 /* s_netlist.c */
88 NETLIST *s_netlist_return_tail(NETLIST *head);
89 NETLIST *s_netlist_return_head(NETLIST *tail);
90 NETLIST *s_netlist_add(NETLIST *ptr);
91 void s_netlist_print(NETLIST *ptr);
92 void s_netlist_post_process(TOPLEVEL *pr_current, NETLIST *head);
93 void s_netlist_name_named_nets (TOPLEVEL *pr_current,
94 NETLIST *named_netlist,
95 NETLIST *unnamed_netlist);
96 char *s_netlist_netname_of_netid (TOPLEVEL *pr_current,
97 NETLIST *netlist_head,
98 int net_id);
99 /* s_rename.c */
100 void s_rename_init(void);
101 void s_rename_destroy_all(void);
102 void s_rename_next_set(void);
103 void s_rename_print(void);
104 int s_rename_search(char *src, char *dest, int quiet_flag);
105 void s_rename_add(char *src, char *dest);
106 void s_rename_all_lowlevel(NETLIST *netlist_head, char *src, char *dest);
107 void s_rename_all(TOPLEVEL *pr_current, NETLIST *netlist_head);
108 SCM g_get_renamed_nets(SCM scm_level);
109 /* s_traverse.c */
110 void s_traverse_init(void);
111 void s_traverse_start(TOPLEVEL *pr_current);
112 void s_traverse_sheet(TOPLEVEL *pr_current, const GList *obj_list, char *hierarchy_tag);
113 CPINLIST *s_traverse_component(TOPLEVEL *pr_current, OBJECT *component, char *hierarchy_tag);
114 NET *s_traverse_net(TOPLEVEL *pr_current, NET *nets, int starting, OBJECT *object, char *hierarchy_tag, int type);
115 /* vams_misc.c */
116 SCM vams_get_attribs_list(OBJECT *object);
117 SCM vams_get_package_attributes(SCM scm_uref);