X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=libs%2Fshttpd%2Fcompat_rtems.h;fp=libs%2Fshttpd%2Fcompat_rtems.h;h=0000000000000000000000000000000000000000;hb=dec33c63afafabf83c3039e916725cac6faef9b3;hp=8d31e46abb867cb3a658a3af6c1c6301ec7f6ade;hpb=9b22dd53fe62e312c1647310b7ec43aa127090af;p=fms.git diff --git a/libs/shttpd/compat_rtems.h b/libs/shttpd/compat_rtems.h deleted file mode 100644 index 8d31e46..0000000 --- a/libs/shttpd/compat_rtems.h +++ /dev/null @@ -1,60 +0,0 @@ -/** - * @file rtems/rtems-shttpd.h - */ - -#ifndef _rtems_rtems_webserver_h -#define _rtems_rtems_webserver_h - -#include "shttpd.h" - -#include -#include -#include -#include - -/* RTEMS is an Real Time Embedded operating system, for operation in hardware. - It does not have SSL or CGI support, as it does not have dynamic library - loading or sub-processes. */ -#define EMBEDDED -#define NO_SSL -#define NO_CGI - -#define DIRSEP '/' -#define O_BINARY 0 -#define ERRNO errno - -/* RTEMS version is Thread Safe */ -#define InitializeCriticalSection(x) rtems_semaphore_create( \ - rtems_build_name('H','T','P','X'), \ - 1, /* Not Held Yet.*/ \ - RTEMS_FIFO | \ - RTEMS_BINARY_SEMAPHORE, \ - 0, \ - x); -#define EnterCriticalSection(x) rtems_semaphore_obtain(*(x),RTEMS_WAIT,RTEMS_NO_TIMEOUT) -#define LeaveCriticalSection(x) rtems_semaphore_release(*(x)) - - - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void (*rtems_shttpd_addpages)(struct shttpd_ctx *ctx); -typedef void (*rtems_shttpd_init)(void); - -rtems_status_code rtems_initialize_webserver(rtems_task_priority initial_priority, - rtems_unsigned32 stack_size, - rtems_mode initial_modes, - rtems_attribute attribute_set, - rtems_shttpd_init init_callback, - rtems_shttpd_addpages addpages_callback, - char *webroot - ); -void rtems_terminate_webserver(void); -int rtems_webserver_ok(void); - -#ifdef __cplusplus -} -#endif -#endif