Rename data packets

This commit is contained in:
simon.kagstrom 2010-02-07 09:22:37 +00:00
parent 3c24a37ac3
commit 6e3a5d74e0
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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 */