Initial web server implementation
This commit is contained in:
@@ -37,6 +37,7 @@
|
|||||||
#include "common/utils/websrv/websrv_noforms.h"
|
#include "common/utils/websrv/websrv_noforms.h"
|
||||||
#include <common/utils/assertions.h>
|
#include <common/utils/assertions.h>
|
||||||
|
|
||||||
|
|
||||||
#define MAX_LAYER 8
|
#define MAX_LAYER 8
|
||||||
|
|
||||||
/* replacement for xforms function used in xforms softscope */
|
/* replacement for xforms function used in xforms softscope */
|
||||||
@@ -53,6 +54,7 @@ typedef struct {
|
|||||||
FL_OBJECT *websrv_fl_add_xyplot(int t, FL_Coord x, FL_Coord y, FL_Coord w, FL_Coord h, const char *label)
|
FL_OBJECT *websrv_fl_add_xyplot(int t, FL_Coord x, FL_Coord y, FL_Coord w, FL_Coord h, const char *label)
|
||||||
{
|
{
|
||||||
FL_OBJECT *obj;
|
FL_OBJECT *obj;
|
||||||
|
|
||||||
obj = (FL_OBJECT *)calloc(1, sizeof(FL_OBJECT));
|
obj = (FL_OBJECT *)calloc(1, sizeof(FL_OBJECT));
|
||||||
AssertFatal((obj != NULL), "Cannot allocate scope object for %s\n", (label!=NULL)?label:"??");
|
AssertFatal((obj != NULL), "Cannot allocate scope object for %s\n", (label!=NULL)?label:"??");
|
||||||
if (obj) {
|
if (obj) {
|
||||||
|
|||||||
@@ -1726,7 +1726,6 @@ FL_EXPORT int fl_get_drawmode(void)
|
|||||||
#define fl_set_linestyle fl_linestyle
|
#define fl_set_linestyle fl_linestyle
|
||||||
#define fl_set_drawmode fl_drawmode
|
#define fl_set_drawmode fl_drawmode
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Interfaces
|
* Interfaces
|
||||||
*/
|
*/
|
||||||
@@ -2260,6 +2259,7 @@ FL_EXPORT FL_HANDLE_CANVAS fl_add_canvas_handler(FL_OBJECT *ob, int ev, FL_HANDL
|
|||||||
return NULL;
|
return NULL;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
FL_EXPORT Window fl_get_canvas_id(FL_OBJECT *ob)
|
FL_EXPORT Window fl_get_canvas_id(FL_OBJECT *ob)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -2430,6 +2430,7 @@ FL_EXPORT FL_XYPLOT_SYMBOL fl_set_xyplot_symbol(FL_OBJECT *ob, int id, FL_XYPLOT
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif /* FL_XYPLOT_H */
|
#endif /* FL_XYPLOT_H */
|
||||||
|
|
||||||
/*----------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------*/
|
||||||
/* new functions for interfacing with webserver */
|
/* new functions for interfacing with webserver */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user