|
ekg2
|
#include <stdlib.h>#include <unistd.h>#include <string.h>#include <errno.h>#include <fcntl.h>#include "compat/strlcpy.h"#include <limits.h>#include <sys/mman.h>#include <sys/types.h>#include <sys/stat.h>#include <ekg/commands.h>#include <ekg/debug.h>#include <ekg/recode.h>#include <ekg/stuff.h>#include <ekg/themes.h>#include <ekg/windows.h>#include <ekg/xmalloc.h>Definicje | |
| #define | JOGGER_KEYS_MAX 25 |
| #define | JOGGER_VALUES_MAX 14 |
| #define | WARN_PRINT(x) do { if (!outstarted) { outstarted++; print("jogger_warning"); } print(x, tmp); } while (0) |
Funkcje | |
| void | jogger_free_headers (int real_free) |
| void | jogger_localize_headers () |
| static int | jogger_checkoutfile (const char *file, char **data, int *len, char **hash, const int maxlen, const int quiet) |
| int | jogger_prepare (const char *name, const char **params, session_t *session, const char *target, int quiet) |
| int | jogger_publish (const char *name, const char **params, session_t *session, const char *target, int quiet) |
Zmienne | |
| const char * | utf_jogger_header_keys [JOGGER_KEYS_MAX] |
| const char * | utf_jogger_header_values [JOGGER_VALUES_MAX] |
| char * | jogger_header_keys [JOGGER_KEYS_MAX] |
| char * | jogger_header_values [JOGGER_VALUES_MAX] |
| #define JOGGER_KEYS_MAX 25 |
| #define JOGGER_VALUES_MAX 14 |
| #define WARN_PRINT | ( | x | ) | do { if (!outstarted) { outstarted++; print("jogger_warning"); } print(x, tmp); } while (0) |
|
static |
Tries to open given file (check), and reads it, if expected (checkout). It is designed to be proof to special file problems (especially named pipe ones).
| file | - filename to open. |
| data | - pointer to store file contents or NULL, if don't want to read it. |
| len | - pointer to store filelength or NULL, if not needed. |
| hash | - pointer to store filehash or NULL, if not needed. |
| maxlen | - maximum filesize to accept (not counting additional NUL) or 0, if n/a. |
| quiet | - if set, don't output anything to __status. |
| void jogger_free_headers | ( | int | real_free | ) |
| void jogger_localize_headers | ( | ) |
| int jogger_prepare | ( | const char * | name, |
| const char ** | params, | ||
| session_t * | session, | ||
| const char * | target, | ||
| int | quiet | ||
| ) |
| int jogger_publish | ( | const char * | name, |
| const char ** | params, | ||
| session_t * | session, | ||
| const char * | target, | ||
| int | quiet | ||
| ) |
| char* jogger_header_keys[JOGGER_KEYS_MAX] |
| char* jogger_header_values[JOGGER_VALUES_MAX] |
| const char* utf_jogger_header_keys[JOGGER_KEYS_MAX] |
| const char* utf_jogger_header_values[JOGGER_VALUES_MAX] |
1.8.1.2