Browse Source

reset slog.h change

tags/v1.2.0
taoxiangdong 3 years ago
parent
commit
3b7ac7d954
1 changed files with 0 additions and 25 deletions
  1. +0
    -25
      third_party/fwkacllib/inc/toolchain/slog.h

+ 0
- 25
third_party/fwkacllib/inc/toolchain/slog.h View File

@@ -18,9 +18,7 @@
#define D_SYSLOG_H_ #define D_SYSLOG_H_


#ifdef __cplusplus #ifdef __cplusplus
#ifndef LOG_CPP
extern "C" { extern "C" {
#endif
#endif // __cplusplus #endif // __cplusplus


#ifndef LINUX #ifndef LINUX
@@ -107,7 +105,6 @@ extern "C" {
#define SECURITY_LOG_MASK (0x00100000) #define SECURITY_LOG_MASK (0x00100000)
#define RUN_LOG_MASK (0x01000000) #define RUN_LOG_MASK (0x01000000)
#define OPERATION_LOG_MASK (0x10000000) #define OPERATION_LOG_MASK (0x10000000)
#define RESERVERD_LENGTH 52


typedef struct tagDCODE { typedef struct tagDCODE {
const char *cName; const char *cName;
@@ -119,18 +116,6 @@ typedef struct tagKV {
char *value; char *value;
} KeyValue; } KeyValue;


typedef enum {
APPLICATION = 0,
SYSTEM
} ProcessType;

typedef struct {
ProcessType type;
unsigned int pid;
unsigned int deviceId;
char reserved[RESERVERD_LENGTH];
} LogAttr;

/** /**
* @ingroup slog * @ingroup slog
* *
@@ -243,14 +228,6 @@ DLL_EXPORT int dlog_setlevel(int moduleId, int level, int enableEvent);
*/ */
DLL_EXPORT int CheckLogLevel(int moduleId, int logLevel); DLL_EXPORT int CheckLogLevel(int moduleId, int logLevel);


/**
* @ingroup slog
* @brief DlogSetAttr: set log attr, default pid is 0, default device id is 0, default process type is APPLICATION
* @param [in]logAttr: attr info, include pid(must be larger than 0), process type and device id(chip ID)
* @return: 0: SUCCEED, others: FAILED
*/
DLL_EXPORT int DlogSetAttr(LogAttr logAttr);

/** /**
* @ingroup slog * @ingroup slog
* @brief dlog_error: print error log * @brief dlog_error: print error log
@@ -390,8 +367,6 @@ void DlogInner(int moduleId, int level, const char *fmt, ...);
void DlogWithKVInner(int moduleId, int level, KeyValue *pstKVArray, int kvNum, const char *fmt, ...); void DlogWithKVInner(int moduleId, int level, KeyValue *pstKVArray, int kvNum, const char *fmt, ...);


#ifdef __cplusplus #ifdef __cplusplus
#ifndef LOG_CPP
} }
#endif // LOG_CPP
#endif // __cplusplus #endif // __cplusplus
#endif // D_SYSLOG_H_ #endif // D_SYSLOG_H_

Loading…
Cancel
Save