summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSathishkumar2013-07-30 00:50:14 -0500
committerSaurabh Bipin Chandra2013-08-27 16:12:42 -0500
commitf71e00630af23f1dd7d2a0df87d9b5b524c823a8 (patch)
tree956d57896e212423862da2031aabaa50ba2d7f01 /dce_priv.h
parent17668bcb5a1f7f9db2ba225b1825bc55365c3e66 (diff)
downloadhardware-ti-libdce-f71e00630af23f1dd7d2a0df87d9b5b524c823a8.tar.gz
hardware-ti-libdce-f71e00630af23f1dd7d2a0df87d9b5b524c823a8.tar.xz
hardware-ti-libdce-f71e00630af23f1dd7d2a0df87d9b5b524c823a8.zip
[GLP] Libdce linux implementation
make install & libdce.c issue fix 1. make install has been fixed. libdce.h will be installed in /usr/include, libdce.so files in /usr/lib and libdce.pc in /usr/lib/pkgconfig on using --prefix=/usr. By default the prefix is /usr/local. 2. init and deinit calls are removed from libdce.h 3. dce_set_fd and dce_get_fd calls are implemented in libdce.c 4. configure.ac checks for libmmrpc and makefile.am modified to link with libmmrpc. configure.ac and makefile.am modified 1. Codec_engine,xdctolls,framework_components,ipc,xdctools and xdaias paths needs to be exported. Configure.ac checks for the exported paths. 2. Makefile.am is modified to have the exported paths in the include directories list for the compiler. Modifications done after review 1. Comments added in memplugin_linux.c. White spaces removed manually and cleaned up libdce.c, memplugin.h. dce_priv.h is modified to have File and line number in the logs. linux/dce.h file is removed. Libdce modifications for linux Linux Specific libdce functionality added. 1. memplugin calls specific to linux are added in memplugin_linux.c 2. Error and debug logs implementation for linux in dce_priv.h 3. xll and wayland specific files are moved to linux folder Change-Id: Ib41e6a52d902376cdabbb939dee7585944720d92 Signed-off-by: Saurabh Bipin Chandra <a0131926@ti.com> Signed-off-by: Sathishkumar <x0203598@ti.com>
Diffstat (limited to 'dce_priv.h')
-rw-r--r--dce_priv.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/dce_priv.h b/dce_priv.h
index dea43d4..7f2624f 100644
--- a/dce_priv.h
+++ b/dce_priv.h
@@ -33,8 +33,11 @@
33#ifndef __DCE_PRIV_H__ 33#ifndef __DCE_PRIV_H__
34#define __DCE_PRIV_H__ 34#define __DCE_PRIV_H__
35 35
36
37#ifdef BUILDOS_QNX
36#include <sys/slog.h> 38#include <sys/slog.h>
37 39
40
38/********************* MACROS ************************/ 41/********************* MACROS ************************/
39/***************** TRACE MACROS *********************/ 42/***************** TRACE MACROS *********************/
40/* Need to make it OS specific and support different trace levels */ 43/* Need to make it OS specific and support different trace levels */
@@ -44,7 +47,16 @@
44#define DEBUG(FMT, ...) do { \ 47#define DEBUG(FMT, ...) do { \
45 slogf(42, _SLOG_DEBUG2, "%s:%d:\t%s\tdebug: " FMT, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__); \ 48 slogf(42, _SLOG_DEBUG2, "%s:%d:\t%s\tdebug: " FMT, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__); \
46} while( 0 ) 49} while( 0 )
50#endif
47 51
52#ifdef BUILDOS_LINUX
53#define ERROR(FMT, ...) do { \
54 printf("%s:%d:\t%s\t Error: "FMT,__FILE__, __LINE__,__FUNCTION__ ,##__VA_ARGS__); \
55}while( 0 )
56#define DEBUG(FMT, ...) do { \
57 printf("%s:%d:\t%s\t Debug: "FMT,__FILE__, __LINE__,__FUNCTION__ ,##__VA_ARGS__); \
58}while( 0 )
59#endif
48 60
49/***************** ASSERT MACROS *********************/ 61/***************** ASSERT MACROS *********************/
50#define _ASSERT_AND_EXECUTE(_COND_, _ERRORCODE_, _EXPR_) do { \ 62#define _ASSERT_AND_EXECUTE(_COND_, _ERRORCODE_, _EXPR_) do { \