nagios4/include/getcgi.h

40 lines
1.0 KiB
C
Raw Permalink Normal View History

2017-05-19 22:22:40 +02:00
/******************************************************
*
* GETCGI.H - Nagios CGI Input Routine Include File
*
*
*****************************************************/
2017-05-19 23:37:19 +02:00
#include "lib/lnag-utils.h"
2017-05-19 22:22:40 +02:00
NAGIOS_BEGIN_DECL
#define ACCEPT_LANGUAGE_Q_DELIMITER ";q="
2017-05-19 23:37:19 +02:00
/* information for a single language in the variable HTTP_ACCEPT_LANGUAGE
2017-05-19 22:22:40 +02:00
sent by the browser */
typedef struct accept_language_struct {
char * language;
char * locality;
double q;
} accept_language;
2017-05-19 23:37:19 +02:00
/* information for all languages in the variable HTTP_ACCEPT_LANGUAGE
2017-05-19 22:22:40 +02:00
sent by the browser */
typedef struct accept_languages_struct {
int count;
accept_language ** languages;
} accept_languages;
char **getcgivars(void);
void free_cgivars(char **);
void unescape_cgi_input(char *);
void sanitize_cgi_input(char **);
unsigned char hex_to_char(char *);
void process_language( char *);
accept_languages * parse_accept_languages( char *);
int compare_accept_languages( const void *, const void *);
void free_accept_languages( accept_languages *);
NAGIOS_END_DECL