Embedded Xinu Operating System
An ongoing research project and educational operating system.
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
Functions
httpConfigPage.c File Reference
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <ether.h>
#include <ipv4.h>
#include <http.h>
#include <network.h>
#include <nvram.h>
#include <string.h>

Functions

int postConfig (struct http *webptr)
 
int setupConfig (struct http *webptr)
 
int outputConfig (device *devptr, int flashSuccess)
 

Function Documentation

int outputConfig ( device *  devptr,
int  flashSuccess 
)

Finalize the configuration page and output it to the HTTP device.

Parameters
devptrpointer to the current device for httpWrite calls
int postConfig ( struct http *  webptr)

Interpret ond act on an HTTP POST request of the config.html page.

Parameters
webptrpointer to the HTTP device
int setupConfig ( struct http *  webptr)

Acquire memory for various configuration char pointers in structure.

Parameters
webptrpointer to the HTTP device
Returns
OK if allocation went properly, otherwise SYSERR