build: Remove spice_common.h

Most users of spice_common.h don't need it, or only need log.h. It only
has a few users outside of spice-common. It's not very well defined
which headers it should contain. This commit removes spice_common.h in
favour of direct inclusion of the needed headers.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
Christophe Fergeau 2018-07-03 12:42:35 +02:00 committed by Frediano Ziglio
parent 8069bf498d
commit b4e07c31cf
11 changed files with 4 additions and 42 deletions

View File

@ -51,7 +51,6 @@ libspice_common_la_SOURCES = \
rop3.h \
snd_codec.c \
snd_codec.h \
spice_common.h \
verify.h \
$(NULL)

View File

@ -24,10 +24,10 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "spice_common.h"
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#ifndef __MINGW32__

View File

@ -18,7 +18,6 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "spice_common.h"
#include "canvas_utils.h"
#include "mem.h"

View File

@ -47,7 +47,6 @@
#include <config.h>
#endif
#include "spice_common.h"
#include "lz.h"
#define HASH_LOG 13

View File

@ -19,7 +19,6 @@
#include <config.h>
#endif
#include "spice_common.h"
#include "mem.h"
#include <string.h>

View File

@ -34,7 +34,6 @@ spice_common_sources = [
'rop3.h',
'snd_codec.c',
'snd_codec.h',
'spice_common.h',
'verify.h'
]

View File

@ -18,7 +18,6 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "spice_common.h"
#include "pixman_utils.h"

View File

@ -26,7 +26,7 @@
#include <glib.h>
#include "quic.h"
#include "spice_common.h"
#include "log.h"
/* ASCII "QUIC" */
#define QUIC_MAGIC 0x43495551

View File

@ -19,7 +19,7 @@
#ifndef _H_RING2
#define _H_RING2
#include "spice_common.h"
#include "log.h"
SPICE_BEGIN_DECLS

View File

@ -20,7 +20,6 @@
#endif
#include "rop3.h"
#include "spice_common.h"
typedef void (*rop3_with_pattern_handler_t)(pixman_image_t *d, pixman_image_t *s,
SpicePoint *src_pos, pixman_image_t *p,

View File

@ -1,31 +0,0 @@
/*
Copyright (C) 2009 Red Hat, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
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/>.
*/
#ifndef H_SPICE_COMMON
#define H_SPICE_COMMON
#include <stdio.h>
#include <stdint.h>
#include <time.h>
#include <stdlib.h>
#include <stddef.h>
#include <spice/macros.h>
#include "backtrace.h"
#include "log.h"
#endif