Gong Ke | 497c4c2 | 2020-03-20 10:15:42 +0800 | [diff] [blame] | 1 | /** |
| 2 | * \file |
| 3 | * \brief Utility functions |
| 4 | */ |
| 5 | |
Pengfei Liu | b473423 | 2020-01-17 18:25:10 +0800 | [diff] [blame] | 6 | #ifndef _DVR_UTILS_H_ |
| 7 | #define _DVR_UTILS_H_ |
| 8 | |
| 9 | #ifdef __cplusplus |
| 10 | extern "C" { |
| 11 | #endif |
| 12 | |
| 13 | /**\brief Write a string cmd to a file |
Gong Ke | 497c4c2 | 2020-03-20 10:15:42 +0800 | [diff] [blame] | 14 | * \param[in] name File name |
| 15 | * \param[in] cmd String command |
Pengfei Liu | b473423 | 2020-01-17 18:25:10 +0800 | [diff] [blame] | 16 | * \return DVR_SUCCESS On success |
| 17 | * \return Error code On failure |
| 18 | */ |
| 19 | int DVR_FileEcho(const char *name, const char *cmd); |
Gong Ke | 497c4c2 | 2020-03-20 10:15:42 +0800 | [diff] [blame] | 20 | |
Pengfei Liu | b473423 | 2020-01-17 18:25:10 +0800 | [diff] [blame] | 21 | #ifdef __cplusplus |
| 22 | } |
| 23 | #endif |
| 24 | |
| 25 | #endif /*END _DVR_UTILS_H_*/ |