moved out sonic help text

This commit is contained in:
Fufu Fang 2021-06-03 01:05:43 +01:00
parent ead94af1c6
commit a30315ced0
No known key found for this signature in database
GPG Key ID: 0F6BB5EF6F8BB729
2 changed files with 33 additions and 3 deletions

View File

@ -245,7 +245,13 @@ HTTPDirFS options:\n\
for HTTP range requests\n\
--insecure_tls Disable licurl TLS certificate verification by\n\
setting CURLOPT_SSL_VERIFYHOST to 0\n\
\n\
\n");
}
void print_sonic_help()
{
fprintf(stderr,
"\n\
For mounting a Airsonic / Subsonic server:\n\
--sonic-username The username for your Airsonic / Subsonic server\n\
--sonic-password The password for your Airsonic / Subsonic server\n\
@ -255,4 +261,4 @@ HTTPDirFS options:\n\
using the insecure username / hex encoded password\n\
scheme\n\
\n");
}
}

View File

@ -1,20 +1,44 @@
#ifndef MAIN_H
#define MAIN_H
/**
* \brief Configuration path
*/
extern char *config_path;
/**
* \brief Parse the configuration file
*/
void parse_config_file(char ***argv, int *argc);
/**
* \brief Parse argument list
*/
int parse_arg_list(int argc, char **argv, char ***fuse_argv, int *fuse_argc);
/**
* \brief add an argument to an argv array
* \brief Add an argument to an argv array
* \details This is basically how you add a string to an array of string
*/
void add_arg(char ***fuse_argv_ptr, int *fuse_argc, char *opt_string);
/**
* \brief Print short help information
*/
void print_help(char *program_name, int long_help);
/**
* \brief Print version number
*/
void print_version();
/**
* \brief Print long help information
*/
void print_long_help();
/**
* \brief Print Sonic server related help information
*/
void print_sonic_help();
#endif