[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA: s_page_save_all and TOPLEVEL and NETLIST



Hi Ales, or other gEDA guru --

I am working on incorporating pin attributes into gattrib, the
attribute editor.  I use a lot of libgeda functions to do my work.
One important function for which I use libgeda is in writing out an
updated TOPLEVEL data structure after I have modified the attributes.

For component attributes, this is easy.  I just update the TOPLEVEL
*pr_current data structure, and then call s_page_save_all to save out
the updated pr_current.  s_page_save_all does all my work.

For pin attributes I have a question:  Information about pins is kept
in at least two structures:  TOPLEVEL and NETLIST.  Do I need to
update both TOPLEVEL *and* NETLIST in order to write out pins
properly using s_pave_save_all?  Or does s_page_save_all ignore
NETLIST and only deal with what it finds in TOPLEVEL?  

It looks like NETLIST is only used in gnetlist, so I think I am OK by
ignoring it, but I want to make sure.   

Thanks,

Stuart