buffet: Add state change ID to state queue

Each state update will now increment a state change ID to help correlate
device state and command updates.

Right now, each call to NotifyPropertiesUpdated() will increment the ID.

This functionality will be used in subsequent CLs to implement ordering
of state and command updates on GCD server.

BUG=brillo:1202
TEST=`FEATURES=test emerge-link buffet`

Change-Id: I8cd591ec83cef7c1f1019728c0492fdee23d64dc
Reviewed-on: https://chromium-review.googlesource.com/282081
Reviewed-by: Vitaly Buka <vitalybuka@chromium.org>
Tested-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
5 files changed
tree: 48982c1af5321e8a5fd4e896ffd9bbb0c1c7b77a
  1. buffet/