Commit 717cc18e authored by W. Michael Petullo's avatar W. Michael Petullo

Change dmap_structure_set_predicted_size to dmap_structure_increase_by_predicted_size

Signed-off-by: W. Michael Petullo's avatarW. Michael Petullo <mike@flyn.org>
parent 6b59d167
......@@ -1738,8 +1738,8 @@ _dmap_share_databases (DMAPShare *share,
/* 2: */
mb.mlcl = dmap_structure_add (adbs, DMAP_CC_MLCL);
dmap_structure_set_predicted_size (adbs, dmap_structure_get_size(adbs) + size);
dmap_structure_set_predicted_size (mb.mlcl, dmap_structure_get_size(mb.mlcl) + size);
dmap_structure_increase_by_predicted_size (adbs, size);
dmap_structure_increase_by_predicted_size (mb.mlcl, size);
/* 3: */
soup_message_set_status (message, SOUP_STATUS_OK);
......
......@@ -794,7 +794,7 @@ dmap_structure_get_size (GNode *structure)
void
dmap_structure_set_predicted_size (GNode *structure, guint size)
dmap_structure_increase_by_predicted_size (GNode *structure, guint size)
{
((DMAPStructureItem *) structure->data)->size = size;
((DMAPStructureItem *) structure->data)->size += size;
}
......@@ -210,7 +210,7 @@ GNode *dmap_structure_find_node (GNode *structure,
void dmap_structure_print (GNode *structure);
void dmap_structure_destroy (GNode *structure);
guint dmap_structure_get_size (GNode *structure);
void dmap_structure_set_predicted_size (GNode *structure, guint size);
void dmap_structure_increase_by_predicted_size (GNode *structure, guint size);
typedef enum {
DMAP_TYPE_BYTE = 0x0001,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment