char.h (831aaf24967a49d7750090b9dcfd6bf356f16529) | char.h (8f9abdf586d48552273abe38cf55058f7d0c85fd) |
---|---|
1#ifndef QEMU_CHAR_H 2#define QEMU_CHAR_H 3 4#include "qapi/qapi-types-char.h" 5#include "qemu/bitmap.h" 6#include "qemu/thread.h" 7#include "qom/object.h" 8 --- 172 unchanged lines hidden (view full) --- 181 * qemu_chr_be_write: 182 * @buf: a buffer to receive data from the front end 183 * @len: the number of bytes to receive from the front end 184 * 185 * Write data from the back end to the front end. Before issuing this call, 186 * the caller should call @qemu_chr_be_can_write to determine how much data 187 * the front end can currently accept. 188 */ | 1#ifndef QEMU_CHAR_H 2#define QEMU_CHAR_H 3 4#include "qapi/qapi-types-char.h" 5#include "qemu/bitmap.h" 6#include "qemu/thread.h" 7#include "qom/object.h" 8 --- 172 unchanged lines hidden (view full) --- 181 * qemu_chr_be_write: 182 * @buf: a buffer to receive data from the front end 183 * @len: the number of bytes to receive from the front end 184 * 185 * Write data from the back end to the front end. Before issuing this call, 186 * the caller should call @qemu_chr_be_can_write to determine how much data 187 * the front end can currently accept. 188 */ |
189void qemu_chr_be_write(Chardev *s, uint8_t *buf, int len); | 189void qemu_chr_be_write(Chardev *s, const uint8_t *buf, int len); |
190 191/** 192 * qemu_chr_be_write_impl: 193 * @buf: a buffer to receive data from the front end 194 * @len: the number of bytes to receive from the front end 195 * 196 * Implementation of back end writing. Used by replay module. 197 */ | 190 191/** 192 * qemu_chr_be_write_impl: 193 * @buf: a buffer to receive data from the front end 194 * @len: the number of bytes to receive from the front end 195 * 196 * Implementation of back end writing. Used by replay module. 197 */ |
198void qemu_chr_be_write_impl(Chardev *s, uint8_t *buf, int len); | 198void qemu_chr_be_write_impl(Chardev *s, const uint8_t *buf, int len); |
199 200/** 201 * qemu_chr_be_update_read_handlers: 202 * @context: the gcontext that will be used to attach the watch sources 203 * 204 * Invoked when frontend read handlers are setup 205 */ 206void qemu_chr_be_update_read_handlers(Chardev *s, --- 120 unchanged lines hidden --- | 199 200/** 201 * qemu_chr_be_update_read_handlers: 202 * @context: the gcontext that will be used to attach the watch sources 203 * 204 * Invoked when frontend read handlers are setup 205 */ 206void qemu_chr_be_update_read_handlers(Chardev *s, --- 120 unchanged lines hidden --- |