blob: e986ebc14151cebd9a73623ae1c84a8f6d85cb2d [file] [log] [blame]
/**
* @file : gsw_sys_interface.h
* @brief : system service ctrl
* @date : 2022-07-05
* @author : Wind
* @version : v1.0
* @copyright Copyright(C) 2022,Geely
*/
#ifndef __GSW_SYS_INTERFACE_H__
#define __GSW_SYS_INTERFACE_H__
#include <stdint.h>
#include "gsw_hal_errcode.h"
/**
* @brief start or restart ftp server
* @param [in] cfg the ftp server config file
* @retval 0: success
* @retval other: fail
*/
int gsw_sys_svr_ftp_start(const char *cfg);
/**
* @brief stop ftp server
* @retval 0: success
* @retval other: fail
*/
int gsw_sys_svr_ftp_stop(void);
/**
* @brief start or restart ssh server
* @param [in] cfg the ssh server config file
* @retval 0: success
* @retval other: fail
*/
int gsw_sys_svr_ssh_start(const char *cfg);
/**
* @brief stop ssh server
* @retval 0: success
* @retval other: fail
*/
int gsw_sys_svr_ssh_stop(void);
/**
* @brief restart syslog server
* @param [in] log_lvl, range [emerg alert crit err warning notice info debug]
* @retval 0: success
* @retval other: fail
*/
int gsw_sys_svr_syslog_restart(const char *log_lvl);
#endif // __GSW_SYS_INTERFACE_H__