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) bool Network::AppendScreenshot(NetworkUpdatePeerInfo *pi)
{ {
NetworkUpdateDataStore *dsu; NetworkUpdateRegisterData *dsu;
NetworkUpdate *ud; NetworkUpdate *ud;
SDL_Surface *scr; SDL_Surface *scr;
struct ds_data *data; struct ds_data *data;
@ -970,8 +970,8 @@ bool Network::AppendScreenshot(NetworkUpdatePeerInfo *pi)
if (!data) if (!data)
goto out_png; goto out_png;
ud = InitNetworkUpdate(this->ud, REGISTER_DATA, ud = InitNetworkUpdate(this->ud, REGISTER_DATA,
sizeof(NetworkUpdate) + sizeof(NetworkUpdateDataStore) + sz); sizeof(NetworkUpdate) + sizeof(NetworkUpdateRegisterData) + sz);
dsu = (NetworkUpdateDataStore *)ud->data; dsu = (NetworkUpdateRegisterData *)ud->data;
dsu->key = data->key; dsu->key = data->key;
dsu->metadata = data->metadata; dsu->metadata = data->metadata;
memcpy(dsu->data, data->data, sz); memcpy(dsu->data, data->data, sz);

View File

@ -107,7 +107,7 @@ struct NetworkUpdatePingAck
uint8 data[]; /* Only used for bandwidth ping/acks */ uint8 data[]; /* Only used for bandwidth ping/acks */
}; };
struct NetworkUpdateDataStore struct NetworkUpdateRegisterData
{ {
uint32_t key; uint32_t key;
uint32_t metadata; /* Type etc */ uint32_t metadata; /* Type etc */