From 6e3a5d74e0f904ef8412430e2c1b3999a1e91679 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sun, 7 Feb 2010 09:22:37 +0000 Subject: [PATCH] Rename data packets --- Src/Network.cpp | 6 +++--- Src/Network.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Src/Network.cpp b/Src/Network.cpp index d46a1c7..ef25d09 100644 --- a/Src/Network.cpp +++ b/Src/Network.cpp @@ -950,7 +950,7 @@ bool Network::DecodeUpdate(C64Display *display, uint8 *js, MOS6581 *dst) bool Network::AppendScreenshot(NetworkUpdatePeerInfo *pi) { - NetworkUpdateDataStore *dsu; + NetworkUpdateRegisterData *dsu; NetworkUpdate *ud; SDL_Surface *scr; struct ds_data *data; @@ -970,8 +970,8 @@ bool Network::AppendScreenshot(NetworkUpdatePeerInfo *pi) if (!data) goto out_png; ud = InitNetworkUpdate(this->ud, REGISTER_DATA, - sizeof(NetworkUpdate) + sizeof(NetworkUpdateDataStore) + sz); - dsu = (NetworkUpdateDataStore *)ud->data; + sizeof(NetworkUpdate) + sizeof(NetworkUpdateRegisterData) + sz); + dsu = (NetworkUpdateRegisterData *)ud->data; dsu->key = data->key; dsu->metadata = data->metadata; memcpy(dsu->data, data->data, sz); diff --git a/Src/Network.h b/Src/Network.h index 36301ec..b9d868d 100644 --- a/Src/Network.h +++ b/Src/Network.h @@ -107,7 +107,7 @@ struct NetworkUpdatePingAck uint8 data[]; /* Only used for bandwidth ping/acks */ }; -struct NetworkUpdateDataStore +struct NetworkUpdateRegisterData { uint32_t key; uint32_t metadata; /* Type etc */