/* in arg[0] find tags beginning with arg[1] call arg[2] on them
and replace by result of arg[2] call */
-int parse(
+static int parse(
char **,
long,
char *,
/**************************************************/
/* return cgi var named arg[0] */
-char *cgiget(
+static char *cgiget(
long,
const char **);
/* return a quoted cgi var named arg[0] */
-char *cgigetq(
+static char *cgigetq(
long,
const char **);
/* return a quoted and sanitized cgi variable */
-char *cgigetqp(
+static char *cgigetqp(
long,
const char **);
/* call rrd_graph and insert appropriate image tag */
-char *drawgraph(
+static char *drawgraph(
long,
const char **);
/* return PRINT functions from last rrd_graph call */
-char *drawprint(
+static char *drawprint(
long,
const char **);
/* pretty-print the <last></last> value for some.rrd via strftime() */
-char *printtimelast(
+static char *printtimelast(
long,
const char **);
/* pretty-print current time */
-char *printtimenow(
+static char *printtimenow(
long,
const char **);
/* set an environment variable */
-char *rrdsetenv(
+static char *rrdsetenv(
long,
const char **);
/* get an environment variable */
-char *rrdgetenv(
+static char *rrdgetenv(
long,
const char **);
/* include the named file at this point */
-char *includefile(
+static char *includefile(
long,
const char **);
/* for how long is the output of the cgi valid ? */
-char *rrdgoodfor(
+static char *rrdgoodfor(
long,
const char **);
/* return rrdcgi version string */
-char *rrdgetinternal(
+static char *rrdgetinternal(
long,
const char **);
-char *rrdstrip(
+static char *rrdstrip(
char *buf);
-char *scanargs(
+static char *scanargs(
char *line,
int *argc,
char ***args);
/* format at-time specified times using strftime */
-char *printstrftime(
+static char *printstrftime(
long,
const char **);
/** HTTP protocol needs special format, and GMT time **/
-char *http_time(
+static char *http_time(
time_t *);
/* return a pointer to newly allocated copy of this string */
-char *stralloc(
+static char *stralloc(
const char *);
/* global variable for rrdcgi */
*
* Prints a valid CGI Header (Content-type...) etc.
*/
-void rrdcgiHeader(
+static void rrdcgiHeader(
void);
/* rrdcgiDecodeString
* decode html escapes
*/
-char *rrdcgiDecodeString(
+static char *rrdcgiDecodeString(
char *text);
/* rrdcgiDebug
*
* Set/unsets debugging
*/
-void rrdcgiDebug(
+static void rrdcgiDebug(
int level,
int where);
*
* Reads in variables set via POST or stdin.
*/
-s_cgi *rrdcgiInit(
+static s_cgi *rrdcgiInit(
void);
/* rrdcgiGetValue
* Returns the value of the specified variable or NULL if it's empty
* or doesn't exist.
*/
-char *rrdcgiGetValue(
+static char *rrdcgiGetValue(
s_cgi * parms,
const char *name);
*
* Frees a list as returned by rrdcgiGetVariables()
*/
-void rrdcgiFreeList(
+static void rrdcgiFreeList(
char **list);
/* rrdcgiFree
*
* Frees the internal data structures
*/
-void rrdcgiFree(
+static void rrdcgiFree(
s_cgi * parms);
/* rrdcgiReadVariables()
* Read from stdin if no string is provided via CGI. Variables that
* doesn't have a value associated with it doesn't get stored.
*/
-s_var **rrdcgiReadVariables(
+static s_var **rrdcgiReadVariables(
void);
char *rrdcgiType = NULL;
/* rrd interface to the variable functions {put,get}var() */
-char *rrdgetvar(
+static char *rrdgetvar(
long argc,
const char **args);
-char *rrdsetvar(
+static char *rrdsetvar(
long argc,
const char **args);
-char *rrdsetvarconst(
+static char *rrdsetvarconst(
long argc,
const char **args);
}
/* create freeable version of the string */
-char *stralloc(
+static char *stralloc(
const char *str)
{
if (!str) {
/* remove occurrences of .. this is a general measure to make
paths which came in via cgi do not go UP ... */
-char *rrdsetenv(
+static char *rrdsetenv(
long argc,
const char **args)
{
}
/* rrd interface to the variable function putvar() */
-char *rrdsetvar(
+static char *rrdsetvar(
long argc,
const char **args)
{
}
/* rrd interface to the variable function putvar() */
-char *rrdsetvarconst(
+static char *rrdsetvarconst(
long argc,
const char **args)
{
"were defined]");
}
-char *rrdgetenv(
+static char *rrdgetenv(
long argc,
const char **args)
{
}
}
-char *rrdgetvar(
+static char *rrdgetvar(
long argc,
const char **args)
{
}
}
-char *rrdgoodfor(
+static char *rrdgoodfor(
long argc,
const char **args)
{
return stralloc("");
}
-char *rrdgetinternal(
+static char *rrdgetinternal(
long argc,
const char **args)
{
* start and end times, because, either might be relative to the other.
* */
#define MAX_STRFTIME_SIZE 256
-char *printstrftime(
+static char *printstrftime(
long argc,
const char **args)
{
}
}
-char *includefile(
+static char *includefile(
long argc,
const char **args)
{
}
/* make a copy of buf and replace open/close brackets with '_' */
-char *rrdstrip(
+static char *rrdstrip(
char *buf)
{
char *p;
return buf;
}
-char *cgigetq(
+static char *cgigetq(
long argc,
const char **args)
{
/* remove occurrences of .. this is a general measure to make
paths which came in via cgi do not go UP ... */
-char *cgigetqp(
+static char *cgigetqp(
long argc,
const char **args)
{
}
-char *cgiget(
+static char *cgiget(
long argc,
const char **args)
{
-char *drawgraph(
+static char *drawgraph(
long argc,
const char **args)
{
return NULL;
}
-char *drawprint(
+static char *drawprint(
long argc,
const char **args)
{
return stralloc("[ERROR: RRD::PRINT argument error]");
}
-char *printtimelast(
+static char *printtimelast(
long argc,
const char **args)
{
return stralloc("[ERROR: expected <RRD::TIME::LAST file.rrd strftime-format>]");
}
-char *printtimenow(
+static char *printtimenow(
long argc,
const char **args)
{
* that contain RRD::x directives. These introduce a small memory leak
* since we have to stralloc the arguments the way parse() works.
*/
-char *scanargs(
+static char *scanargs(
char *line,
int *argument_count,
char ***arguments)
* The result of func is inserted at the current position
* in the buffer.
*/
-int parse(
+static int parse(
char **buf, /* buffer */
long i, /* offset in buffer */
char *tag, /* tag to handle */
return (valln > 0 ? valln - 1 : valln);
}
-char *http_time(
+static char *http_time(
time_t *now)
{
struct tm *tmptime;
return (buf);
}
-void rrdcgiHeader(
+static void rrdcgiHeader(
void)
{
if (rrdcgiType)
printf("\n");
}
-void rrdcgiDebug(
+static void rrdcgiDebug(
int level,
int where)
{
rrdcgiDebugStderr = 1;
}
-char *rrdcgiDecodeString(
+static char *rrdcgiDecodeString(
char *text)
{
char *cp, *xp;
* Read from stdin if no string is provided via CGI. Variables that
* doesn't have a value associated with it doesn't get stored.
*/
-s_var **rrdcgiReadVariables(
+static s_var **rrdcgiReadVariables(
void)
{
int length;
* Read from stdin if no string is provided via CGI. Variables that
* doesn't have a value associated with it doesn't get stored.
*/
-s_cgi *rrdcgiInit(
+static s_cgi *rrdcgiInit(
void)
{
s_cgi *res;
return res;
}
-char *rrdcgiGetValue(
+static char *rrdcgiGetValue(
s_cgi * parms,
const char *name)
{
return NULL;
}
-void rrdcgiFreeList(
+static void rrdcgiFreeList(
char **list)
{
int i;
free(list);
}
-void rrdcgiFree(
+static void rrdcgiFree(
s_cgi * parms)
{
int i;