#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 AE_DEVICE AUTOEXP_DEV_NAME |
#define QRY_MAXPARAMS 64 |
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 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().
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().
struct autoexp_log_t ae_log_b[LOG_C] [static] |
Definition at line 61 of file autoexpos.cgi.c.
Referenced by autoexp__ioctl(), hist__ioctl(), main(), and makeXML().
Definition at line 23 of file autoexpos.cgi.c.
Referenced by fillAEStruct(), getAEParams(), makeXML(), and setAEParams().
unsigned long ball = 0 [static] |
unsigned long bperc = 0 [static] |
unsigned long bperc_or = 0 [static] |
unsigned long bval = 0 [static] |
unsigned long bval_or = 0 [static] |
char copyQuery[4096] |
Definition at line 22 of file autoexpos.cgi.c.
Referenced by find_gps_compass(), getAEParams(), main(), makeXML(), and setAEParams().
Definition at line 24 of file autoexpos.cgi.c.
Referenced by getAEParams(), makeXML(), and setAEParams().
unsigned long gall = 0 [static] |
Definition at line 31 of file autoexpos.cgi.c.
Referenced by fillAEStruct(), main(), and setCamPars().
unsigned long gperc = 0 [static] |
unsigned long gperc_or = 0 [static] |
unsigned long gval = 0 [static] |
unsigned long gval_or = 0 [static] |
const char* method |
const char* query |
unsigned long rall = 0 [static] |
unsigned long rperc = 0 [static] |
unsigned long rperc_or = 0 [static] |
unsigned long rval = 0 [static] |
unsigned long rval_or = 0 [static] |
const char* uri |