mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-13 03:30:01 +00:00
red-channel-capabilities: Removed unused stuff from RedChannelCapabilities
Not used anymore Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
6e58ea3369
commit
78193dff16
@ -17,12 +17,11 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <glib.h>
|
||||
#include <common/macros.h>
|
||||
|
||||
#include "red-channel-capabilities.h"
|
||||
|
||||
GType red_channel_capabilities_type;
|
||||
|
||||
void red_channel_capabilities_init(RedChannelCapabilities *dest,
|
||||
const RedChannelCapabilities *caps)
|
||||
{
|
||||
@ -42,24 +41,3 @@ void red_channel_capabilities_reset(RedChannelCapabilities *caps)
|
||||
g_free(caps->caps);
|
||||
memset(caps, 0, sizeof(*caps));
|
||||
}
|
||||
|
||||
static RedChannelCapabilities *red_channel_capabilities_dup(const RedChannelCapabilities *caps)
|
||||
{
|
||||
RedChannelCapabilities *res = g_new(RedChannelCapabilities, 1);
|
||||
red_channel_capabilities_init(res, caps);
|
||||
return res;
|
||||
}
|
||||
|
||||
static void red_channel_capabilities_free(RedChannelCapabilities *caps)
|
||||
{
|
||||
red_channel_capabilities_reset(caps);
|
||||
g_free(caps);
|
||||
}
|
||||
|
||||
SPICE_CONSTRUCTOR_FUNC(red_channel_capabilities_construct)
|
||||
{
|
||||
red_channel_capabilities_type =
|
||||
g_boxed_type_register_static("RedChannelCapabilities",
|
||||
(GBoxedCopyFunc) red_channel_capabilities_dup,
|
||||
(GBoxedFreeFunc) red_channel_capabilities_free);
|
||||
}
|
||||
|
||||
@ -20,9 +20,9 @@
|
||||
#define RED_CHANNEL_CAPABILITIES_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <glib-object.h>
|
||||
#include <spice/macros.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
SPICE_BEGIN_DECLS
|
||||
|
||||
/* Holds channel capabilities.
|
||||
* Channel capabilities are composed by a common part
|
||||
@ -42,10 +42,6 @@ void red_channel_capabilities_init(RedChannelCapabilities *dest,
|
||||
* All resources are freed by this function. */
|
||||
void red_channel_capabilities_reset(RedChannelCapabilities *caps);
|
||||
|
||||
/* GObject type that can be used to box RedChannelCapabilities */
|
||||
extern GType red_channel_capabilities_type;
|
||||
#define RED_TYPE_CHANNEL_CAPABILITIES red_channel_capabilities_type
|
||||
|
||||
G_END_DECLS
|
||||
SPICE_END_DECLS
|
||||
|
||||
#endif /* RED_CHANNEL_CAPABILITIES_H_ */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user