mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-06 21:12:12 +00:00
clang-tidy: replace typedef with using
Found with modernize-use-using Signed-off-by: Rosen Penev <rosenp@gmail.com> Acked-by: Frediano Ziglio <freddy77@gmail.com>
This commit is contained in:
parent
748cc409f6
commit
9fb945c31b
@ -46,12 +46,12 @@
|
||||
|
||||
struct SpiceDataHeaderOpaque;
|
||||
|
||||
typedef uint16_t (*get_msg_type_proc)(SpiceDataHeaderOpaque *header);
|
||||
typedef uint32_t (*get_msg_size_proc)(SpiceDataHeaderOpaque *header);
|
||||
typedef void (*set_msg_type_proc)(SpiceDataHeaderOpaque *header, uint16_t type);
|
||||
typedef void (*set_msg_size_proc)(SpiceDataHeaderOpaque *header, uint32_t size);
|
||||
typedef void (*set_msg_serial_proc)(SpiceDataHeaderOpaque *header, uint64_t serial);
|
||||
typedef void (*set_msg_sub_list_proc)(SpiceDataHeaderOpaque *header, uint32_t sub_list);
|
||||
using get_msg_type_proc = uint16_t (*)(SpiceDataHeaderOpaque *header);
|
||||
using get_msg_size_proc = uint32_t (*)(SpiceDataHeaderOpaque *header);
|
||||
using set_msg_type_proc = void (*)(SpiceDataHeaderOpaque *header, uint16_t type);
|
||||
using set_msg_size_proc = void (*)(SpiceDataHeaderOpaque *header, uint32_t size);
|
||||
using set_msg_serial_proc = void (*)(SpiceDataHeaderOpaque *header, uint64_t serial);
|
||||
using set_msg_sub_list_proc = void (*)(SpiceDataHeaderOpaque *header, uint32_t sub_list);
|
||||
|
||||
struct SpiceDataHeaderOpaque {
|
||||
uint8_t *data;
|
||||
|
||||
@ -265,7 +265,7 @@ static bool red_process_is_blocked(RedWorker *worker)
|
||||
worker->display_channel->max_pipe_size() > MAX_PIPE_SIZE;
|
||||
}
|
||||
|
||||
typedef int (*red_process_t)(RedWorker *worker, int *ring_is_empty);
|
||||
using red_process_t = int (*)(RedWorker *worker, int *ring_is_empty);
|
||||
static void flush_commands(RedWorker *worker, RedChannel *red_channel,
|
||||
red_process_t process)
|
||||
{
|
||||
|
||||
@ -87,8 +87,8 @@ RedTestChannelClient::release_recv_buf(uint16_t type, uint32_t size, uint8_t *ms
|
||||
/*
|
||||
* Main test part
|
||||
*/
|
||||
typedef SpiceWatch *watch_add_t(const SpiceCoreInterfaceInternal *iface,
|
||||
int fd, int event_mask, SpiceWatchFunc func, void *opaque);
|
||||
using watch_add_t = SpiceWatch *(const SpiceCoreInterfaceInternal *iface,
|
||||
int fd, int event_mask, SpiceWatchFunc func, void *opaque);
|
||||
static watch_add_t *old_watch_add = nullptr;
|
||||
static SpiceWatchFunc old_watch_func = nullptr;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user