state api: Make *_has_new_state() usable without a nebstruct type
commitc8a85e092f12fe10b37169bcdd9d0839600d9f2e
authorAndreas Ericsson <ae@op5.se>
Tue, 6 Apr 2010 16:49:16 +0000 (6 18:49 +0200)
committerAndreas Ericsson <ae@op5.se>
Tue, 6 Apr 2010 16:49:16 +0000 (6 18:49 +0200)
treef033f038de2dafb67931124cb9a8e2e300759cf2
parent8ee205ca7e74b60ee73bea1afcd756b4c5f0d248
state api: Make *_has_new_state() usable without a nebstruct type

This patch make the two functions accept the identifier(s) for their
respective type along with the state and state_type variables, making
it easier to use them from random places (ie, showlog).

This also speeds up execution very slightly. Possibly because it no
longer has to do quite so many memory offset lookups when checking the
state of objects.

Naturally, we update the callers accordingly.

Signed-off-by: Andreas Ericsson <ae@op5.se>
hooks.c
state.c
state.h