server: rename files

Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
Frediano Ziglio 2015-12-02 13:53:12 +00:00
parent 1ea55284d9
commit 525cd67be7
63 changed files with 202 additions and 202 deletions

2
NEWS
View File

@ -101,7 +101,7 @@ Major changes in 0.11.3:
SPICE_MAIN_CAP_AGENT_CONNECTED_TOKENS SPICE_MAIN_CAP_AGENT_CONNECTED_TOKENS
SPICE_MAIN_CAP_SEAMLESS_MIGRATE SPICE_MAIN_CAP_SEAMLESS_MIGRATE
* Misc: * Misc:
* char_device.c: Introducing shared flow control code for char devices * char-device.c: Introducing shared flow control code for char devices
* Enable build without client, cegui and slirp. * Enable build without client, cegui and slirp.
Major changes in 0.11.0: Major changes in 0.11.0:

View File

@ -66,45 +66,45 @@ libspice_server_la_SOURCES = \
agent-msg-filter.c \ agent-msg-filter.c \
agent-msg-filter.h \ agent-msg-filter.h \
cache-item.h \ cache-item.h \
char_device.c \ char-device.c \
char_device.h \ char-device.h \
demarshallers.h \ demarshallers.h \
glz_encoder.c \ glz-encoder.c \
glz_encoder.h \ glz-encoder.h \
glz_encoder_config.h \ glz_encoder_config.h \
glz_encoder_dictionary.c \ glz-encoder-dict.c \
glz_encoder_dictionary.h \ glz-encoder-dict.h \
glz_encoder_dictionary_protected.h \ glz-encoder-priv.h \
inputs_channel.c \ inputs-channel.c \
inputs_channel.h \ inputs-channel.h \
jpeg_encoder.c \ jpeg-encoder.c \
jpeg_encoder.h \ jpeg-encoder.h \
lz4_encoder.c \ lz4-encoder.c \
lz4_encoder.h \ lz4-encoder.h \
main_channel.c \ main-channel.c \
main_channel.h \ main-channel.h \
mjpeg_encoder.c \ mjpeg-encoder.c \
mjpeg_encoder.h \ mjpeg-encoder.h \
red_channel.c \ red-channel.c \
red_channel.h \ red-channel.h \
red_common.h \ red-common.h \
dispatcher.c \ dispatcher.c \
dispatcher.h \ dispatcher.h \
red_dispatcher.c \ red-dispatcher.c \
red_dispatcher.h \ red-dispatcher.h \
main_dispatcher.c \ main-dispatcher.c \
main_dispatcher.h \ main-dispatcher.h \
migration_protocol.h \ migration-protocol.h \
red_memslots.c \ memslot.c \
red_memslots.h \ memslot.h \
red_parse_qxl.c \ red-parse-qxl.c \
red_record_qxl.c \ red-record-qxl.c \
red_record_qxl.h \ red-record-qxl.h \
red_replay_qxl.c \ red-replay-qxl.c \
red_replay_qxl.h \ red-replay-qxl.h \
red_parse_qxl.h \ red-parse-qxl.h \
red_worker.c \ red-worker.c \
red_worker.h \ red-worker.h \
display-channel.c \ display-channel.c \
display-channel.h \ display-channel.h \
cursor-channel.c \ cursor-channel.c \
@ -112,22 +112,22 @@ libspice_server_la_SOURCES = \
reds.c \ reds.c \
reds.h \ reds.h \
reds-private.h \ reds-private.h \
reds_stream.c \ reds-stream.c \
reds_stream.h \ reds-stream.h \
reds_sw_canvas.c \ sw-canvas.c \
reds_sw_canvas.h \ sw-canvas.h \
snd_worker.c \ sound.c \
snd_worker.h \ sound.h \
stat.h \ stat.h \
spicevmc.c \ spicevmc.c \
spice_timer_queue.c \ spice_timer_queue.c \
spice_timer_queue.h \ spice_timer_queue.h \
zlib_encoder.c \ zlib-encoder.c \
zlib_encoder.h \ zlib-encoder.h \
spice_bitmap_utils.h \ spice_bitmap_utils.h \
spice_bitmap_utils.c \ spice_bitmap_utils.c \
spice_image_cache.h \ image-cache.h \
spice_image_cache.c \ image-cache.c \
pixmap-cache.h \ pixmap-cache.h \
pixmap-cache.c \ pixmap-cache.c \
tree.h \ tree.h \

View File

