--- a/render_remote.c Tue Jun 17 19:08:05 2008 +0300
+++ b/render_remote.c Thu Jun 26 01:32:56 2008 +0300
@@ -9,8 +9,9 @@
#include <event2/event_struct.h>
#include <event2/bufferevent.h>
-#include "render_struct.h" // for render_cmd_build
+#include "render_struct.h"
#include "render_remote.h"
+#include "render_net.h"
#include "common.h"
struct render_remote {
@@ -21,22 +22,8 @@
struct event ev_connect, ev_data;
struct bufferevent *bev_data;
- #pragma pack(push)
- #pragma pack(1)
-
- struct {
- u_int8_t mode;
-
- u_int32_t img_w;
- u_int32_t img_h;
-
- double x1;
- double y1;
- double x2;
- double y2;
- } render_cmd;
-
- #pragma pack(pop)
+ // the command
+ struct render_cmd render_cmd;
// have we sent the command yet?
int cmd_sent;