CAPROFAPI.h 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. //**************************************************************************
  2. //
  3. // Copyright 2005 ADVANCED MICRO DEVICES, INC. All Rights Reserved.
  4. //
  5. // This software and any related documentation (the 'Materials') are the
  6. // confidential proprietary information of AMD. Unless otherwise provided
  7. // in a software agreement specifically licensing the Materials, the Materials
  8. // are provided in confidence and may not to be distributed, modified, or
  9. // reproduced in whole or in part by any means.
  10. //
  11. // LIMITATION OF LIABILITY: THE MATERIALS ARE PROVIDED 'AS IS' WITHOUT ANY
  12. // EXPRESS OR IMPLIED WARRANTY OF ANY KIND, INCLUDING BUT NOT LIMITED TO
  13. // WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, TITLE, FITNESS FOR ANY
  14. // PARTICULAR PURPOSE, OR WARRANTIES ARISING FORM CONDUCT, COURSE OF DEALING,
  15. // OR USAGE OF TRADE. IN NO EVENT SHALL AMD OR ITS LICENSORS BE LIABLE FOR ANY
  16. // DAMAGES WHATSOEVER (INCLUDING,WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS,
  17. // BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OF OR
  18. // INABILITY TO USE THE MATERIALS, EVEN IF AMD HAS BEEN ADVISED OF THE
  19. // POSSIBILITY OF SUCH DAMAGES. BECAUSE SOME JURISDICTIONS PROHIBIT THE
  20. // EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES,
  21. // THE ABOVE LIMITATION MAY NOT APPLY TO YOU.
  22. //
  23. // AMD does not assume any responsibility for any errors which may appear in the
  24. // Materials nor any responsibility to support or update the
  25. // Materials. AMD retains the right to modify the Materials at any time,
  26. // without notice, and is not obligated to provide such modified Materials to
  27. // you.
  28. //
  29. // NO SUPPORT OBLIGATION: AMD is not obligated to furnish, support, or make any
  30. // further information, software, technical information, know-how, or show-how
  31. // available to you.
  32. //
  33. // U.S. GOVERNMENT RESTRICTED RIGHTS: The Materials are provided with
  34. // 'RESTRICTED RIGHTS.' Use, duplication, or disclosure by the Government is
  35. // subject to the restrictions as set forth in FAR 52.227-14 and DFAR
  36. // 252.227-7013, et seq., or its successor. Use of the Materials by the
  37. // Government constitutes acknowledgement of AMD's proprietary rights in them.
  38. // ============================================================================
  39. //
  40. ///////////////////////////////////////////////////////////////////////////////
  41. //
  42. // CAProfAPI.h 08-25-2004
  43. //
  44. ///////////////////////////////////////////////////////////////////////////////
  45. #ifndef _CAPROFAPI_H_
  46. #define _CAPROFAPI_H_
  47. #ifdef CAPROFAPI_EXPORTS
  48. #define CAPROFAPI __declspec(dllexport)
  49. #else
  50. #define CAPROFAPI __declspec(dllimport)
  51. #endif
  52. #define CAPROFAPICALL __cdecl
  53. #ifdef __cplusplus
  54. extern "C" {
  55. #endif
  56. ///////////////////////////////////////////////////////////////////////////////
  57. // CAProfPause()
  58. // Pause profiling if current profile is in profiling state. If current
  59. // profile is in other state, the function does not take any action.
  60. //
  61. ///////////////////////////////////////////////////////////////////////////////
  62. CAPROFAPI
  63. VOID CAPROFAPICALL CAProfPause(void);
  64. ///////////////////////////////////////////////////////////////////////////////
  65. // CAProfResume()
  66. // Resume profiling if and only if current profile is in pause state.
  67. //
  68. ///////////////////////////////////////////////////////////////////////////////
  69. CAPROFAPI
  70. VOID CAPROFAPICALL CAProfResume(void);
  71. #ifdef __cplusplus
  72. }
  73. #endif
  74. #endif _CAPROFAPI_H_