Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.0 KiB

  1. /****************************************************************************/
  2. // abaafn.h
  3. //
  4. // Function prototypes for BA API functions.
  5. //
  6. // Copyright (C) 1996-2000 Microsoft Corporation
  7. /****************************************************************************/
  8. void RDPCALL BA_Init(void);
  9. void RDPCALL BA_UpdateShm(void);
  10. #ifdef __cplusplus
  11. // Include common function defs
  12. #include <abacom.h>
  13. /****************************************************************************/
  14. // BA_Term
  15. /****************************************************************************/
  16. void RDPCALL BA_Term(void)
  17. {
  18. }
  19. /****************************************************************************/
  20. // BA_SyncUpdatesNow
  21. //
  22. // Performs necessary work when a sync is required (reset the bounds).
  23. /****************************************************************************/
  24. void RDPCALL BA_SyncUpdatesNow(void)
  25. {
  26. baResetBounds = TRUE;
  27. DCS_TriggerUpdateShmCallback();
  28. }
  29. /****************************************************************************/
  30. // BA_GetBounds
  31. //
  32. // Returns the current SDA rects and resets the list.
  33. /****************************************************************************/
  34. void RDPCALL BA_GetBounds(PRECTL pRects, unsigned *pNumRects)
  35. {
  36. BACopyBounds(pRects, pNumRects);
  37. BAResetBounds();
  38. }
  39. /****************************************************************************/
  40. // BA_BoundsAreWaiting
  41. //
  42. // Returns whether there are any accumulated bounding rectangles.
  43. /****************************************************************************/
  44. BOOL RDPCALL BA_BoundsAreWaiting(void)
  45. {
  46. return (m_pShm->ba.rectsUsed > 0);
  47. }
  48. /****************************************************************************/
  49. // BA_AddRect
  50. //
  51. // Adds a rect into the Screen Data Area.
  52. /****************************************************************************/
  53. void RDPCALL BA_AddRect(PRECTL pRect)
  54. {
  55. BAAddRectList(pRect);
  56. }
  57. #endif // __cplusplus