libgeda: add functions to track net connectivity
commit042612a5cc35bfafbf0f862a6db78ec66cd022a7
authorKrzysztof Kościuszkiewicz <k.kosciuszkiewicz@gmail.com>
Tue, 15 Mar 2011 00:01:10 +0000 (15 01:01 +0100)
committerKrzysztof Kościuszkiewicz <k.kosciuszkiewicz@gmail.com>
Fri, 6 Jan 2012 22:27:39 +0000 (6 23:27 +0100)
tree6b4bd44c3f0816ab65bbfe009d6c7cd17f618849
parentc90c6a2728179785c4da5241e043cdcbcf197915
libgeda: add functions to track net connectivity

o_net_is_fully_connected can be used to check if the net is connected to
at least two separate endpoints - endpoint being a pin, bus or a named
net (through a netname attribute).

o_net_refresh_conn_cache should be used to update cached state after
connectivity change.

For each net segment the number of connected enpoints is cached in new
fields of OBJECT structure: net_num_connected and valid_num_connected.

Affects-bug: lp-707064
libgeda/include/libgeda/prototype.h
libgeda/include/libgeda/struct.h
libgeda/src/o_net_basic.c
libgeda/src/s_basic.c