SET(CMAKE_C_FLAGS_CCOV "${CMAKE_C_FLAGS_RELEASE} --coverage")
SET(CMAKE_CXX_FLAGS_CCOV "${CMAKE_CXX_FLAGS_RELEASE} --coverage")
-ADD_DEFINITIONS("-fPIC")
-
# Set compiler warning flags
ADD_DEFINITIONS("-Werror") # Make all warnings into errors.
ADD_DEFINITIONS("-Wall") # Generate all warnings
#ifndef __DRM_TIZEN_ERROR_H__
#define __DRM_TIZEN_ERROR_H__
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
#define TADC_SUCCESS 1 // SUCCESS
// TADC Error Message Define
#define TADC_GETDUID_ERROR 0x0611 // Get IMEI Error
#define TADC_LICENSE_DUID_MISMATCH 0x806
#define TADC_LICENSE_UNKNOWN_ERROR 0x807
-#ifdef __cplusplus
-}
-#endif
-
#endif // __DRM_TIZEN_ERROR_H__
#ifndef __DRM_TIZEN_MID_H__
#define __DRM_TIZEN_MID_H__
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#define DRM_TAPPS_SECURE_LOG(FMT, ARG...) SECURE_SLOGI(FMT, ##ARG)
#define DRM_TAPPS_SECURE_EXCEPTION(FMT, ARG...) SECURE_SLOGE(FMT, ##ARG)
-#ifdef __cplusplus
-}
-#endif
-
#endif /* __DRM_TIZEN_MID_H__*/
#define DRM_TAPPS_API_TIME()
#endif /* __DRM_TAPPS_API_TIME_PROFILING__ */
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* Define EXPORT_API */
#ifndef EXPORT_API
#define EXPORT_API __attribute__((visibility("default")))
return 1;
}
}
-
-#ifdef __cplusplus
-}
-#endif
#include "TadcTypes.h"
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
class CPointerArray
{
protected:
inline void RemoveAll() { m_nNumOfData = 0; }
};
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
#endif // !defined(AFX_CPOINTERARRAY_H__AB67E4BE_A233_4E3E_B257_9830D90326EE__INCLUDED_)
#endif /* __CPOINTERARRAY_H__ */
* @file DUIDGenerator.h
*/
-#ifdef __cplusplus
-extern "C" {
-#endif
-
int get_duid(char **duid);
-
-#ifdef __cplusplus
-}
-#endif
#ifndef DRMTDCSVC_H
#define DRMTDCSVC_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include "TADC_Core.h"
//DrmTdcDHInfo Structure Free
bool DrmTdcDHInfoFree(int idx);
-#ifdef __cplusplus
-}
-#endif
-
#endif
#ifndef __DTAPPS_BASE64_H__
#define __DTAPPS_BASE64_H__
-#ifdef __cplusplus
- extern "C" {
-#endif
-
#include "drm_intf_tapps.h"
BOOL DTappsB64Encode(unsigned char* in, int in_size, unsigned char* out, int out_size);
int DTappsB64Decode(unsigned char* in, int in_size, unsigned char* out, int& out_size);
-#ifdef __cplusplus
-}
-#endif
-
#endif /*__DTAPPS_BASE64_H__ */
#ifndef __DTAPPS_HMAC_H__
#define __DTAPPS_HMAC_H__
-#ifdef __cplusplus
- extern "C" {
-#endif
-
#include "drm_intf_tapps.h"
void DTappsCalHMACSHA1(unsigned char* key,int key_len,unsigned char* msg,size_t msglen,unsigned char *md,unsigned int *md_len);
int DTappsGetDeviceKey(unsigned char **pDevKey,unsigned int *DevKeyLen);
void DTappsFreeDeviceKey(unsigned char **pDevKey);
-#ifdef __cplusplus
-}
-#endif
-
#endif /*__DTAPPS_HMAC_H__ */
#ifndef __DTAPPS_RIGHTS_H__
#define __DTAPPS_RIGHTS_H__
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include "drm_intf_tapps.h"
#define DTAPPS_NAME_SIZE 512
BOOL DTapps_RIGHTS_SELECT_ONE(const char* cid, DTAPPS_RIGHTS_ROW* row);
-#ifdef __cplusplus
-}
-#endif
-
#endif /*__DTAPPS_RIGHTS_H__ */
#ifndef __DTAPPS_SQLITE_DB_H__
#define __DTAPPS_SQLITE_DB_H__
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include "TADC_Core.h"
#include "drm_intf_tapps.h"
BOOL DTapps_DB_Install(const char* sql_query);
BOOL DTapps_Read_DB(const char* sql_query, TAPPSSqliteSelectTable* select_table);
-#ifdef __cplusplus
-}
-#endif
-
#endif /*__DTAPPS_SQLITE_DB_H__ */
#ifndef __DTAPPS_TIME_H__
#define __DTAPPS_TIME_H__
-#ifdef __cplusplus
- extern "C" {
-#endif
-
#include "drm_intf_tapps.h"
BOOL DTappsDtTmStr2Sec(unsigned char *time_str,time_t *TotalSec);
BOOL DTappsDtTmStr2StrucTm(unsigned char *time_str,struct tm *time_fmt);
BOOL DTappsGetSecureTime(time_t* seconds);
-#ifdef __cplusplus
-}
-#endif
-
#endif /*__DTAPPS_TIME_H__ */
#ifndef __DRM_INTF_TAPPS_H__
#define __DRM_INTF_TAPPS_H__
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#define DTAPPS_AES_UNWRAP_KEY AES_unwrap_key
/*************************************************************************************************************/
-#ifdef __cplusplus
-}
-#endif
-
#endif /* __DRM_INTF_TAPPS_H__ */