@ -22,9 +22,9 @@
#endif #endif
#include <string.h> #include <string.h>
#include "red_common.h" #include "red-common.h"
#include "agent-msg-filter.h" #include "agent-msg-filter.h"
#include "red_dispatcher.h" #include "red-dispatcher.h"
void agent_msg_filter_init(struct AgentMsgFilter *filter, void agent_msg_filter_init(struct AgentMsgFilter *filter,
int copy_paste, int file_xfer, int discard_all) int copy_paste, int file_xfer, int discard_all)

View File

@ -18,7 +18,7 @@
#ifndef CACHE_ITEM_H_ #ifndef CACHE_ITEM_H_
# define CACHE_ITEM_H_ # define CACHE_ITEM_H_
#include "red_channel.h" #include "red-channel.h"
#include "common/ring.h" #include "common/ring.h"
typedef struct CacheItem CacheItem; typedef struct CacheItem CacheItem;

View File

@ -21,8 +21,8 @@
#include <config.h> #include <config.h>
#include "char_device.h" #include "char-device.h"
#include "red_channel.h" #include "red-channel.h"
#include "reds.h" #include "reds.h"
#define CHAR_DEVICE_WRITE_TO_TIMEOUT 100 #define CHAR_DEVICE_WRITE_TO_TIMEOUT 100

View File

@ -15,12 +15,12 @@
You should have received a copy of the GNU Lesser General Public You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see <http://www.gnu.org/licenses/>. License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef __CHAR_DEVICE_H__ #ifndef CHAR_DEVICE_H_
#define __CHAR_DEVICE_H__ #define CHAR_DEVICE_H_
#include "spice.h" #include "spice.h"
#include "red_channel.h" #include "red-channel.h"
#include "migration_protocol.h" #include "migration-protocol.h"
/* /*
* Shared code for char devices, mainly for flow control. * Shared code for char devices, mainly for flow control.
@ -213,4 +213,4 @@ SpiceCharDeviceState *spicevmc_device_connect(SpiceCharDeviceInstance *sin,
uint8_t channel_type); uint8_t channel_type);
void spicevmc_device_disconnect(SpiceCharDeviceInstance *char_device); void spicevmc_device_disconnect(SpiceCharDeviceInstance *char_device);
#endif // __CHAR_DEVICE_H__ #endif // CHAR_DEVICE_H_

View File

@ -20,8 +20,8 @@
#include "spice.h" #include "spice.h"
#include "reds.h" #include "reds.h"
#include "red_worker.h" #include "red-worker.h"
#include "red_parse_qxl.h" #include "red-parse-qxl.h"
#include "cache-item.h" #include "cache-item.h"
#include "stat.h" #include "stat.h"

View File

@ -21,16 +21,16 @@
#include <setjmp.h> #include <setjmp.h>
#include "common/marshaller.h" #include "common/marshaller.h"
#include "common/quic.h" #include "common/quic.h"
#include "red_channel.h" #include "red-channel.h"
#include "red_parse_qxl.h" #include "red-parse-qxl.h"
#include "spice_image_cache.h" #include "image-cache.h"
#include "glz_encoder_dictionary.h" #include "glz-encoder-dict.h"
#include "glz_encoder.h" #include "glz-encoder.h"
#include "jpeg_encoder.h" #include "jpeg-encoder.h"
#ifdef USE_LZ4 #ifdef USE_LZ4
#include "lz4_encoder.h" #include "lz4-encoder.h"
#endif #endif
#include "zlib_encoder.h" #include "zlib-encoder.h"
typedef struct RedCompressBuf RedCompressBuf; typedef struct RedCompressBuf RedCompressBuf;
typedef struct GlzDrawableInstanceItem GlzDrawableInstanceItem; typedef struct GlzDrawableInstanceItem GlzDrawableInstanceItem;

View File

@ -18,7 +18,7 @@
#ifndef DCC_H_ #ifndef DCC_H_
# define DCC_H_ # define DCC_H_
#include "red_worker.h" #include "red-worker.h"
#include "pixmap-cache.h" #include "pixmap-cache.h"
#include "cache-item.h" #include "cache-item.h"
#include "dcc-encoders.h" #include "dcc-encoders.h"

View File

@ -21,26 +21,26 @@
#include <setjmp.h> #include <setjmp.h>
#include "common/rect.h" #include "common/rect.h"
#include "red_worker.h" #include "red-worker.h"
#include "reds_stream.h" #include "reds-stream.h"
#include "cache-item.h" #include "cache-item.h"
#include "pixmap-cache.h" #include "pixmap-cache.h"
#include "reds_sw_canvas.h" #include "sw-canvas.h"
#include "stat.h" #include "stat.h"
#include "reds.h" #include "reds.h"
#include "mjpeg_encoder.h" #include "mjpeg-encoder.h"
#include "red_memslots.h" #include "memslot.h"
#include "red_parse_qxl.h" #include "red-parse-qxl.h"
#include "red_record_qxl.h" #include "red-record-qxl.h"
#include "demarshallers.h" #include "demarshallers.h"
#include "red_channel.h" #include "red-channel.h"
#include "red_dispatcher.h" #include "red-dispatcher.h"
#include "dispatcher.h" #include "dispatcher.h"
#include "main_channel.h" #include "main-channel.h"
#include "migration_protocol.h" #include "migration-protocol.h"
#include "main_dispatcher.h" #include "main-dispatcher.h"
#include "spice_bitmap_utils.h" #include "spice_bitmap_utils.h"
#include "spice_image_cache.h" #include "image-cache.h"
#include "utils.h" #include "utils.h"
#include "tree.h" #include "tree.h"
#include "stream.h" #include "stream.h"

View File

@ -22,8 +22,8 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include "glz_encoder_dictionary.h" #include "glz-encoder-dict.h"
#include "glz_encoder_dictionary_protected.h" #include "glz-encoder-priv.h"
/* turning all used images to free ones. If they are alive, calling the free_image callback for /* turning all used images to free ones. If they are alive, calling the free_image callback for
each one */ each one */

