#ifndef NETSITE_H
#define NETSITE_H
#ifndef NOINTNSAPI
#define INTNSAPI
#endif
#ifndef BASE_SYSTEMS_H
#include "../util/systems.h"
#endif
#define MAGNUS_VERSION_STRING INTsystem_version()
#define MAGNUS_VERSION PRODUCT_VERSION_ID
#ifndef PUBLIC_NETSITE_H
#include "../public/nsapi.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
NSAPI_PUBLIC void InitThreadMallocKey(
void);
NSAPI_PUBLIC void system_set_temp_dir(
const char *dir);
NSAPI_PUBLIC const char *system_get_temp_dir(
void);
NSAPI_PUBLIC char *INTdns_guess_domain(
char * hname);
#ifdef INTNSAPI
NSAPI_PUBLIC char *INTsystem_version(
void);
NSAPI_PUBLIC void *INTsystem_malloc(
int size);
NSAPI_PUBLIC void *INTsystem_calloc(
int size);
NSAPI_PUBLIC void *INTsystem_realloc(
void *ptr,
int size);
NSAPI_PUBLIC void INTsystem_free(
void *ptr);
NSAPI_PUBLIC char *INTsystem_strdup(
const char *ptr);
#define PERM_MALLOC(size) INTsystem_malloc_perm(size)
NSAPI_PUBLIC void *INTsystem_malloc_perm(
int size);
#define PERM_CALLOC(size) INTsystem_calloc_perm(size)
NSAPI_PUBLIC void *INTsystem_calloc_perm(
int size);
#define PERM_REALLOC(ptr, size) INTsystem_realloc_perm(ptr, size)
NSAPI_PUBLIC void *INTsystem_realloc_perm(
void *ptr,
int size);
#define PERM_FREE(ptr) INTsystem_free_perm(ptr)
NSAPI_PUBLIC void INTsystem_free_perm(
void *ptr);
#define PERM_STRDUP(ptr) INTsystem_strdup_perm(ptr)
NSAPI_PUBLIC char *INTsystem_strdup_perm(
const char *ptr);
NSAPI_PUBLIC int INTgetThreadMallocKey(
void);
NSAPI_PUBLIC pool_handle_t *INTsystem_pool(
void);
NSAPI_PUBLIC void INTsystem_setnewhandler(
void);
#endif
int system_close(
int fd);
#ifdef __cplusplus
}
#endif
#ifdef INTNSAPI
#define dns_guess_domain INTdns_guess_domain
#define system_malloc INTsystem_malloc
#define system_calloc INTsystem_calloc
#define system_realloc INTsystem_realloc
#define system_free INTsystem_free
#define system_strdup INTsystem_strdup
#define system_malloc_perm INTsystem_malloc_perm
#define system_calloc_perm INTsystem_calloc_perm
#define system_realloc_perm INTsystem_realloc_perm
#define system_free_perm INTsystem_free_perm
#define system_strdup_perm INTsystem_strdup_perm
#define getThreadMallocKey INTgetThreadMallocKey
#define system_pool INTsystem_pool
#define system_setnewhandler INTsystem_setnewhandler
#endif
#ifndef HTTPS_ADMSERV
#define HTTPS_ADMSERV "https-admserv"
#endif
#endif