state: move filter initialization to the dispatcher
authorRan Benita <ran234@gmail.com>
Fri, 14 Sep 2012 13:01:11 +0000 (16:01 +0300)
committerRan Benita <ran234@gmail.com>
Fri, 14 Sep 2012 18:09:49 +0000 (21:09 +0300)
commit8098daa08f2621b90fb295c4bd8b95a7cbbf54d2
tree4a9de3e6deee581f0b748b6c89047b0ec3fed761
parent2c19c9388beafe836beb5223e5d7429f7a2381ab
state: move filter initialization to the dispatcher

This removes all of the boilerplate from the *_new functions, and leaves
them just as simple functions which perform the effect of the action on state.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/state.c