XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Functions
main.cpp File Reference
#include <stdint.h>
#include <_xeneva.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <setjmp.h>
#include <chitralekha.h>
#include <widgets/base.h>
#include <widgets/button.h>
#include <widgets/textbox.h>
#include <widgets/window.h>
#include <keycode.h>
#include <sys/_keproc.h>
#include <sys/_kefile.h>
#include <sys/socket.h>
#include <sys/netdb.h>
#include <arpa/inet.h>
#include <sys/iocodes.h>
#include <ctype.h>
#include "css.h"
#include "dom.h"
#include "layout.h"
#include "js.h"
#include "pngdec.h"
#include "svgdec.h"
#include <nanojpg.h>
#include <new>
#include <pthread.h>
#include <https.h>
Include dependency graph for main.cpp:

Classes

struct  ns_out
 
struct  NsCapWork
 

Macros

#define NS_URL_MAX   2048
 
#define NS_BODY_MAX   (256 * 1024)
 
#define NS_RAW_MAX   (1400 * 1024)
 
#define NS_PAGE_LINES   22
 
#define NS_KEY_LEFT   0xE04B
 
#define NS_KEY_RIGHT   0xE04D
 
#define NS_KEY_UP   0xE048
 
#define NS_KEY_DOWN   0xE050
 
#define NS_KEY_HOME   0xE047
 
#define NS_KEY_END   0xE04F
 
#define NS_KEY_PGUP   0xE049
 
#define NS_KEY_PGDN   0xE051
 
#define NS_CSS_MAX   (192 * 1024)
 
#define NS_IMG_MAX   32
 
#define NS_LINK_MAX   48
 
#define NS_JS_COL_LOG   0xffaaaaaau
 
#define NS_JS_COL_WARN   0xffe0a030u
 
#define NS_JS_COL_ERR   0xffff5050u
 
#define NS_FRAG_MAX   8192
 
#define NS_CSS_STACK   24
 

Functions

void xe_heap_check (const char *tag)
 
int NsJpegDecode (const unsigned char *data, size_t len, unsigned **out_px, int *out_w, int *out_h)
 
const uint32_t * NsInlineSvgLookup (NsCssNode *node, int *w, int *h, int *iw, int *ih)
 
const uint32_t * NsImageLookup (const char *src, int *w, int *h, int *iw, int *ih)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ NS_BODY_MAX

#define NS_BODY_MAX   (256 * 1024)

◆ NS_CSS_MAX

#define NS_CSS_MAX   (192 * 1024)

◆ NS_CSS_STACK

#define NS_CSS_STACK   24

◆ NS_FRAG_MAX

#define NS_FRAG_MAX   8192

◆ NS_IMG_MAX

#define NS_IMG_MAX   32

◆ NS_JS_COL_ERR

#define NS_JS_COL_ERR   0xffff5050u

◆ NS_JS_COL_LOG

#define NS_JS_COL_LOG   0xffaaaaaau

◆ NS_JS_COL_WARN

#define NS_JS_COL_WARN   0xffe0a030u

◆ NS_KEY_DOWN

#define NS_KEY_DOWN   0xE050

◆ NS_KEY_END

#define NS_KEY_END   0xE04F

◆ NS_KEY_HOME

#define NS_KEY_HOME   0xE047

◆ NS_KEY_LEFT

#define NS_KEY_LEFT   0xE04B

◆ NS_KEY_PGDN

#define NS_KEY_PGDN   0xE051

◆ NS_KEY_PGUP

#define NS_KEY_PGUP   0xE049

◆ NS_KEY_RIGHT

#define NS_KEY_RIGHT   0xE04D

◆ NS_KEY_UP

#define NS_KEY_UP   0xE048

◆ NS_LINK_MAX

#define NS_LINK_MAX   48

◆ NS_PAGE_LINES

#define NS_PAGE_LINES   22

◆ NS_RAW_MAX

#define NS_RAW_MAX   (1400 * 1024)

◆ NS_URL_MAX

#define NS_URL_MAX   2048

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ NsImageLookup()

const uint32_t * NsImageLookup ( const char *  src,
int *  w,
int *  h,
int *  iw,
int *  ih 
)

◆ NsInlineSvgLookup()

const uint32_t * NsInlineSvgLookup ( NsCssNode *  node,
int *  w,
int *  h,
int *  iw,
int *  ih 
)

◆ NsJpegDecode()

int NsJpegDecode ( const unsigned char *  data,
size_t  len,
unsigned **  out_px,
int *  out_w,
int *  out_h 
)

◆ xe_heap_check()

void xe_heap_check ( const char *  tag)

NetSurf bootstrap browser for XenevaOS.

Staging frontend, not upstream NetSurf core yet: a Chitralekha window with a URL bar + Go button, HTTP/1.1 fetch (TLS on https://), and crude HTML-to-text rendering into a textbox.

Variable Documentation

◆ a

size_t a

◆ b

size_t b

◆ h

int h

◆ have

int have

◆ href

char href[320]

◆ w

int w

◆ x

int x

◆ y

int y