blob: 96cac26406defd151051e487e1868915a761e458 [file] [log] [blame]
Martijn Coenen1b7297c2016-05-19 09:23:46 +02001//#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
12namespace android {
13namespace hardware {
14
15status_t MathImplementation::sayHi()
16{
17 printf("HiWorld\n");
18 return 0;
19}
20
21status_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