Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

httpserv.h File Reference


Detailed Description

MP3 Player HTTP GUI.

 *
 * $Log$
 *
 * 

Definition in file httpserv.h.

#include "webradio.h"
#include "shoutcast.h"
#include "mp3player.h"

Include dependency graph for httpserv.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

__BEGIN_DECLS int HttpServerStart (void)
 HTTP Server Start.
void HttpSetStationInfo (int idx, STATIONINFO *sip)
void HttpSetReceiverInfo (RECEIVERINFO *rip)
void HttpSetPlayerInfo (PLAYERINFO *pip)

Variables

int h_timevalid


Function Documentation

__BEGIN_DECLS int HttpServerStart void   ) 
 

HTTP Server Start.

Definition at line 324 of file httpserv.c.

00326 {
00327     int i;
00328 
00329     /*
00330      * Register our device for the file system.
00331      */
00332     NutRegisterDevice(&MY_FSDEV, 0, 0);
00333 
00334 #ifdef MY_HTTPROOT
00335     /* Register root path. */
00336     printf("Registering HTTP root '" MY_HTTPROOT "'...");
00337     if (NutRegisterHttpRoot(MY_HTTPROOT)) {
00338         puts("failed");
00339         for (;;);
00340     }
00341     puts("OK");
00342 #endif
00343 
00344     /*
00345      * Register our CGIs.
00346      */
00347     NutRegisterCgi("info.cgi", CgiInfo);
00348     NutRegisterCgi("control.cgi", CgiControl);
00349 
00350     /*
00351      * Protect the admin directory with user and password.
00352      */
00353     NutRegisterAuth("admin", "admin:lemta");
00354 
00355     /*
00356      * Start four server threads.
00357      */
00358     for (i = 1; i <= 4; i++) {
00359         char *thname = "httpd0";
00360 
00361         thname[5] = '0' + i;
00362         NutThreadCreate(thname, Service, (void *) (uptr_t) i, HTTPD_THREAD_STACK);
00363     }
00364     return 0;

void HttpSetStationInfo int  idx,
STATIONINFO sip
 

void HttpSetReceiverInfo RECEIVERINFO rip  ) 
 

void HttpSetPlayerInfo PLAYERINFO pip  ) 
 


Variable Documentation

int h_timevalid
 

Definition at line 90 of file httpserv.c.


Generated on Fri Feb 23 17:28:53 2007 for SAM Internet Radio by  doxygen 1.4.4