File: cgi.h

package info (click to toggle)
namazu2 2.0.21-22
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 7,032 kB
  • sloc: ansic: 14,161; perl: 10,789; sh: 9,355; lisp: 1,147; makefile: 914
file content (28 lines) | stat: -rw-r--r-- 472 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef _CGI_H
#define _CGI_H

struct cgivar {
    char *name;
    char *value;
    struct cgivar *next;
};
typedef struct cgivar CGIVAR;

/*
 * cgiarg: data structure for passing process_cgi_var_*() functions 
 * as a second arg as a pointer.
 */
struct cgiarg {
    char *query;
    char *subquery;
};


struct cgivar_func {
    char *name;
    void (*func)(char *key, struct cgiarg *func);
};

extern void init_cgi ( char *query, char *subquery );

#endif /* _CGI_H */