NetSurf
Macros | Functions
corestrings.h File Reference

Useful interned string pointers (interface). More...

#include <libwapcaplet/libwapcaplet.h>
#include "utils/errors.h"
#include "utils/corestringlist.h"
Include dependency graph for corestrings.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FILE_SCHEME_PREFIX   "file:///"
 File url prefix. More...
 
#define FILE_SCHEME_PREFIX_LEN   8
 File url prefix length. More...
 
#define CORESTRING_LWC_VALUE(NAME, VALUE)    extern lwc_string *corestring_lwc_##NAME
 
#define CORESTRING_DOM_VALUE(NAME, VALUE)    extern struct dom_string *corestring_dom_##NAME
 
#define CORESTRING_NSURL(NAME, VALUE)    extern struct nsurl *corestring_nsurl_##NAME
 

Functions

nserror corestrings_init (void)
 Initialise the core string tables. More...
 
nserror corestrings_fini (void)
 free resources of core string tables. More...
 

Detailed Description

Useful interned string pointers (interface).

Definition in file corestrings.h.

Macro Definition Documentation

◆ CORESTRING_DOM_VALUE

#define CORESTRING_DOM_VALUE (   NAME,
  VALUE 
)     extern struct dom_string *corestring_dom_##NAME

Definition at line 54 of file corestrings.h.

◆ CORESTRING_LWC_VALUE

#define CORESTRING_LWC_VALUE (   NAME,
  VALUE 
)     extern lwc_string *corestring_lwc_##NAME

Definition at line 52 of file corestrings.h.

◆ CORESTRING_NSURL

#define CORESTRING_NSURL (   NAME,
  VALUE 
)     extern struct nsurl *corestring_nsurl_##NAME

Definition at line 56 of file corestrings.h.

◆ FILE_SCHEME_PREFIX

#define FILE_SCHEME_PREFIX   "file:///"

File url prefix.

Definition at line 30 of file corestrings.h.

◆ FILE_SCHEME_PREFIX_LEN

#define FILE_SCHEME_PREFIX_LEN   8

File url prefix length.

Definition at line 33 of file corestrings.h.

Function Documentation

◆ corestrings_fini()

nserror corestrings_fini ( void  )

free resources of core string tables.

Returns
NSERROR_OK on success else appropriate error code

Definition at line 40 of file corestrings.c.

References NSERROR_OK.

Referenced by corestrings_init(), and netsurf_exit().

Here is the caller graph for this function:

◆ corestrings_init()

nserror corestrings_init ( void  )

Initialise the core string tables.

Returns
NSERROR_OK on success else appropriate error code

Definition at line 78 of file corestrings.c.

References corestrings_fini(), and NSERROR_OK.

Referenced by netsurf_init().

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