missing NULL terminator in set_config_x
[geda-gaf.git] / gattrib / include / prototype.h
blobc3765cc507c16fb254992da5289d1582ba934117
1 /*! \file
2 * This file holds all function prototypes for the entire gattrib
3 * project. It should be #include'ed after struct.h.
4 */
6 /* ---------------- gattrib.c ---------------- */
7 gboolean gattrib_really_quit(void);
8 gint gattrib_quit(gint return_code);
10 /* -------------- parsecmd.c ----------------- */
11 void usage(char *cmd);
12 /* output usage string */
13 int parse_commandline(int argc, char *argv[]);
14 /* run through cmd line options and set mode switches. */
16 /* -------------- listsort.c ----------------- */
17 int cmp(STRING_LIST *a, STRING_LIST *b);
18 STRING_LIST *listsort(STRING_LIST *list, int is_circular, int is_double);
20 /* ------------- f_export.c ------------- */
21 void f_export_components(gchar *filename);
24 /* ------------- g_register.c ------------- */
25 void g_register_funcs(void);
26 SCM g_quit(void);
29 /* ------------- g_rc.c ------------- */
30 SCM g_rc_gattrib_version(SCM version);
32 /* ------------- s_attrib.c ------------- */
33 int s_attrib_name_in_list(STRING_LIST *name_value_list, char *name);
34 char *s_attrib_get_refdes(OBJECT *object);
36 /* ------------- s_sheet_data.c ------------- */
37 SHEET_DATA *s_sheet_data_new();
39 void s_sheet_data_add_master_comp_list_items(const GList *obj_list);
40 void s_sheet_data_add_master_comp_attrib_list_items(const GList *obj_list);
41 void s_sheet_data_add_master_net_list_items(const GList *obj_list);
42 void s_sheet_data_add_master_net_attrib_list_items(const GList *obj_list);
43 void s_sheet_data_add_master_pin_list_items(const GList *obj_list);
44 void s_sheet_data_add_master_pin_attrib_list_items(const GList *obj_list);
46 void s_sheet_data_gtksheet_to_sheetdata();
49 /* ------------- s_string_list.c ------------- */
50 STRING_LIST *s_string_list_new();
51 STRING_LIST *s_string_list_duplicate_string_list(STRING_LIST *old_string_list);
52 void s_string_list_add_item(STRING_LIST *list, int *count, char *item);
53 void s_string_list_delete_item(STRING_LIST **list, int *count, char *item);
54 int s_string_list_in_list(STRING_LIST *list, char *item);
55 gint s_string_list_find_in_list (STRING_LIST *list, char *item);
56 gchar *s_string_list_get_data_at_index(STRING_LIST *list, gint index);
58 void s_string_list_sort_master_comp_list();
59 void s_string_list_sort_master_comp_attrib_list();
60 void s_string_list_sort_master_net_list();
61 void s_string_list_sort_master_net_attrib_list();
62 void s_string_list_sort_master_pin_list();
63 void s_string_list_sort_master_pin_attrib_list();
66 /* ------------- s_table.c ------------- */
67 TABLE **s_table_new(int rows, int cols);
68 TABLE **s_table_resize(TABLE **table,
69 int rows, int old_cols, int new_cols);
70 void s_table_destroy(TABLE **table, int row_count, int col_count);
71 int s_table_get_index(STRING_LIST *list, char *string);
72 STRING_LIST *s_table_create_attrib_pair(gchar *row_name,
73 TABLE **table,
74 STRING_LIST *row_list,
75 int num_attribs);
77 void s_table_add_toplevel_comp_items_to_comp_table(const GList *obj_list);
78 void s_table_add_toplevel_net_items_to_net_table(const GList *obj_list);
79 void s_table_add_toplevel_pin_items_to_pin_table(const GList *obj_list);
81 void s_table_gtksheet_to_all_tables();
82 void s_table_gtksheet_to_table(GtkSheet *local_gtk_sheet,
83 STRING_LIST *master_row_list, STRING_LIST *master_col_list,
84 TABLE **local_table, int num_rows, int num_cols);
86 /* ------------- s_toplevel.c ------------- */
87 int s_toplevel_read_page(TOPLEVEL *toplevel, char *filename);
88 void s_toplevel_verify_design(TOPLEVEL *toplevel);
89 void s_toplevel_gtksheet_to_toplevel(TOPLEVEL *toplevel);
90 void s_toplevel_add_new_attrib(gchar *new_attrib_name);
91 void s_toplevel_delete_attrib_col();
92 void s_toplevel_sheetdata_to_toplevel(TOPLEVEL *toplevel, PAGE *page);
94 STRING_LIST *s_toplevel_get_component_attribs_in_sheet(char *refdes);
95 void s_toplevel_update_component_attribs_in_toplevel(
96 TOPLEVEL *toplevel,
97 OBJECT *o_current,
98 STRING_LIST *new_comp_attrib_list);
99 STRING_LIST *s_toplevel_get_net_attribs_in_sheet(char *netname);
100 void s_toplevel_update_net_attribs_in_toplevel(OBJECT *o_current,
101 STRING_LIST *new_net_attrib_list);
102 STRING_LIST *s_toplevel_get_pin_attribs_in_sheet(char *refdes, OBJECT *pin);
103 void s_toplevel_update_pin_attribs_in_toplevel(TOPLEVEL *toplevel,
104 char *refdes, OBJECT *pin,
105 STRING_LIST *new_pin_attrib_list);
108 /* ------------- s_object.c ------------- */
109 void s_object_add_comp_attrib_to_object (TOPLEVEL *toplevel,
110 OBJECT *o_current,
111 char *new_attrib_name,
112 char *new_attrib_value,
113 gint visibility,
114 gint show_name_value);
115 void s_object_add_net_attrib_to_object (TOPLEVEL *toplevel,
116 OBJECT *o_current,
117 char *new_attrib_name,
118 char *new_attrib_value);
119 void s_object_add_pin_attrib_to_object (TOPLEVEL *toplevel,
120 OBJECT *o_current,
121 char *new_attrib_name,
122 char *new_attrib_value);
124 void s_object_replace_attrib_in_object (TOPLEVEL *toplevel,
125 OBJECT *o_current,
126 char *new_attrib_name,
127 char *new_attrib_value,
128 gint visibility,
129 gint show_name_value);
130 void s_object_remove_attrib_in_object (TOPLEVEL *toplevel,
131 OBJECT *o_current,
132 char *new_attrib_name);
134 OBJECT *s_object_attrib_add_attrib_in_object (TOPLEVEL *toplevel,
135 char *text_string,
136 gint visibility,
137 gint show_name_value,
138 OBJECT * object);
139 void s_object_delete_text_object_in_object(TOPLEVEL *toplevel, OBJECT *test_object);
140 int s_object_has_sym_file(OBJECT *object);
142 /* ------------- s_rename.c ------------- */
143 void s_rename_init(void);
144 void s_rename_destroy_all(void);
145 void s_rename_next_set(void);
146 void s_rename_print(void);
147 int s_rename_search(char *src, char *dest, int quiet_flag);
148 void s_rename_add(char *src, char *dest);
149 void s_rename_all_lowlevel(NETLIST * netlist_head, char *src, char *dest);
150 void s_rename_all(TOPLEVEL *toplevel, NETLIST *netlist_head);
152 /* ------------- s_misc.c ------------- */
153 void verbose_print(char *string);
154 void verbose_done(void);
155 void verbose_reset_index(void);
156 char *s_misc_remaining_string(char *string, char delimiter, int count);
158 /* ------------- s_visibility.c ------------- */
159 void s_visibility_set_invisible();
160 void s_visibility_set_name_only();
161 void s_visibility_set_value_only();
162 void s_visibility_set_name_and_value();
163 void s_visibility_set_cell(gint cur_page, gint row, gint col,
164 gint visibility, gint show_name_value);
166 /* ------------- i_vars.c ------------- */
167 void i_vars_set(TOPLEVEL *toplevel);
168 void i_window_vars_set(TOPLEVEL *toplevel);
170 /* ------------- x_dialog.c ------------- */
171 void x_dialog_newattrib();
172 void x_dialog_delattrib();
173 void x_dialog_missing_sym();
174 void x_dialog_unsaved_data();
175 void x_dialog_unimplemented_feature();
176 void x_dialog_fatal_error(gchar *string, gint return_code);
177 void x_dialog_about_dialog();
178 void x_dialog_export_file();
180 /* ------------- x_gtksheet.c ------------- */
181 void x_gtksheet_init();
182 void x_gtksheet_add_row_labels(GtkSheet *sheet, int count, STRING_LIST *list_head);
183 void x_gtksheet_add_col_labels(GtkSheet *sheet, int count, STRING_LIST *list_head);
184 void x_gtksheet_add_cell_item(GtkSheet *sheet, gint i, gint j,
185 char *text, gint visibility, gint show_name_value);
186 void x_gtksheet_set_cell_text_color(GtkSheet *sheet, gint row, gint col,
187 gint color_name);
188 int x_gtksheet_get_min_col(GtkSheet *sheet);
189 int x_gtksheet_get_max_col(GtkSheet *sheet);
191 /* ------------- x_fileselect.c ------------- */
192 GSList *x_fileselect_open (void);
193 void x_fileselect_save (void);
194 gboolean x_fileselect_load_files (GSList *filenames);
196 /* ------------- x_window.c ------------- */
197 void x_window_init();
198 void x_window_add_items();