Skip to content
Snippets Groups Projects
Commit 75679dc9 authored by Frediano Ziglio's avatar Frediano Ziglio Committed by Frediano Ziglio
Browse files

dispatcher: Use IS-A relationship for Dispatcher hierarchy

parent ea0d056b
No related merge requests found
......@@ -101,7 +101,7 @@ libserver_la_SOURCES = \
dcc.h \
dcc-private.h \
dcc-send.cpp \
dispatcher.c \
dispatcher.cpp \
dispatcher.h \
display-channel.cpp \
display-channel.h \
......
......@@ -309,7 +309,7 @@ static int dispatcher_handle_single_read(Dispatcher *dispatcher)
*/
static void dispatcher_handle_event(int fd, int event, void *opaque)
{
Dispatcher *dispatcher = opaque;
Dispatcher *dispatcher = (Dispatcher *) opaque;
while (dispatcher_handle_single_read(dispatcher)) {
}
......
......@@ -50,10 +50,8 @@ typedef struct DispatcherPrivate DispatcherPrivate;
* activity and should call dispatcher_handle_recv_read() to process incoming
* messages.
*/
struct Dispatcher
struct Dispatcher: public GObject
{
GObject parent;
DispatcherPrivate *priv;
};
......
......@@ -37,10 +37,8 @@ typedef struct MainDispatcher MainDispatcher;
typedef struct MainDispatcherClass MainDispatcherClass;
typedef struct MainDispatcherPrivate MainDispatcherPrivate;
struct MainDispatcher
struct MainDispatcher: public Dispatcher
{
Dispatcher parent;
MainDispatcherPrivate *priv;
};
......
......@@ -61,7 +61,7 @@ spice_server_sources = [
'dcc.h',
'dcc-private.h',
'dcc-send.cpp',
'dispatcher.c',
'dispatcher.cpp',
'dispatcher.h',
'display-channel.cpp',
'display-channel.h',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment