public:
uid_t dcm_uid;
- static DcmDbUtils *getInstance();
+ static DcmDbUtils *getInstance(void);
int _dcm_svc_db_connect(uid_t uid);
int _dcm_svc_db_disconnect();
int _dcm_svc_db_get_scan_image_list_by_path(GList **image_list, bool mmc_mounted, const char *file_path);
#define ERR_BUF_LENGHT 256
#define dcm_stderror(fmt) do { \
char dcm_stderror_buf[ERR_BUF_LENGHT] = {0, }; \
- strerror_r(errno, dcm_stderror_buf, ERR_BUF_LENGHT); \
- dcm_error(fmt" : standard error= [%s]", dcm_stderror_buf); \
+ LOGE(fmt" : standard error= [%s]", strerror_r(errno, dcm_stderror_buf, ERR_BUF_LENGHT)); \
} while (0)
#define DCM_CHECK_VAL(expr, val) dcm_retvm_if(!(expr), val, "Invalid parameter, return ERROR code!")
GSource *main_thread_quit_timer;
bool scan_thread_working;
- static DcmMainSvc *getInstance();
+ static DcmMainSvc *getInstance(void);
void dcmServiceStartjobs();
void dcmServiceFinishjobs();
int waitScanThreadReady();
#define ERR_BUF_LENGHT 256
#define dcm_stderror(fmt) do { \
char dcm_stderror_buf[ERR_BUF_LENGHT] = {0, }; \
- strerror_r(errno, dcm_stderror_buf, ERR_BUF_LENGHT); \
- dcm_error(fmt" : standard error= [%s]", dcm_stderror_buf); \
+ LOGE(fmt" : standard error= [%s]", strerror_r(errno, dcm_stderror_buf, ERR_BUF_LENGHT)); \
} while (0)
#define DCM_CHECK_VAL(expr, val) dcm_retvm_if(!(expr), val , "Invalid parameter, return ERROR code!")
dcm_debug("Send message type: %d", msg_type);
DcmIpcMsg send_msg;
- int err = 0;
int sock = -1;
if (socket_fd < 0) {