1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[session] enum remote_session_flags -> remote_session_flags_T

This commit is contained in:
Witold Filipczyk 2022-01-28 14:51:37 +01:00
parent 199f1c60ff
commit 4c159b33cf
2 changed files with 7 additions and 5 deletions

View File

@ -93,7 +93,7 @@ struct session_info {
INIT_LIST_OF(struct session, sessions);
enum remote_session_flags remote_session_flags;
remote_session_flags_T remote_session_flags;
static struct file_to_load *request_additional_file(struct session *,
@ -1096,10 +1096,10 @@ init_session(struct session *base_session, struct terminal *term,
}
static void
init_remote_session(struct session *ses, enum remote_session_flags *remote_ptr,
init_remote_session(struct session *ses, remote_session_flags_T *remote_ptr,
struct uri *uri)
{
enum remote_session_flags remote = *remote_ptr;
remote_session_flags_T remote = *remote_ptr;
if (remote & SES_REMOTE_CURRENT_TAB) {
goto_uri(ses, uri);
@ -1216,7 +1216,7 @@ decode_session_info(struct terminal *term, struct terminal_info *info)
{
int len = info->length;
struct session *base_session = NULL;
enum remote_session_flags remote = 0;
remote_session_flags_T remote = 0;
char *str;
switch (info->magic) {

View File

@ -51,6 +51,8 @@ enum remote_session_flags {
SES_REMOTE_SEARCH = 256,
};
typedef unsigned int remote_session_flags_T;
/** This is generic frame descriptor, meaningful mainly for ses_*_frame*(). */
struct frame {
LIST_HEAD(struct frame);
@ -256,7 +258,7 @@ struct session {
};
extern LIST_OF(struct session) sessions;
extern enum remote_session_flags remote_session_flags;
extern remote_session_flags_T remote_session_flags;
/** This returns a pointer to the current location inside of the given session.
* That's nice for encapsulation and already paid out once ;-). */