throttle: introduce enum ThrottleDirection
authorzhenwei pi <pizhenwei@bytedance.com>
Fri, 28 Jul 2023 02:19:58 +0000 (10:19 +0800)
committerHanna Czenczek <hreitz@redhat.com>
Tue, 29 Aug 2023 08:49:24 +0000 (10:49 +0200)
commit8ba02c24ea25a7a1fa4931e266af7916c115da2c
tree8ae6439ade7d47afbf98fa1d2dd7c42e31398f52
parentf5fe7c17ac4e309e47e78f0f9761aebc8d2f2c81
throttle: introduce enum ThrottleDirection

Use enum ThrottleDirection instead of number index.

Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Message-Id: <20230728022006.1098509-2-pizhenwei@bytedance.com>
Signed-off-by: Hanna Czenczek <hreitz@redhat.com>
include/qemu/throttle.h
util/throttle.c