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:
parent
199f1c60ff
commit
4c159b33cf
@ -93,7 +93,7 @@ struct session_info {
|
|||||||
|
|
||||||
INIT_LIST_OF(struct session, sessions);
|
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 *,
|
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
|
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)
|
struct uri *uri)
|
||||||
{
|
{
|
||||||
enum remote_session_flags remote = *remote_ptr;
|
remote_session_flags_T remote = *remote_ptr;
|
||||||
|
|
||||||
if (remote & SES_REMOTE_CURRENT_TAB) {
|
if (remote & SES_REMOTE_CURRENT_TAB) {
|
||||||
goto_uri(ses, uri);
|
goto_uri(ses, uri);
|
||||||
@ -1216,7 +1216,7 @@ decode_session_info(struct terminal *term, struct terminal_info *info)
|
|||||||
{
|
{
|
||||||
int len = info->length;
|
int len = info->length;
|
||||||
struct session *base_session = NULL;
|
struct session *base_session = NULL;
|
||||||
enum remote_session_flags remote = 0;
|
remote_session_flags_T remote = 0;
|
||||||
char *str;
|
char *str;
|
||||||
|
|
||||||
switch (info->magic) {
|
switch (info->magic) {
|
||||||
|
@ -51,6 +51,8 @@ enum remote_session_flags {
|
|||||||
SES_REMOTE_SEARCH = 256,
|
SES_REMOTE_SEARCH = 256,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef unsigned int remote_session_flags_T;
|
||||||
|
|
||||||
/** This is generic frame descriptor, meaningful mainly for ses_*_frame*(). */
|
/** This is generic frame descriptor, meaningful mainly for ses_*_frame*(). */
|
||||||
struct frame {
|
struct frame {
|
||||||
LIST_HEAD(struct frame);
|
LIST_HEAD(struct frame);
|
||||||
@ -256,7 +258,7 @@ struct session {
|
|||||||
};
|
};
|
||||||
|
|
||||||
extern LIST_OF(struct session) sessions;
|
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.
|
/** This returns a pointer to the current location inside of the given session.
|
||||||
* That's nice for encapsulation and already paid out once ;-). */
|
* That's nice for encapsulation and already paid out once ;-). */
|
||||||
|
Loading…
Reference in New Issue
Block a user