Lines Matching defs:blockrec

102 static int fs_read_glyphs ( FontPathElementPtr fpe, FSBlockDataPtr blockrec );
103 static int fs_read_list ( FontPathElementPtr fpe, FSBlockDataPtr blockrec );
105 FSBlockDataPtr blockrec );
122 FSBlockDataPtr blockrec );
389 FSBlockDataPtr blockrec,
411 blockrec = malloc(sizeof(FSBlockDataRec) + size);
412 if (!blockrec)
414 blockrec->data = (pointer) (blockrec + 1);
415 blockrec->client = client;
416 blockrec->sequenceNumber = -1;
417 blockrec->errcode = StillWorking;
418 blockrec->type = type;
419 blockrec->depending = 0;
420 blockrec->next = (FSBlockDataPtr) 0;
425 *prev = blockrec;
427 return blockrec;
433 FSBlockDataPtr blockrec;
435 for (blockrec = conn->blockedRequests; blockrec; blockrec = blockrec->next)
436 if (blockrec->errcode == StillWorking)
438 if (blockrec)
448 _fs_remove_block_rec(FSFpePtr conn, FSBlockDataPtr blockrec)
453 if (*prev == blockrec)
455 *prev = blockrec->next;
458 if (blockrec->type == FS_LOAD_GLYPHS)
460 FSBlockedGlyphPtr bglyph = (FSBlockedGlyphPtr)blockrec->data;
464 free(blockrec);
527 _fs_clean_aborted_blockrec(FSFpePtr conn, FSBlockDataPtr blockrec)
529 switch(blockrec->type) {
531 FSBlockedFontPtr bfont = (FSBlockedFontPtr)blockrec->data;
538 FSBlockedGlyphPtr bglyph = (FSBlockedGlyphPtr)blockrec->data;
550 binfo = (FSBlockedListInfoPtr) blockrec->data;
561 fs_abort_blockrec(FSFpePtr conn, FSBlockDataPtr blockrec)
563 _fs_clean_aborted_blockrec (conn, blockrec);
564 _fs_remove_block_rec (conn, blockrec);
715 fs_read_open_font(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
718 FSBlockedFontPtr bfont = (FSBlockedFontPtr) blockrec->data;
762 if (blockOrig != blockrec && blockOrig->type == FS_OPEN_FONT)
767 blockrec->depending = blockOrig->depending;
768 blockOrig->depending = blockrec;
788 * Reset the blockrec for the next reply
790 blockrec->sequenceNumber = bfont->queryInfoSequence;
854 fs_read_query_info(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
856 FSBlockedFontPtr bfont = (FSBlockedFontPtr) blockrec->data;
1000 fs_send_query_bitmaps (fpe, blockrec);
1007 * Reset the blockrec for the next reply
1009 blockrec->sequenceNumber = bfont->queryExtentsSequence;
1016 fs_read_extent_info(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
1019 FSBlockedFontPtr bfont = (FSBlockedFontPtr) blockrec->data;
1206 * Reset the blockrec for the next reply
1208 blockrec->sequenceNumber = bfont->queryBitmapsSequence;
1227 fs_do_open_font(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
1229 FSBlockedFontPtr bfont = (FSBlockedFontPtr) blockrec->data;
1240 err = fs_read_open_font(fpe, blockrec);
1254 err = fs_read_query_info(fpe, blockrec);
1257 err = fs_read_extent_info(fpe, blockrec);
1261 err = fs_read_glyphs(fpe, blockrec);
1273 while ((blockrec = blockrec->depending))
1275 bfont = (FSBlockedFontPtr) blockrec->data;
1388 FSBlockDataPtr blockrec;
1396 for (blockrec = conn->blockedRequests;
1397 blockrec;
1398 blockrec = blockrec->next)
1400 if (blockrec->sequenceNumber == rep->sequenceNumber)
1404 if (!blockrec)
1414 switch (blockrec->type) {
1416 blockrec->errcode = fs_do_open_font(fpe, blockrec);
1419 blockrec->errcode = fs_read_glyphs(fpe, blockrec);
1422 blockrec->errcode = fs_read_list(fpe, blockrec);
1425 blockrec->errcode = fs_read_list_info(fpe, blockrec);
1430 err = blockrec->errcode;
1433 while (blockrec)
1435 blockrec->errcode = err;
1436 if (client != blockrec->client)
1437 ClientSignal(blockrec->client);
1438 blockrec = blockrec->depending;
1479 FSBlockDataPtr blockrec;
1490 for (blockrec = conn->blockedRequests; blockrec; blockrec = blockrec->next)
1492 switch (blockrec->type) {
1494 bfont = (FSBlockedFontPtr) blockrec->data;
1496 blockrec->errcode,
1497 blockrec->sequenceNumber,
1505 blockrec->errcode, blockrec->sequenceNumber);
1509 blockrec->type,
1510 blockrec->errcode,
1511 blockrec->sequenceNumber);
1621 FSBlockDataPtr blockrec = NULL;
1677 blockrec = fs_new_block_rec(font->fpe, client, FS_OPEN_FONT);
1678 if (!blockrec)
1687 bfont = (FSBlockedFontPtr) blockrec->data;
1723 blockrec->sequenceNumber = conn->current_seq;
1751 err = blockrec->errcode;
1754 while (blockrec->errcode == StillWorking)
1758 blockrec->errcode = BadFontName;
1763 err = blockrec->errcode;
1769 _fs_remove_block_rec (conn, blockrec);
1775 fs_send_query_bitmaps(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
1778 FSBlockedFontPtr bfont = (FSBlockedFontPtr) blockrec->data;
1804 FSBlockDataPtr blockrec;
1812 for (blockrec = conn->blockedRequests; blockrec; blockrec = blockrec->next)
1814 if (blockrec->type == FS_OPEN_FONT && blockrec->client == client)
1816 err = blockrec->errcode;
1820 bfont = (FSBlockedFontPtr) blockrec->data;
1825 _fs_remove_block_rec (conn, blockrec);
1864 FSBlockDataPtr blockrec;
1867 for (blockrec = conn->blockedRequests; blockrec; blockrec = blockrec->next)
1869 if (blockrec->type == FS_OPEN_FONT)
1871 bfont = (FSBlockedFontPtr) blockrec->data;
1882 fs_read_glyphs(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
1884 FSBlockedGlyphPtr bglyph = (FSBlockedGlyphPtr) blockrec->data;
1885 FSBlockedFontPtr bfont = (FSBlockedFontPtr) blockrec->data;
1891 blockrec->data structures */
1958 if (blockrec->type == FS_LOAD_GLYPHS)
2004 if (blockrec->type == FS_OPEN_FONT ||
2049 if (blockrec->type == FS_OPEN_FONT)
2070 FSBlockDataPtr blockrec;
2076 blockrec = fs_new_block_rec(fpe, client, FS_LOAD_GLYPHS);
2077 if (!blockrec)
2079 blockedglyph = (FSBlockedGlyphPtr) blockrec->data;
2106 blockrec->sequenceNumber = conn->current_seq;
2159 FSBlockDataPtr blockrec;
2165 for (blockrec = conn->blockedRequests; blockrec; blockrec = blockrec->next)
2167 if (blockrec->type == FS_LOAD_GLYPHS)
2169 blockedglyph = (FSBlockedGlyphPtr) blockrec->data;
2173 if (blockrec->client == client)
2175 err = blockrec->errcode;
2179 _fs_remove_block_rec(conn, blockrec);
2182 /* We've found an existing LoadGlyphs blockrec for this
2184 blockrec for it now (which entails some complex
2192 else if (blockrec->type == FS_OPEN_FONT)
2195 bfont = (FSBlockedFontPtr) blockrec->data;
2203 if (blockrec->client == client)
2205 err = blockrec->errcode;
2210 _fs_remove_block_rec(conn, blockrec);
2215 /* We've found an existing OpenFont blockrec for this
2217 blockrec for it now (which entails some complex
2221 if (blockrec->errcode == StillWorking)
2324 /* Get rid of blockrec */
2335 fs_read_list(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
2338 FSBlockedListPtr blist = (FSBlockedListPtr) blockrec->data;
2393 FSBlockDataPtr blockrec;
2401 blockrec = fs_new_block_rec(fpe, client, FS_LIST_FONTS);
2402 if (!blockrec)
2404 blockedlist = (FSBlockedListPtr) blockrec->data;
2426 blockrec->sequenceNumber = conn->current_seq;
2437 FSBlockDataPtr blockrec;
2441 for (blockrec = conn->blockedRequests; blockrec; blockrec = blockrec->next)
2443 if (blockrec->type == FS_LIST_FONTS && blockrec->client == client)
2445 err = blockrec->errcode;
2448 _fs_remove_block_rec(conn, blockrec);
2461 fs_read_list_info(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
2463 FSBlockedListInfoPtr binfo = (FSBlockedListInfoPtr) blockrec->data;
2608 FSBlockDataPtr blockrec;
2616 blockrec = fs_new_block_rec(fpe, client, FS_LIST_WITH_INFO);
2617 if (!blockrec)
2620 binfo = (FSBlockedListInfoPtr) blockrec->data;
2643 blockrec->sequenceNumber = conn->current_seq;
2657 FSBlockDataPtr blockrec;
2662 for (blockrec = conn->blockedRequests; blockrec; blockrec = blockrec->next)
2663 if (blockrec->type == FS_LIST_WITH_INFO && blockrec->client == client)
2666 if (!blockrec)
2668 /* The only good reason for not finding a blockrec would be if
2677 binfo = (FSBlockedListInfoPtr) blockrec->data;
2692 err = blockrec->errcode;
2695 _fs_remove_block_rec(conn, blockrec);
2699 blockrec->errcode = StillWorking;
2716 FSBlockDataPtr blockrec,
2736 for (blockrec = conn->blockedRequests; blockrec; blockrec = blockrec->next)
2737 if (blockrec->client == client)
2740 if (!blockrec)
2744 if ((depending = blockrec->depending))
2746 blockrec->client = depending->client;
2747 blockrec->depending = depending->depending;
2748 blockrec = depending;
2750 fs_abort_blockrec(conn, blockrec);