blob: a7f22cf1c53ffdaa068f9b9c811ae7c1ce8ffd81 [file] [log] [blame]
hj.shaofe9d0022025-06-11 20:22:48 -07001/**
2* @file : gsw_sys_interface.h
3* @date : 2025-6-11
4* @copyright Copyright(C) 2022,Gosuncnwelink
5*/
6#ifndef __GSW_SYS_INTERFACE__H__
7#define __GSW_SYS_INTERFACE__H__
8
9/*********************************************************************************************/
10#include <stdio.h>
11#include <stdlib.h>
12#include <string.h>
13#include <unistd.h>
14#include <pthread.h>
15#include <stddef.h>
16#include "gsw_hal_errcode.h"
17
18
19/**
20* @brief start or restart ftp server
21* @param [in] cfg the ftp server config file
22* @retval GSW_HAL_SUCCESS is success\other is fail
23*/
24int gsw_sys_svr_ftp_start(const char *cfg);
25
26/**
27* @brief stop ftp server
28* @retval GSW_HAL_SUCCESS is success\other is fail
29*/
30int gsw_sys_svr_ftp_stop(void);
31
32/**
33* @brief start or restart sshserver
34* @param [in] cfg the sshserver config file
35* @retval GSW_HAL_SUCCESS is success\other is fail
36*/
37int gsw_sys_svr_ssh_start(const char *cfg);
38
39/**
40* @brief stop sshserver
41* @retval GSW_HAL_SUCCESS is success\other is fail
42*/
43int gsw_sys_svr_ssh_stop(void);
44
45/**
46* @brief restart syslog server
47* @param [in] log_lvl, range [emerg alert crit err warning notice info debug]
48* @retval GSW_HAL_SUCCESS is success\other is fail
49*/
50int gsw_sys_svr_syslog_restart(const char *log_lvl);
51
52
53#endif //__GSW_SYS_INTERFACE__H_