1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-13 05:43:37 -04:00

[network] enum connection_basic_state -> connection_basic_state_T

This commit is contained in:
Witold Filipczyk 2022-01-28 16:25:40 +01:00
parent ec6cfcaf22
commit 2cada21757
2 changed files with 5 additions and 3 deletions

View File

@ -116,13 +116,15 @@ enum connection_basic_state {
S_FSP_OPEN_SESSION_UNKN = -100900,
};
typedef int connection_basic_state_T;
/** Either an ELinks internal status code or an error code from the
* system. Use connection_state() or connection_state_for_errno()
* to construct objects of this type. */
struct connection_state {
/** An ELinks internal status code, or ::S_ERRNO if this
* structure holds a system error instead. */
enum connection_basic_state basic;
connection_basic_state_T basic;
/** When #basic is ::S_ERRNO, syserr is the saved value of
* errno. Otherwise, syserr should be 0. */
@ -133,7 +135,7 @@ char *get_state_message(struct connection_state state, struct terminal *term);
void done_state_message(void);
static inline struct connection_state
connection_state(enum connection_basic_state basic)
connection_state(connection_basic_state_T basic)
{
struct connection_state state = {};

View File

@ -74,7 +74,7 @@ struct module fsp_protocol_module = struct_module(
* - If an error occurs, the child process writes "text/x-error"
* without newline to stderr, and an error code and a newline to
* stdout. The error code is either "S" followed by errno or "I"
* followed by enum connection_basic_state. In particular, EPERM
* followed by connection_basic_state_T. In particular, EPERM
* causes the parent process to prompt for username and password.
* (In this, fsplib differs from libsmbclient, which uses EACCES if
* authentication fails.)