ekg2  GIT master
Definicje | Funkcje | Zmienne
Dokumentacja pliku drafts.c
#include "ekg2.h"
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
Wykres zależności załączania dla drafts.c:

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 [25]
 
const char * utf_jogger_header_values [14]
 
char * jogger_header_keys [25]
 
char * jogger_header_values [14]
 

Dokumentacja definicji

◆ JOGGER_KEYS_MAX

#define JOGGER_KEYS_MAX   25

◆ JOGGER_VALUES_MAX

#define JOGGER_VALUES_MAX   14

◆ WARN_PRINT

#define WARN_PRINT (   x)    do { if (!outstarted) { outstarted++; print("jogger_warning"); } print(x, tmp); } while (0)

Dokumentacja funkcji

◆ jogger_checkoutfile()

static int jogger_checkoutfile ( const char *  file,
char **  data,
int *  len,
char **  hash,
const int  maxlen,
const int  quiet 
)
static

jogger_checkoutfile()

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).

Parametry
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.
Zwraca
0 on success, errno on failure.

◆ jogger_free_headers()

void jogger_free_headers ( int  real_free)

◆ jogger_localize_headers()

void jogger_localize_headers ( )

◆ jogger_prepare()

int jogger_prepare ( const char *  name,
const char **  params,
session_t session,
const char *  target,
int  quiet 
)

◆ jogger_publish()

int jogger_publish ( const char *  name,
const char **  params,
session_t session,
const char *  target,
int  quiet 
)

Dokumentacja zmiennych

◆ jogger_header_keys

char* jogger_header_keys[25]

◆ jogger_header_values

char* jogger_header_values[14]

◆ utf_jogger_header_keys

const char* utf_jogger_header_keys[25]
Wartość początkowa:
= {
"tytul:", "temat:", "subject:", "tytuł:", NULL,
"poziom:", "level:", NULL,
"tag:", NULL,
"kategoria:", "category:", "kategorie:", "categories", NULL,
"trackback:", NULL,
"tidy", NULL,
"komentarze", "comments:", NULL,
"miniblog:", NULL,
NULL
}
#define NULL
Definition: oralog.c:49

◆ utf_jogger_header_values

const char* utf_jogger_header_values[14]
Wartość początkowa:
= {
"off", "no", "nie", "wylacz", "wyłącz",
"on", "yes", "tak", "wlacz", "włącz", NULL,
"jogger", NULL,
NULL
}
#define NULL
Definition: oralog.c:49