replay-char.c (330724977b10f5b92610817e8b7d1dfed122df87) replay-char.c (8f9abdf586d48552273abe38cf55058f7d0c85fd)
1/*
2 * replay-char.c
3 *
4 * Copyright (c) 2010-2016 Institute for System Programming
5 * of the Russian Academy of Sciences.
6 *
7 * This work is licensed under the terms of the GNU GPL, version 2 or later.
8 * See the COPYING file in the top-level directory.

--- 34 unchanged lines hidden (view full) ---

43 if (replay_mode == REPLAY_MODE_NONE) {
44 return;
45 }
46 char_drivers = g_realloc(char_drivers,
47 sizeof(*char_drivers) * (drivers_count + 1));
48 char_drivers[drivers_count++] = chr;
49}
50
1/*
2 * replay-char.c
3 *
4 * Copyright (c) 2010-2016 Institute for System Programming
5 * of the Russian Academy of Sciences.
6 *
7 * This work is licensed under the terms of the GNU GPL, version 2 or later.
8 * See the COPYING file in the top-level directory.

--- 34 unchanged lines hidden (view full) ---

43 if (replay_mode == REPLAY_MODE_NONE) {
44 return;
45 }
46 char_drivers = g_realloc(char_drivers,
47 sizeof(*char_drivers) * (drivers_count + 1));
48 char_drivers[drivers_count++] = chr;
49}
50
51void replay_chr_be_write(Chardev *s, uint8_t *buf, int len)
51void replay_chr_be_write(Chardev *s, const uint8_t *buf, int len)
52{
53 CharEvent *event = g_new0(CharEvent, 1);
54
55 event->id = find_char_driver(s);
56 if (event->id < 0) {
57 fprintf(stderr, "Replay: cannot find char driver\n");
58 exit(1);
59 }

--- 99 unchanged lines hidden ---
52{
53 CharEvent *event = g_new0(CharEvent, 1);
54
55 event->id = find_char_driver(s);
56 if (event->id < 0) {
57 fprintf(stderr, "Replay: cannot find char driver\n");
58 exit(1);
59 }

--- 99 unchanged lines hidden ---