blob: 8974fbf41455b26152cbabff0427e60f98620e08
1 | #include <stdio.h> |
2 | #include <string.h> |
3 | #include <sys/stat.h> |
4 | #include <fcntl.h> |
5 | #include <pthread.h> |
6 | #include "CBlobDeviceE2prom.h" |
7 | #include "CBlobDevice.h" |
8 | #include "CTvLog.h" |
9 | |
10 | #define LOG_TAG "CBlobDevice" |
11 | |
12 | |
13 | CBlobDevice::CBlobDevice() |
14 | { |
15 | m_dev_path[0] = '\0'; |
16 | } |
17 | |
18 | CBlobDevice::~CBlobDevice() |
19 | { |
20 | } |
21 | |
22 | int CBlobDevice::IsFileExist(const char *file_name) |
23 | { |
24 | struct stat tmp_st; |
25 | |
26 | return stat(file_name, &tmp_st); |
27 | } |
28 |