|
XenevaOS
|
#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>
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[]) |
| #define NS_BODY_MAX (256 * 1024) |
| #define NS_CSS_MAX (192 * 1024) |
| #define NS_CSS_STACK 24 |
| #define NS_FRAG_MAX 8192 |
| #define NS_IMG_MAX 32 |
| #define NS_JS_COL_ERR 0xffff5050u |
| #define NS_JS_COL_LOG 0xffaaaaaau |
| #define NS_JS_COL_WARN 0xffe0a030u |
| #define NS_KEY_DOWN 0xE050 |
| #define NS_KEY_END 0xE04F |
| #define NS_KEY_HOME 0xE047 |
| #define NS_KEY_LEFT 0xE04B |
| #define NS_KEY_PGDN 0xE051 |
| #define NS_KEY_PGUP 0xE049 |
| #define NS_KEY_RIGHT 0xE04D |
| #define NS_KEY_UP 0xE048 |
| #define NS_LINK_MAX 48 |
| #define NS_PAGE_LINES 22 |
| #define NS_RAW_MAX (1400 * 1024) |
| #define NS_URL_MAX 2048 |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
| const uint32_t * NsImageLookup | ( | const char * | src, |
| int * | w, | ||
| int * | h, | ||
| int * | iw, | ||
| int * | ih | ||
| ) |
| int NsJpegDecode | ( | const unsigned char * | data, |
| size_t | len, | ||
| unsigned ** | out_px, | ||
| int * | out_w, | ||
| int * | out_h | ||
| ) |
| 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.
| size_t a |
| size_t b |
| int h |
| int have |
| char href[320] |
| int w |
| int x |
| int y |