adsprpcd: Drop dependency on proprietary headers and fix build errors
Change-Id: Ibbcd009333337cd41f2e6bf70391914b75f8a3ba
This commit is contained in:
parent
994b076ef2
commit
572f42d66e
|
@ -3,8 +3,6 @@ cc_binary {
|
||||||
|
|
||||||
srcs: ["adsprpcd.c"],
|
srcs: ["adsprpcd.c"],
|
||||||
|
|
||||||
header_libs: ["libfastrpcshippable_headers"],
|
|
||||||
|
|
||||||
shared_libs: [
|
shared_libs: [
|
||||||
"liblog",
|
"liblog",
|
||||||
"libdl",
|
"libdl",
|
||||||
|
|
|
@ -31,17 +31,21 @@
|
||||||
#define VERIFY_PRINT_ERROR
|
#define VERIFY_PRINT_ERROR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define VERIFY_EPRINTF ALOGE
|
||||||
|
#define VERIFY_IPRINTF ALOGI
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "verify.h"
|
|
||||||
#include "AEEStdErr.h"
|
|
||||||
|
|
||||||
|
#include <log/log.h>
|
||||||
|
|
||||||
#ifndef ADSP_DEFAULT_LISTENER_NAME
|
#ifndef ADSP_DEFAULT_LISTENER_NAME
|
||||||
#define ADSP_DEFAULT_LISTENER_NAME "libadsp_default_listener.so"
|
#define ADSP_DEFAULT_LISTENER_NAME "libadsp_default_listener.so"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define AEE_ECONNREFUSED 0x72
|
||||||
|
|
||||||
typedef int (*adsp_default_listener_start_t)(int argc, char *argv[]);
|
typedef int (*adsp_default_listener_start_t)(int argc, char *argv[]);
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
|
@ -71,6 +75,5 @@ int main(int argc, char *argv[]) {
|
||||||
usleep(25000);
|
usleep(25000);
|
||||||
}
|
}
|
||||||
VERIFY_EPRINTF("audio adsp daemon exiting %x", nErr);
|
VERIFY_EPRINTF("audio adsp daemon exiting %x", nErr);
|
||||||
bail:
|
|
||||||
return nErr;
|
return nErr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue