![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include "nilorea/n_common.h"#include "nilorea/n_http_mime.h"#include "nilorea/n_log.h"Go to the source code of this file.
Functions | |
| static void | expect_type (const char *path, const char *want) |
| path maps to want (NULL: no type) | |
| int | main (int argc, char **argv) |
| run the checks | |
| static int | process_args (int argc, char **argv) |
| read -V | |
Variables | |
| static int | failures = 0 |
| failed checks | |
| static int | log_level = 3 |
| log level from -V | |
|
static |
path maps to want (NULL: no type)
| path | the path |
| want | expected type or NULL |
Definition at line 63 of file ex_http_mime.c.
References failures, LOG_ERR, n_http_mime_type(), and n_log.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv ) |
run the checks
| argc | argument count |
| argv | arguments |
Definition at line 75 of file ex_http_mime.c.
References expect_type(), failures, LOG_ERR, log_level, LOG_NOTICE, n_http_mime_table_check(), n_http_mime_type(), n_log, process_args(), and set_log_level().
|
static |
read -V
| argc | argument count |
| argv | arguments |
Definition at line 47 of file ex_http_mime.c.
References log_level.
|
static |
failed checks
Definition at line 41 of file ex_http_mime.c.
|
static |
log level from -V
Definition at line 39 of file ex_http_mime.c.