NetSurf
Data Structures | Enumerations | Functions | Variables
login.c File Reference
#include "amiga/os3support.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <proto/exec.h>
#include <proto/intuition.h>
#include <proto/utility.h>
#include <proto/window.h>
#include <proto/layout.h>
#include <proto/string.h>
#include <proto/button.h>
#include <proto/label.h>
#include <classes/window.h>
#include <gadgets/layout.h>
#include <gadgets/string.h>
#include <gadgets/button.h>
#include <images/label.h>
#include <reaction/reaction_macros.h>
#include "utils/messages.h"
#include "utils/nsurl.h"
#include "netsurf/mouse.h"
#include "netsurf/window.h"
#include "netsurf/url_db.h"
#include "amiga/gui.h"
#include "amiga/libs.h"
#include "amiga/login.h"
#include "amiga/misc.h"
#include "amiga/object.h"
#include "amiga/utf8.h"
Include dependency graph for login.c:

Go to the source code of this file.

Data Structures

struct  gui_login_window
 

Enumerations

enum  {
  AMI_LOGIN_MSG_HOST, AMI_LOGIN_MSG_REALM, AMI_LOGIN_MSG_USER, AMI_LOGIN_MSG_PASS,
  AMI_LOGIN_MSG_LOGIN, AMI_LOGIN_MSG_CANCEL, AMI_LOGIN_MSG_MAX
}
 
enum  {
  OID_L_MAIN = 0, GID_L_MAIN, GID_L_USER, GID_L_PASS,
  GID_L_LOGIN, GID_L_CANCEL, GID_L_LAST
}
 

Functions

static BOOL ami_401login_event (void *w)
 
static void ami_401login_close (void *w)
 
nserror gui_401login_open (nsurl *url, const char *realm, const char *username, const char *password, nserror(*cb)(const char *username, const char *password, void *pw), void *cbpw)
 login window request. More...
 
static void ami_401login_login (struct gui_login_window *lw)
 

Variables

static const struct ami_win_event_table ami_login_table
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
AMI_LOGIN_MSG_HOST 
AMI_LOGIN_MSG_REALM 
AMI_LOGIN_MSG_USER 
AMI_LOGIN_MSG_PASS 
AMI_LOGIN_MSG_LOGIN 
AMI_LOGIN_MSG_CANCEL 
AMI_LOGIN_MSG_MAX 

Definition at line 54 of file login.c.

◆ anonymous enum

anonymous enum
Enumerator
OID_L_MAIN 
GID_L_MAIN 
GID_L_USER 
GID_L_PASS 
GID_L_LOGIN 
GID_L_CANCEL 
GID_L_LAST 

Definition at line 64 of file login.c.

Function Documentation

◆ ami_401login_close()

static void ami_401login_close ( void *  w)
static

Definition at line 216 of file login.c.

References ami_gui_win_list_remove(), AMI_LOGIN_MSG_MAX, ami_utf8_free(), gui_login_window::cb, gui_login_window::cbpw, gui_login_window::host, gui_login_window::messages, nsurl_unref(), gui_login_window::objects, OID_L_MAIN, gui_login_window::realm, and gui_login_window::url.

Referenced by ami_401login_event(), and ami_401login_login().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_401login_event()

static BOOL ami_401login_event ( void *  w)
static

Definition at line 266 of file login.c.

References ami_401login_close(), ami_401login_login(), GID_L_CANCEL, GID_L_LOGIN, gui_login_window::objects, OID_L_MAIN, and result.

Here is the call graph for this function:

◆ ami_401login_login()

static void ami_401login_login ( struct gui_login_window lw)
static

Definition at line 237 of file login.c.

References ami_401login_close(), ami_to_utf8_easy(), ami_utf8_free(), amiga_warn_user(), gui_login_window::cb, gui_login_window::cbpw, GID_L_PASS, GID_L_USER, and gui_login_window::objects.

Referenced by ami_401login_event().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gui_401login_open()

nserror gui_401login_open ( nsurl url,
const char *  realm,
const char *  username,
const char *  password,
nserror(*)(const char *username, const char *password, void *pw)  cb,
void *  cbpw 
)

login window request.

Definition at line 96 of file login.c.

Variable Documentation

◆ ami_login_table

const struct ami_win_event_table ami_login_table
static
Initial value:
= {
}
static BOOL ami_401login_event(void *w)
Definition: login.c:266
static void ami_401login_close(void *w)
Definition: login.c:216

Definition at line 91 of file login.c.