myo_service.cpp 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /*
  2. Copyright (c) 2014 Intel Corporation. All Rights Reserved.
  3. Redistribution and use in source and binary forms, with or without
  4. modification, are permitted provided that the following conditions
  5. are met:
  6. * Redistributions of source code must retain the above copyright
  7. notice, this list of conditions and the following disclaimer.
  8. * Redistributions in binary form must reproduce the above copyright
  9. notice, this list of conditions and the following disclaimer in the
  10. documentation and/or other materials provided with the distribution.
  11. * Neither the name of Intel Corporation nor the names of its
  12. contributors may be used to endorse or promote products derived
  13. from this software without specific prior written permission.
  14. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  15. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  16. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  17. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  18. HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  19. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  21. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  22. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  23. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  24. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  25. */
  26. #include "myo_service.h"
  27. #include "myo_version_asm.h"
  28. extern "C"
  29. {
  30. MYOACCESSAPI MyoError
  31. SYMBOL_VERSION (myoAcquire, 1) ()
  32. {
  33. MYOTRACE ("myoAcquire");
  34. assert (false);
  35. return MYO_ERROR;
  36. }
  37. MYOACCESSAPI MyoError
  38. SYMBOL_VERSION (myoRelease, 1) ()
  39. {
  40. MYOTRACE ("myoRelease");
  41. assert (false);
  42. return MYO_ERROR;
  43. }
  44. MYOACCESSAPI void
  45. SYMBOL_VERSION (myoSharedAlignedFree, 1) (void *ptr)
  46. {
  47. MYOTRACE ("myoSharedAlignedFree");
  48. assert (false);
  49. }
  50. MYOACCESSAPI void*
  51. SYMBOL_VERSION (myoSharedAlignedMalloc, 1) (size_t size,
  52. size_t alignment)
  53. {
  54. MYOTRACE ("myoSharedAlignedMalloc");
  55. assert (false);
  56. return 0;
  57. }
  58. MYOACCESSAPI void
  59. SYMBOL_VERSION (myoSharedFree, 1) (void *ptr)
  60. {
  61. MYOTRACE ("myoSharedFree");
  62. assert (false);
  63. }
  64. MYOACCESSAPI void*
  65. SYMBOL_VERSION (myoSharedMalloc, 1) (size_t size)
  66. {
  67. MYOTRACE ("myoSharedMalloc");
  68. assert (false);
  69. return 0;
  70. }
  71. MYOACCESSAPI MyoError
  72. SYMBOL_VERSION (myoiLibInit, 1) (void *args,
  73. void *init_func)
  74. {
  75. MYOTRACE ("myoiLibInit");
  76. assert (false);
  77. return MYO_ERROR;
  78. }
  79. MYOACCESSAPI void
  80. SYMBOL_VERSION (myoiLibFini, 1) ()
  81. {
  82. MYOTRACE ("myoiLibFini");
  83. assert (false);
  84. }
  85. MyoError
  86. SYMBOL_VERSION (myoiMicVarTableRegister, 1) (void *table,
  87. int num)
  88. {
  89. MYOTRACE ("myoiMicVarTableRegister");
  90. assert (false);
  91. return MYO_ERROR;
  92. }
  93. MYOACCESSAPI MyoError
  94. SYMBOL_VERSION (myoiRemoteFuncRegister, 1) (MyoiRemoteFuncType type,
  95. const char *name)
  96. {
  97. MYOTRACE ("myoiRemoteFuncRegister");
  98. /* Looks like we have nothing to do here. */
  99. return MYO_SUCCESS;
  100. }
  101. MyoError
  102. SYMBOL_VERSION (myoiTargetFptrTableRegister, 1) (void *table,
  103. int num,
  104. int ordered)
  105. {
  106. MYOTRACE ("myoiTargetFptrTableRegister");
  107. assert (false);
  108. return MYO_ERROR;
  109. }
  110. } // extern "C"