apps/autoexp/autoexpos.cgi.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <asm/elphel/autoexp.h>
#include <asm/elphel/c313a.h>

Include dependency graph for autoexpos.cgi.c:

Go to the source code of this file.

Data Structures

struct  key_value

Defines

#define AE_DEVICE   AUTOEXP_DEV_NAME
#define QRY_MAXPARAMS   64

Functions

int unescape (char *, int)
int hexdigit (char)
char * paramValue (struct key_value *, char *)
int parseQuery (struct key_value *, char *)
void makeXML (void)
void setAEParams (void)
void getAEParams (void)
void fillAEStruct (void)
int main (int argc, char *argv[])

Variables

char copyQuery [4096]
const char * uri
const char * method
const char * query
int driver
autoexp_t aestate
int erroroper
key_value gparams [QRY_MAXPARAMS+1]
int i_val = -1
static unsigned long rval = 0
static unsigned long gval = 0
static unsigned long bval = 0
static unsigned long rval_or = 0
static unsigned long gval_or = 0
static unsigned long bval_or = 0
int i_perc = -1
static unsigned long rperc = 0
static unsigned long gperc = 0
static unsigned long bperc = 0
static unsigned long rperc_or = 0
static unsigned long gperc_or = 0
static unsigned long bperc_or = 0
static unsigned long rall = 0
static unsigned long gall = 0
static unsigned long ball = 0
static struct autoexp_log_t ae_log_b [LOG_C]
static int ae_log_c = 0


Define Documentation

#define AE_DEVICE   AUTOEXP_DEV_NAME

Definition at line 15 of file autoexpos.cgi.c.

Referenced by main().

#define QRY_MAXPARAMS   64

Definition at line 16 of file autoexpos.cgi.c.

Referenced by paramValue(), and parseQuery().


Function Documentation

void fillAEStruct ( void   ) 

Definition at line 283 of file autoexpos.cgi.c.

References aestate, autoexp_t::exp_max, gparams, autoexp_t::height, HIST_NOT_CHANGE, autoexp_t::left, autoexp_t::on, autoexp_t::overexp_max, paramValue(), autoexp_t::s_index, autoexp_t::s_percent, autoexp_t::skip_pmax, autoexp_t::skip_pmin, autoexp_t::skip_t, autoexp_t::top, and autoexp_t::width.

Referenced by main(), and setAEParams().

void getAEParams ( void   ) 

Definition at line 417 of file autoexpos.cgi.c.

References aestate, driver, erroroper, and IOC_AUTOEXP_GET.

Referenced by main(), and setAEParams().

int hexdigit ( char   ) 

Definition at line 193 of file autoexpos.cgi.c.

Referenced by main(), and unescape().

int main ( int  argc,
char *  argv[] 
)

Definition at line 63 of file autoexpos.cgi.c.

References AE_DEVICE, ae_log_b, ae_log_c, ball, bperc, bperc_or, bval, bval_or, copyQuery, driver, fillAEStruct(), gall, getAEParams(), gparams, gperc, gperc_or, gval, gval_or, i_perc, i_val, IOC_AUTOEXP_GET_LOG, LOG_C, makeXML(), method, paramValue(), parseQuery(), rall, rperc, rperc_or, rval, rval_or, setAEParams(), TABLES_LEN, unescape(), and uri.

void makeXML ( void   ) 

Definition at line 229 of file autoexpos.cgi.c.

References ae_log_b, ae_log_c, aestate, ball, bperc, bperc_or, bval, bval_or, driver, erroroper, autoexp_t::exp, autoexp_t::exp_max, gall, gperc, gperc_or, gval, gval_or, autoexp_t::height, i_perc, i_val, autoexp_t::left, autoexp_t::on, autoexp_t::overexp_max, rall, rperc, rperc_or, rval, rval_or, autoexp_t::s_index, autoexp_t::s_percent, autoexp_t::skip_pmax, autoexp_t::skip_pmin, autoexp_t::skip_t, autoexp_t::top, and autoexp_t::width.

Referenced by main().

char * paramValue ( struct key_value ,
char *   
)

Definition at line 204 of file autoexpos.cgi.c.

References QRY_MAXPARAMS, and key_value::value.

Referenced by fillAEStruct(), main(), optionPresent(), and setCamPars().

int parseQuery ( struct key_value ,
char *   
)

Definition at line 215 of file autoexpos.cgi.c.

References key_value::key, QRY_MAXPARAMS, and key_value::value.

Referenced by main().

void setAEParams ( void   ) 

Definition at line 411 of file autoexpos.cgi.c.

References aestate, driver, erroroper, fillAEStruct(), getAEParams(), and IOC_AUTOEXP_SET.

Referenced by main().

int unescape ( char *  ,
int   
)

Definition at line 180 of file autoexpos.cgi.c.

References hexdigit().

Referenced by main().


Variable Documentation

struct autoexp_log_t ae_log_b[LOG_C] [static]

Definition at line 60 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

int ae_log_c = 0 [static]

Definition at line 61 of file autoexpos.cgi.c.

Referenced by autoexp__ioctl(), hist__ioctl(), main(), and makeXML().

struct autoexp_t aestate

Definition at line 23 of file autoexpos.cgi.c.

Referenced by fillAEStruct(), getAEParams(), makeXML(), and setAEParams().

unsigned long ball = 0 [static]

Definition at line 58 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

unsigned long bperc = 0 [static]

Definition at line 52 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

unsigned long bperc_or = 0 [static]

Definition at line 55 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

unsigned long bval = 0 [static]

Definition at line 45 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

unsigned long bval_or = 0 [static]

Definition at line 48 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

char copyQuery[4096]

Definition at line 18 of file autoexpos.cgi.c.

Referenced by main().

int driver

Definition at line 22 of file autoexpos.cgi.c.

Referenced by find_gps_compass(), getAEParams(), main(), makeXML(), and setAEParams().

int erroroper

Definition at line 24 of file autoexpos.cgi.c.

Referenced by getAEParams(), makeXML(), and setAEParams().

unsigned long gall = 0 [static]

Definition at line 57 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

struct key_value gparams[QRY_MAXPARAMS+1]

Definition at line 31 of file autoexpos.cgi.c.

Referenced by fillAEStruct(), main(), and setCamPars().

unsigned long gperc = 0 [static]

Definition at line 51 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

unsigned long gperc_or = 0 [static]

Definition at line 54 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

unsigned long gval = 0 [static]

Definition at line 44 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

unsigned long gval_or = 0 [static]

Definition at line 47 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

int i_perc = -1

Definition at line 49 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

int i_val = -1

Definition at line 42 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

const char* method

Definition at line 20 of file autoexpos.cgi.c.

Referenced by main().

const char* query

Definition at line 21 of file autoexpos.cgi.c.

Referenced by main().

unsigned long rall = 0 [static]

Definition at line 56 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

unsigned long rperc = 0 [static]

Definition at line 50 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

unsigned long rperc_or = 0 [static]

Definition at line 53 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

unsigned long rval = 0 [static]

Definition at line 43 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

unsigned long rval_or = 0 [static]

Definition at line 46 of file autoexpos.cgi.c.

Referenced by main(), and makeXML().

const char* uri

Definition at line 19 of file autoexpos.cgi.c.

Referenced by main().


Generated on Thu Aug 7 16:19:19 2008 for elphel by  doxygen 1.5.1