netatalk  4.4.0dev
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
headers.c File Reference
#include <sys/param.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <netatalk/at.h>
#include <atalk/logger.h>
#include "file.h"
#include "comment.h"
#include "lp.h"

Functions

int ch_title (struct papfile *, struct papfile *, struct sockaddr_at *)
int ch_for (struct papfile *, struct papfile *, struct sockaddr_at *)
static char * get_text (char *start, int linelength)
int ch_for (struct papfile *in, struct papfile *out _U_, struct sockaddr_at *sat _U_)
int ch_title (struct papfile *in, struct papfile *out _U_, struct sockaddr_at *sat _U_)
static int guess_creator (char *creator)
int ch_creator (struct papfile *in, struct papfile *out _U_, struct sockaddr_at *sat _U_)
int ch_endcomm (struct papfile *in, struct papfile *out _U_, struct sockaddr_at *sat _U_)
int ch_starttranslate (struct papfile *in, struct papfile *out _U_, struct sockaddr_at *sat _U_)
int ch_endtranslate (struct papfile *in, struct papfile *out _U_, struct sockaddr_at *sat _U_)
int ch_translateone (struct papfile *in, struct papfile *out _U_, struct sockaddr_at *sat _U_)

Variables

struct papd_comment headers []

Function Documentation

◆ ch_creator()

int ch_creator ( struct papfile * in,
struct papfile *out _U_,
struct sockaddr_at *sat _U_ )

◆ ch_endcomm()

int ch_endcomm ( struct papfile * in,
struct papfile *out _U_,
struct sockaddr_at *sat _U_ )

◆ ch_endtranslate()

int ch_endtranslate ( struct papfile * in,
struct papfile *out _U_,
struct sockaddr_at *sat _U_ )

◆ ch_for() [1/2]

int ch_for ( struct papfile * ,
struct papfile * ,
struct sockaddr_at *  )

◆ ch_for() [2/2]

int ch_for ( struct papfile * in,
struct papfile *out _U_,
struct sockaddr_at *sat _U_ )

◆ ch_starttranslate()

int ch_starttranslate ( struct papfile * in,
struct papfile *out _U_,
struct sockaddr_at *sat _U_ )

◆ ch_title() [1/2]

int ch_title ( struct papfile * ,
struct papfile * ,
struct sockaddr_at *  )

◆ ch_title() [2/2]

int ch_title ( struct papfile * in,
struct papfile *out _U_,
struct sockaddr_at *sat _U_ )

◆ ch_translateone()

int ch_translateone ( struct papfile * in,
struct papfile *out _U_,
struct sockaddr_at *sat _U_ )

◆ get_text()

char * get_text ( char * start,
int linelength )
static

◆ guess_creator()

int guess_creator ( char * creator)
static

Variable Documentation

◆ headers

struct papd_comment headers[]
Initial value:
= {
{ "%%Title:", NULL, ch_title, 0 },
{ "%%For:", NULL, ch_for, 0 },
{ "%%Creator:", NULL, ch_creator, 0 },
{ "%%EndComments", NULL, ch_endcomm, 0 },
{ "%%BeginFeature", NULL, ch_starttranslate, 0 },
{ "%%EndFeature", NULL, ch_endtranslate, 0 },
{ "%%BeginPageSetup", NULL, ch_starttranslate, 0 },
{ "%%EndPageSetup", NULL, ch_endtranslate, 0 },
{ "%%", NULL, ch_translateone, 0 },
{ NULL, NULL, NULL, 0 },
}
int ch_translateone(struct papfile *in, struct papfile *out _U_, struct sockaddr_at *sat _U_)
Definition headers.c:275
int ch_endcomm(struct papfile *in, struct papfile *out _U_, struct sockaddr_at *sat _U_)
Definition headers.c:198
int ch_endtranslate(struct papfile *in, struct papfile *out _U_, struct sockaddr_at *sat _U_)
Definition headers.c:250
int ch_title(struct papfile *, struct papfile *, struct sockaddr_at *)
int ch_creator(struct papfile *in, struct papfile *out _U_, struct sockaddr_at *sat _U_)
Definition headers.c:165
int ch_starttranslate(struct papfile *in, struct papfile *out _U_, struct sockaddr_at *sat _U_)
Definition headers.c:225
int ch_for(struct papfile *, struct papfile *, struct sockaddr_at *)