Fix rstructs_used handling in guestfish generated code.
authorRichard Jones <rjones@redhat.com>
Sat, 31 Oct 2009 13:38:14 +0000 (13:38 +0000)
committerRichard Jones <rjones@redhat.com>
Mon, 2 Nov 2009 16:02:06 +0000 (16:02 +0000)
commit752aec78b012dbeb8997658bf574dfba690bcfed
tree240e49c2468bed300ea76662eaba16e2e649357b
parent32ab3c183836ab434ab739bea8238593d70db2ac
Fix rstructs_used handling in guestfish generated code.

rstructs_used wasn't correctly generating code for guestfish
because guestfish doesn't make all functions visible.  Since the
calculation of rstructs_used was over all functions (including
ones not available in guestfish) it could have generated
unnecessary functions.

In fact this error didn't affect us before - but I discovered
it when I added some extra struct-returning functions (future
commit).
src/generator.ml