gtk2/gdk/broadway/broadway-server.c
Alexander Larsson 0a808bea54 broadway: Separate out the server parts
This (shouldn't) change any behaviour, but it moves the
webserver parts to a separate file, making the broadway display file
smaller and preparing for later separating out the server to its own
process.
2012-12-20 00:00:16 +01:00

33 lines
482 B
C

#include <glib.h>
#include "gdkbroadway-server.h"
int
main (int argc, char *argv[])
{
GdkBroadwayServer *server;
GError *error;
GMainLoop *loop;
error = NULL;
server = _gdk_broadway_server_new (8080, &error);
if (server == NULL)
{
g_printerr ("%s\n", error->message);
return 1;
}
loop = g_main_loop_new (NULL, FALSE);
g_main_loop_run (loop);
return 0;
}
/* TODO: */
void
_gdk_broadway_events_got_input (BroadwayInputMsg *message)
{
}