X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fdlt%2Fdlt_common.h;h=be04e6898eb689fd4dfaecd810dc09041470cffb;hb=912c8f6887b6007c474ca6c1c3134c25936ab982;hp=4fb9cff37dd773ef63b6fa070904f97590b620b0;hpb=679529ce739a1d729f8c3515820fe9be98d68154;p=profile%2Fivi%2Fdlt-daemon.git diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h index 4fb9cff..be04e68 100755 --- a/include/dlt/dlt_common.h +++ b/include/dlt/dlt_common.h @@ -174,6 +174,13 @@ #define LOG_DAEMON (3<<3) #endif +enum { + DLT_LOG_TO_CONSOLE=0, + DLT_LOG_TO_SYSLOG=1, + DLT_LOG_TO_FILE=2, + DLT_LOG_DROPPED=3 +}; + /** * The standard TCP Port used for DLT daemon */ @@ -478,6 +485,7 @@ typedef struct uint32_t service_id; /**< service ID */ uint8_t status; /**< reponse status */ uint8_t overflow; /**< overflow status */ + uint32_t overflow_counter; /**< overflow counter */ } PACKED DltServiceMessageBufferOverflowResponse; typedef struct @@ -489,6 +497,40 @@ typedef struct } PACKED DltServiceGetSoftwareVersionResponse; /** + * The structure of the DLT Service Unregister Context. + */ +typedef struct +{ + uint32_t service_id; /**< service ID */ + uint8_t status; /**< reponse status */ + char apid[DLT_ID_SIZE]; /**< application id */ + char ctid[DLT_ID_SIZE]; /**< context id */ + char comid[DLT_ID_SIZE]; /**< communication interface */ +} PACKED DltServiceUnregisterContext; + +/** + * The structure of the DLT Service Connection Info + */ +typedef struct +{ + uint32_t service_id; /**< service ID */ + uint8_t status; /**< reponse status */ + uint8_t state; /**< new state */ + char comid[DLT_ID_SIZE]; /**< communication interface */ +} PACKED DltServiceConnectionInfo; + +/** + * The structure of the DLT Service Timezone + */ +typedef struct +{ + uint32_t service_id; /**< service ID */ + uint8_t status; /**< reponse status */ + int32_t timezone; /**< Timezone in seconds */ + uint8_t isdst; /**< Is daylight saving time */ +} PACKED DltServiceTimezone; + +/** * Structure to store filter parameters. * ID are maximal four characters. Unused values are filled with zeros. * If every value as filter is valid, the id should be empty by having only zero values. @@ -572,6 +614,11 @@ typedef struct int size; } DltBufferBlockHead; +#define DLT_MESSAGE_ERROR_OK 0 +#define DLT_MESSAGE_ERROR_UNKNOWN -1 +#define DLT_MESSAGE_ERROR_SIZE -2 +#define DLT_MESSAGE_ERROR_CONTENT -3 + #ifdef __cplusplus extern "C" { @@ -1208,6 +1255,11 @@ extern "C" */ int dlt_message_argument_print(DltMessage *msg,uint32_t type_info,uint8_t **ptr,int32_t *datalength,char *text,int textlength,int byteLength,int verbose); + /** + * Check environment variables. + */ + void dlt_check_envvar(); + #ifdef __cplusplus } #endif