Definicje | Funkcje | Zmienne

Dokumentacja pliku plugins/jogger/drafts.c

#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]

Dokumentacja definicji

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

Dokumentacja funkcji

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

Dokumentacja zmiennych

char* jogger_header_keys[JOGGER_KEYS_MAX]
char* jogger_header_values[JOGGER_VALUES_MAX]
const char* utf_jogger_header_keys[JOGGER_KEYS_MAX]
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
}
const char* utf_jogger_header_values[JOGGER_VALUES_MAX]
Wartość początkowa:
 {
        "off",          "no",           "nie",          "wylacz",       "wyłącz",
        "on",           "yes",          "tak",          "wlacz",        "włącz",  NULL,

        "jogger",                                                                       NULL,
        NULL
}
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje