index c8b1eb9f93cf4a42cba88981e847c803836e8430..7d6fee3cc95aa340e853935fbe3189c15917b50d 100644 (file)
/*
- * Copyright (c) 2012, Texas Instruments Incorporated
+ * Copyright (c) 2012-2014, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
/*
* ======== LAD_client.c ========
*/
-#include <Std.h>
+#include <ti/ipc/Std.h>
#include <stdio.h>
#include <stdlib.h>
#include <ladclient.h>
#include <_lad.h>
-static Bool verbose = FALSE;
+
+/* traces in this file are controlled via _LAD_Client_verbose */
+Bool _LAD_Client_verbose = FALSE;
+#define verbose _LAD_Client_verbose
typedef struct _LAD_ClientInfo {
Bool connectedToLAD; /* connection status */
static LAD_Status initWrappers(Void);
static Bool openCommandFIFO(Void);
+
+#if defined(IPC_BUILDOS_ANDROID)
+static pthread_mutex_t modGate = PTHREAD_RECURSIVE_MUTEX_INITIALIZER;
+#else
// only _NP (non-portable) type available in CG tools which we're using
static pthread_mutex_t modGate = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
-// static pthread_mutex_t modGate = PTHREAD_RECURSIVE_MUTEX_INITIALIZER;
+#endif
/*