View File

@ -15,8 +15,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>. License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef _H_GLZ_ENCODER_DICTIONARY #ifndef GLZ_ENCODER_DICT_H_
#define _H_GLZ_ENCODER_DICTIONARY #define GLZ_ENCODER_DICT_H_
#include <stdint.h> #include <stdint.h>
#include "glz_encoder_config.h" #include "glz_encoder_config.h"
@ -24,7 +24,7 @@
/* /*
Interface for maintaining lz dictionary that is shared among several encoders. Interface for maintaining lz dictionary that is shared among several encoders.
The interface for accessing the dictionary for encoding purposes is located in The interface for accessing the dictionary for encoding purposes is located in
glz_encoder_dictionary_protected.h glz-encoder-priv.h
*/ */
typedef void GlzEncDictContext; typedef void GlzEncDictContext;
@ -66,4 +66,4 @@ void glz_enc_dictionary_reset(GlzEncDictContext *opaque_dict, GlzEncoderUsrConte
void glz_enc_dictionary_remove_image(GlzEncDictContext *opaque_dict, void glz_enc_dictionary_remove_image(GlzEncDictContext *opaque_dict,
GlzEncDictImageContext *image, GlzEncoderUsrContext *usr); GlzEncDictImageContext *image, GlzEncoderUsrContext *usr);
#endif // _H_GLZ_ENCODER_DICTIONARY #endif // GLZ_ENCODER_DICT_H_

View File

@ -15,8 +15,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>. License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef _H_GLZ_ENCODER_DICTIONARY_PROTECTED #ifndef GLZ_ENCODER_PRIV_H_
#define _H_GLZ_ENCODER_DICTIONARY_PROTECTED #define GLZ_ENCODER_PRIV_H_
/* Interface for using the dictionary for encoding. /* Interface for using the dictionary for encoding.
Data structures are exposed for the encoder for efficiency Data structures are exposed for the encoder for efficiency
@ -183,4 +183,4 @@ void glz_dictionary_post_encode(uint32_t encoder_id, GlzEncoderUsrContext *usr,
(dict)->window.encoders_heads[enc_id]].pixels_so_far <= \ (dict)->window.encoders_heads[enc_id]].pixels_so_far <= \
ref_seg->pixels_so_far))) ref_seg->pixels_so_far)))
#endif // _H_GLZ_ENCODER_DICTIONARY_PROTECTED #endif // GLZ_ENCODER_PRIV_H_

View File

@ -21,8 +21,8 @@
#include <glib.h> #include <glib.h>
#include <pthread.h> #include <pthread.h>
#include <stdio.h> #include <stdio.h>
#include "glz_encoder.h" #include "glz-encoder.h"
#include "glz_encoder_dictionary_protected.h" #include "glz-encoder-priv.h"
/* Holds a specific data for one encoder, and data that is relevant for the current image encoded */ /* Holds a specific data for one encoder, and data that is relevant for the current image encoded */

View File

@ -22,7 +22,7 @@
#include <stdint.h> #include <stdint.h>
#include "common/lz_common.h" #include "common/lz_common.h"
#include "glz_encoder_dictionary.h" #include "glz-encoder-dict.h"
#include "glz_encoder_config.h" #include "glz_encoder_config.h"
typedef void GlzEncoderContext; typedef void GlzEncoderContext;

View File

@ -18,8 +18,8 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif #endif
#include "spice_image_cache.h" #include "image-cache.h"
#include "red_parse_qxl.h" #include "red-parse-qxl.h"
#include "display-channel.h" #include "display-channel.h"
static ImageCacheItem *image_cache_find(ImageCache *cache, uint64_t id) static ImageCacheItem *image_cache_find(ImageCache *cache, uint64_t id)

View File

@ -15,8 +15,8 @@
You should have received a copy of the GNU Lesser General Public You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see <http://www.gnu.org/licenses/>. License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef H_SPICE_IMAGE_CACHE #ifndef IMAGE_CACHE_H_
#define H_SPICE_IMAGE_CACHE #define IMAGE_CACHE_H_
#include <inttypes.h> #include <inttypes.h>
@ -24,7 +24,7 @@
#include "common/canvas_base.h" #include "common/canvas_base.h"
#include "common/ring.h" #include "common/ring.h"
/* FIXME: move back to display_channel.h (once structs are private) */ /* FIXME: move back to display-channel.h (once structs are private) */
typedef struct Drawable Drawable; typedef struct Drawable Drawable;
typedef struct DisplayChannelClient DisplayChannelClient; typedef struct DisplayChannelClient DisplayChannelClient;

View File

@ -35,13 +35,13 @@
#include "demarshallers.h" #include "demarshallers.h"
#include "spice.h" #include "spice.h"
#include "red_common.h" #include "red-common.h"
#include "reds.h" #include "reds.h"
#include "reds_stream.h" #include "reds-stream.h"
#include "red_channel.h" #include "red-channel.h"
#include "main_channel.h" #include "main-channel.h"
#include "inputs_channel.h" #include "inputs-channel.h"
#include "migration_protocol.h" #include "migration-protocol.h"
// TODO: RECEIVE_BUF_SIZE used to be the same for inputs_channel and main_channel // TODO: RECEIVE_BUF_SIZE used to be the same for inputs_channel and main_channel
// since it was defined once in reds.c which contained both. // since it was defined once in reds.c which contained both.

View File

@ -19,7 +19,7 @@
#define _INPUTS_CHANNEL_H_ #define _INPUTS_CHANNEL_H_
// Inputs channel, dealing with keyboard, mouse, tablet. // Inputs channel, dealing with keyboard, mouse, tablet.
// This include should only be used by reds.c and inputs_channel.c // This include should only be used by reds.c and inputs-channel.c
#include <stdint.h> #include <stdint.h>
#include <spice/vd_agent.h> #include <spice/vd_agent.h>

View File

@ -18,8 +18,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include "red_common.h" #include "red-common.h"
#include "jpeg_encoder.h" #include "jpeg-encoder.h"
#include <jpeglib.h> #include <jpeglib.h>
typedef struct JpegEncoder { typedef struct JpegEncoder {

View File

@ -24,8 +24,8 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include <lz4.h> #include <lz4.h>
#include "red_common.h" #include "red-common.h"
#include "lz4_encoder.h" #include "lz4-encoder.h"
typedef struct Lz4Encoder { typedef struct Lz4Encoder {
Lz4EncoderUsrContext *usr; Lz4EncoderUsrContext *usr;

View File

@ -41,12 +41,12 @@
#include "common/ring.h" #include "common/ring.h"
#include "demarshallers.h" #include "demarshallers.h"
#include "main_channel.h" #include "main-channel.h"
#include "red_channel.h" #include "red-channel.h"
#include "red_common.h" #include "red-common.h"
#include "reds.h" #include "reds.h"
#include "migration_protocol.h" #include "migration-protocol.h"
#include "main_dispatcher.h" #include "main-dispatcher.h"
#include "utils.h" #include "utils.h"
#define ZERO_BUF_SIZE 4096 #define ZERO_BUF_SIZE 4096

View File

@ -21,7 +21,7 @@
#include <stdint.h> #include <stdint.h>
#include <spice/vd_agent.h> #include <spice/vd_agent.h>
#include "common/marshaller.h" #include "common/marshaller.h"
#include "red_channel.h" #include "red-channel.h"
// TODO: Defines used to calculate receive buffer size, and also by reds.c // TODO: Defines used to calculate receive buffer size, and also by reds.c
// other options: is to make a reds_main_consts.h, to duplicate defines. // other options: is to make a reds_main_consts.h, to duplicate defines.

View File

@ -21,10 +21,10 @@
#include <errno.h> #include <errno.h>
#include <pthread.h> #include <pthread.h>
#include "red_common.h" #include "red-common.h"
#include "dispatcher.h" #include "dispatcher.h"
#include "main_dispatcher.h" #include "main-dispatcher.h"
#include "red_channel.h" #include "red-channel.h"
#include "reds.h" #include "reds.h"
/* /*

View File

@ -19,7 +19,7 @@
#define MAIN_DISPATCHER_H #define MAIN_DISPATCHER_H
#include <spice.h> #include <spice.h>
#include "red_channel.h" #include "red-channel.h"
void main_dispatcher_channel_event(int event, SpiceChannelEventInfo *info); void main_dispatcher_channel_event(int event, SpiceChannelEventInfo *info);
void main_dispatcher_seamless_migrate_dst_complete(RedClient *client); void main_dispatcher_seamless_migrate_dst_complete(RedClient *client);

View File

@ -21,8 +21,8 @@
#include <inttypes.h> #include <inttypes.h>
#include "red_common.h" #include "red-common.h"
#include "red_memslots.h" #include "memslot.h"
static unsigned long __get_clean_virt(RedMemSlotInfo *info, QXLPHYSICAL addr) static unsigned long __get_clean_virt(RedMemSlotInfo *info, QXLPHYSICAL addr)
{ {

View File

@ -16,10 +16,10 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>. License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef _H_REDMEMSLOTS #ifndef MEMSLOT_H_
#define _H_REDMEMSLOTS #define MEMSLOT_H_
#include "red_common.h" #include "red-common.h"
#include <spice/qxl_dev.h> #include <spice/qxl_dev.h>
@ -69,4 +69,4 @@ void memslot_info_add_slot(RedMemSlotInfo *info, uint32_t slot_group_id, uint32_
void memslot_info_del_slot(RedMemSlotInfo *info, uint32_t slot_group_id, uint32_t slot_id); void memslot_info_del_slot(RedMemSlotInfo *info, uint32_t slot_group_id, uint32_t slot_id);
void memslot_info_reset(RedMemSlotInfo *info); void memslot_info_reset(RedMemSlotInfo *info);
#endif #endif /* MEMSLOT_H_ */

View File

@ -20,7 +20,7 @@
#include <spice/macros.h> #include <spice/macros.h>
#include <spice/vd_agent.h> #include <spice/vd_agent.h>
#include "glz_encoder_dictionary.h" #include "glz-encoder-dict.h"
/* ************************************************ /* ************************************************
* src-server to dst-server migration data messages * src-server to dst-server migration data messages

View File

@ -19,8 +19,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include "red_common.h" #include "red-common.h"
#include "mjpeg_encoder.h" #include "mjpeg-encoder.h"
#include "utils.h" #include "utils.h"
#include <jerror.h> #include <jerror.h>
#include <jpeglib.h> #include <jpeglib.h>

View File

@ -19,7 +19,7 @@
#ifndef _H_MJPEG_ENCODER #ifndef _H_MJPEG_ENCODER
#define _H_MJPEG_ENCODER #define _H_MJPEG_ENCODER
#include "red_common.h" #include "red-common.h"
enum { enum {
MJPEG_ENCODER_FRAME_UNSUPPORTED = -1, MJPEG_ENCODER_FRAME_UNSUPPORTED = -1,

View File

@ -18,7 +18,7 @@
#ifndef _PIXMAP_CACHE_H #ifndef _PIXMAP_CACHE_H
# define _PIXMAP_CACHE_H # define _PIXMAP_CACHE_H
#include "red_channel.h" #include "red-channel.h"
#define MAX_CACHE_CLIENTS 4 #define MAX_CACHE_CLIENTS 4

View File

@ -39,10 +39,10 @@
#include "common/ring.h" #include "common/ring.h"
#include "stat.h" #include "stat.h"
#include "red_channel.h" #include "red-channel.h"
#include "reds.h" #include "reds.h"
#include "reds_stream.h" #include "reds-stream.h"
#include "main_dispatcher.h" #include "main-dispatcher.h"
#include "utils.h" #include "utils.h"
typedef struct EmptyMsgPipeItem { typedef struct EmptyMsgPipeItem {
@ -2036,7 +2036,7 @@ void red_channel_client_pipe_remove_and_release(RedChannelClient *rcc,
} }
/* /*
* RedClient implementation - kept in red_channel.c because they are * RedClient implementation - kept in red-channel.c because they are
* pretty tied together. * pretty tied together.
*/ */

View File

@ -29,9 +29,9 @@
#include "common/marshaller.h" #include "common/marshaller.h"
#include "spice.h" #include "spice.h"
#include "red_common.h" #include "red-common.h"
#include "demarshallers.h" #include "demarshallers.h"
#include "reds_stream.h" #include "reds-stream.h"
#include "stat.h" #include "stat.h"
#define MAX_SEND_BUFS 1000 #define MAX_SEND_BUFS 1000
@ -529,7 +529,7 @@ void red_channel_client_pipe_clear(RedChannelClient *rcc);
// display_channel_wait_for_init // display_channel_wait_for_init
// red_wait_outgoing_item // red_wait_outgoing_item
// red_wait_pipe_item_sent // red_wait_pipe_item_sent
// handle_channel_events - this is the only one that was used before, and was in red_channel.c // handle_channel_events - this is the only one that was used before, and was in red-channel.c
void red_channel_receive(RedChannel *channel); void red_channel_receive(RedChannel *channel);
void red_channel_client_receive(RedChannelClient *rcc); void red_channel_client_receive(RedChannelClient *rcc);
// For red_worker // For red_worker

View File

@ -31,13 +31,13 @@
#include "common/quic.h" #include "common/quic.h"
#include "spice.h" #include "spice.h"
#include "red_worker.h" #include "red-worker.h"
#include "reds_sw_canvas.h" #include "sw-canvas.h"
#include "reds.h" #include "reds.h"
#include "dispatcher.h" #include "dispatcher.h"
#include "red_parse_qxl.h" #include "red-parse-qxl.h"
#include "red_dispatcher.h" #include "red-dispatcher.h"
static int num_active_workers = 0; static int num_active_workers = 0;

View File

@ -20,7 +20,7 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include "red_channel.h" #include "red-channel.h"
typedef struct RedDispatcher RedDispatcher; typedef struct RedDispatcher RedDispatcher;

View File

@ -24,9 +24,9 @@
#include <glib.h> #include <glib.h>
#include "common/lz_common.h" #include "common/lz_common.h"
#include "spice-bitmap-utils.h" #include "spice-bitmap-utils.h"
#include "red_common.h" #include "red-common.h"
#include "red_memslots.h" #include "memslot.h"
#include "red_parse_qxl.h" #include "red-parse-qxl.h"
/* Max size in bytes for any data field used in a QXL command. /* Max size in bytes for any data field used in a QXL command.
* This will for example be useful to prevent the guest from saturating the * This will for example be useful to prevent the guest from saturating the

View File

@ -20,8 +20,8 @@
#define RED_ABI_TRANSLATE_H #define RED_ABI_TRANSLATE_H
#include <spice/qxl_dev.h> #include <spice/qxl_dev.h>
#include "red_common.h" #include "red-common.h"
#include "red_memslots.h" #include "memslot.h"
typedef struct RedDrawable { typedef struct RedDrawable {
int refs; int refs;

View File

@ -21,11 +21,11 @@
#include <stdbool.h> #include <stdbool.h>
#include <inttypes.h> #include <inttypes.h>
#include "red_worker.h" #include "red-worker.h"
#include "red_common.h" #include "red-common.h"
#include "red_memslots.h" #include "memslot.h"
#include "red_parse_qxl.h" #include "red-parse-qxl.h"
#include "zlib_encoder.h" #include "zlib-encoder.h"
#if 0 #if 0
static void hexdump_qxl(RedMemSlotInfo *slots, int group_id, static void hexdump_qxl(RedMemSlotInfo *slots, int group_id,

View File

@ -20,8 +20,8 @@
#define RED_ABI_RECORD_H #define RED_ABI_RECORD_H
#include <spice/qxl_dev.h> #include <spice/qxl_dev.h>
#include "red_common.h" #include "red-common.h"
#include "red_memslots.h" #include "memslot.h"
void red_record_dev_input_primary_surface_create( void red_record_dev_input_primary_surface_create(
FILE *fd, QXLDevSurfaceCreate *surface, uint8_t *line_0); FILE *fd, QXLDevSurfaceCreate *surface, uint8_t *line_0);

View File

@ -24,11 +24,11 @@
#include <zlib.h> #include <zlib.h>
#include <pthread.h> #include <pthread.h>
#include "reds.h" #include "reds.h"
#include "red_worker.h" #include "red-worker.h"
#include "red_common.h" #include "red-common.h"
#include "red_memslots.h" #include "memslot.h"
#include "red_parse_qxl.h" #include "red-parse-qxl.h"
#include "red_replay_qxl.h" #include "red-replay-qxl.h"
#include <glib.h> #include <glib.h>
typedef enum { typedef enum {

View File

@ -48,7 +48,7 @@
#include "stream.h" #include "stream.h"
#include "spice.h" #include "spice.h"
#include "red_worker.h" #include "red-worker.h"
#include "spice_timer_queue.h" #include "spice_timer_queue.h"
#include "cursor-channel.h" #include "cursor-channel.h"
#include "tree.h" #include "tree.h"

View File

@ -21,9 +21,9 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include "utils.h" #include "utils.h"
#include "red_common.h" #include "red-common.h"
#include "red_dispatcher.h" #include "red-dispatcher.h"
#include "red_parse_qxl.h" #include "red-parse-qxl.h"
typedef struct RedWorker RedWorker; typedef struct RedWorker RedWorker;

View File

@ -19,9 +19,9 @@
#include <config.h> #include <config.h>
#endif #endif
#include "main_dispatcher.h" #include "main-dispatcher.h"
#include "red_common.h" #include "red-common.h"
#include "reds_stream.h" #include "reds-stream.h"
#include "common/log.h" #include "common/log.h"
#include <errno.h> #include <errno.h>

View File

@ -56,20 +56,20 @@
#include "spice.h" #include "spice.h"
#include "reds.h" #include "reds.h"
#include "agent-msg-filter.h" #include "agent-msg-filter.h"
#include "inputs_channel.h" #include "inputs-channel.h"
#include "main_channel.h" #include "main-channel.h"
#include "red_common.h" #include "red-common.h"
#include "red_dispatcher.h" #include "red-dispatcher.h"
#include "main_dispatcher.h" #include "main-dispatcher.h"
#include "snd_worker.h" #include "sound.h"
#include "stat.h" #include "stat.h"
#include "demarshallers.h" #include "demarshallers.h"
#include "char_device.h" #include "char-device.h"
#include "migration_protocol.h" #include "migration-protocol.h"
#ifdef USE_SMARTCARD #ifdef USE_SMARTCARD
#include "smartcard.h" #include "smartcard.h"
#endif #endif
#include "reds_stream.h" #include "reds-stream.h"
#include "reds-private.h" #include "reds-private.h"

View File

@ -27,8 +27,8 @@
#include "common/marshaller.h" #include "common/marshaller.h"
#include "common/messages.h" #include "common/messages.h"
#include "spice.h" #include "spice.h"
#include "red_channel.h" #include "red-channel.h"
#include "migration_protocol.h" #include "migration-protocol.h"
struct QXLState { struct QXLState {
QXLInterface *qif; QXLInterface *qif;
@ -75,7 +75,7 @@ extern SpiceImageCompression image_compression;
extern spice_wan_compression_t jpeg_state; extern spice_wan_compression_t jpeg_state;
extern spice_wan_compression_t zlib_glz_state; extern spice_wan_compression_t zlib_glz_state;
// Temporary measures to make splitting reds.c to inputs_channel.c easier // Temporary measures to make splitting reds.c to inputs-channel.c easier
/* should be called only from main_dispatcher */ /* should be called only from main_dispatcher */
void reds_client_disconnect(RedClient *client); void reds_client_disconnect(RedClient *client);

View File

@ -29,10 +29,10 @@
#endif #endif
#include "reds.h" #include "reds.h"
#include "char_device.h" #include "char-device.h"
#include "red_channel.h" #include "red-channel.h"
#include "smartcard.h" #include "smartcard.h"
#include "migration_protocol.h" #include "migration-protocol.h"
/* /*
* TODO: the code doesn't really support multiple readers. * TODO: the code doesn't really support multiple readers.

View File

@ -30,11 +30,11 @@
#include "common/generated_server_marshallers.h" #include "common/generated_server_marshallers.h"
#include "spice.h" #include "spice.h"
#include "red_common.h" #include "red-common.h"
#include "main_channel.h" #include "main-channel.h"
#include "reds.h" #include "reds.h"
#include "red_dispatcher.h" #include "red-dispatcher.h"
#include "snd_worker.h" #include "sound.h"
#include "common/snd_codec.h" #include "common/snd_codec.h"
#include "demarshallers.h" #include "demarshallers.h"

View File

@ -15,8 +15,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>. License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef _H_SND_WORKER #ifndef SOUND_H_
#define _H_SND_WORKER #define SOUND_H_
#include "spice.h" #include "spice.h"

View File

@ -17,7 +17,7 @@
*/ */
#include <config.h> #include <config.h>
#include <pthread.h> #include <pthread.h>
#include "red_common.h" #include "red-common.h"
#include "spice_timer_queue.h" #include "spice_timer_queue.h"
#include "common/ring.h" #include "common/ring.h"

View File

@ -30,10 +30,10 @@
#include "common/generated_server_marshallers.h" #include "common/generated_server_marshallers.h"
#include "char_device.h" #include "char-device.h"
#include "red_channel.h" #include "red-channel.h"
#include "reds.h" #include "reds.h"
#include "migration_protocol.h" #include "migration-protocol.h"
/* todo: add flow control. i.e., /* todo: add flow control. i.e.,
* (a) limit the tokens available for the client * (a) limit the tokens available for the client

View File

@ -20,10 +20,10 @@
#include <glib.h> #include <glib.h>
#include "utils.h" #include "utils.h"
#include "mjpeg_encoder.h" #include "mjpeg-encoder.h"
#include "common/region.h" #include "common/region.h"
#include "red_channel.h" #include "red-channel.h"
#include "spice_image_cache.h" #include "image-cache.h"
#define RED_STREAM_DETACTION_MAX_DELTA ((1000 * 1000 * 1000) / 5) // 1/5 sec #define RED_STREAM_DETACTION_MAX_DELTA ((1000 * 1000 * 1000) / 5) // 1/5 sec
#define RED_STREAM_CONTINUS_MAX_DELTA (1000 * 1000 * 1000) #define RED_STREAM_CONTINUS_MAX_DELTA (1000 * 1000 * 1000)

View File

@ -20,7 +20,7 @@
#include "common/spice_common.h" #include "common/spice_common.h"
#include "reds_sw_canvas.h" #include "sw-canvas.h"
#define SW_CANVAS_IMAGE_CACHE #define SW_CANVAS_IMAGE_CACHE
#include "common/sw_canvas.c" #include "common/sw_canvas.c"
#undef SW_CANVAS_IMAGE_CACHE #undef SW_CANVAS_IMAGE_CACHE

View File

@ -14,11 +14,11 @@
You should have received a copy of the GNU Lesser General Public You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see <http://www.gnu.org/licenses/>. License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef _H_REDS_SW_CANVAS #ifndef SW_CANVAS_H_
#define _H_REDS_SW_CANVAS #define SW_CANVAS_H_
#define SW_CANVAS_IMAGE_CACHE #define SW_CANVAS_IMAGE_CACHE
#include "common/sw_canvas.h" #include "common/sw_canvas.h"
#undef SW_CANVAS_IMAGE_CACHE #undef SW_CANVAS_IMAGE_CACHE
#endif #endif /* SW_CANVAS_H_ */

View File

@ -36,7 +36,7 @@
#include <pthread.h> #include <pthread.h>
#include <spice/macros.h> #include <spice/macros.h>
#include "red_replay_qxl.h" #include "red-replay-qxl.h"
#include "test_display_base.h" #include "test_display_base.h"
#include "common/log.h" #include "common/log.h"

View File

@ -31,7 +31,7 @@
#include <spice/qxl_dev.h> #include <spice/qxl_dev.h>
#include "test_display_base.h" #include "test_display_base.h"
#include "red_channel.h" #include "red-channel.h"
#include "test_util.h" #include "test_util.h"
#ifndef PATH_MAX #ifndef PATH_MAX

View File

@ -19,7 +19,7 @@
#endif #endif
#include <spice/qxl_dev.h> #include <spice/qxl_dev.h>
#include "red_parse_qxl.h" #include "red-parse-qxl.h"
#include "display-channel.h" #include "display-channel.h"
#include "tree.h" #include "tree.h"

View File

@ -19,8 +19,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include "red_common.h" #include "red-common.h"
#include "zlib_encoder.h" #include "zlib-encoder.h"
#include <zlib.h> #include <zlib.h>
struct ZlibEncoder { struct ZlibEncoder {