Martijn Coenen | 1b7297c | 2016-05-19 09:23:46 +0200 | [diff] [blame] | 1 | //#include <dlfcn.h> |
| 2 | //#include <errno.h> |
| 3 | //#include <stdio.h> |
| 4 | //#include <iostream> |
| 5 | //#include <functional> |
| 6 | //#include "hidl_client.h" |
| 7 | |
| 8 | #include "MathImplementations.h" |
| 9 | #include "BnMath.h" |
| 10 | #include "BpMath.h" |
| 11 | |
| 12 | namespace android { |
| 13 | namespace hardware { |
| 14 | |
| 15 | status_t MathImplementation::sayHi() |
| 16 | { |
| 17 | printf("HiWorld\n"); |
| 18 | return 0; |
| 19 | } |
| 20 | |
| 21 | status_t MathImplementation::doCalc( |
| 22 | int i, std::function<void(int j, int k)> callback) |
| 23 | { |
| 24 | printf("doCalc: passed i %d\n", i); |
| 25 | |
| 26 | callback(i+i, i*i); |
| 27 | return 0; |
| 28 | } |
| 29 | |
| 30 | } // namespace hardware |
| 31 | } // namespace android |