Apache HTTPD
Classes | Macros | Typedefs | Functions
libsed.h File Reference
#include <limits.h>
#include "apr_file_io.h"

Go to the source code of this file.

Classes

struct  sed_reptr_s
 
struct  sed_label_s
 
struct  sed_commands_s
 
struct  sed_eval_s
 

Macros

#define SED_NLINES   256
 
#define SED_DEPTH   20
 
#define SED_LABSIZE   50
 
#define SED_ABUFSIZE   20
 
#define NWFILES   11 /* 10 plus one for standard output */
 

Typedefs

typedef struct sed_reptr_s sed_reptr_t
 
typedef struct sed_label_s sed_label_t
 
typedef apr_status_t() sed_err_fn_t(void *data, const char *error)
 
typedef apr_status_t() sed_write_fn_t(void *ctx, char *buf, apr_size_t sz)
 
typedef struct sed_commands_s sed_commands_t
 
typedef struct sed_eval_s sed_eval_t
 

Functions

apr_status_t sed_init_commands (sed_commands_t *commands, sed_err_fn_t *errfn, void *data, apr_pool_t *p)
 
apr_status_t sed_compile_string (sed_commands_t *commands, const char *s)
 
apr_status_t sed_compile_file (sed_commands_t *commands, apr_file_t *fin)
 
charsed_get_finalize_error (const sed_commands_t *commands, apr_pool_t *pool)
 
int sed_canbe_finalized (const sed_commands_t *commands)
 
void sed_destroy_commands (sed_commands_t *commands)
 
apr_status_t sed_init_eval (sed_eval_t *eval, sed_commands_t *commands, sed_err_fn_t *errfn, void *data, sed_write_fn_t *writefn, apr_pool_t *p)
 
apr_status_t sed_reset_eval (sed_eval_t *eval, sed_commands_t *commands, sed_err_fn_t *errfn, void *data)
 
apr_status_t sed_eval_buffer (sed_eval_t *eval, const char *buf, apr_size_t bufsz, void *fout)
 
apr_status_t sed_eval_file (sed_eval_t *eval, apr_file_t *fin, void *fout)
 
apr_status_t sed_finalize_eval (sed_eval_t *eval, void *f)
 
void sed_destroy_eval (sed_eval_t *eval)
 

Macro Definition Documentation

◆ NWFILES

#define NWFILES   11 /* 10 plus one for standard output */

Definition at line 66 of file libsed.h.

◆ SED_ABUFSIZE

#define SED_ABUFSIZE   20

Definition at line 35 of file libsed.h.

◆ SED_DEPTH

#define SED_DEPTH   20

Definition at line 33 of file libsed.h.

◆ SED_LABSIZE

#define SED_LABSIZE   50

Definition at line 34 of file libsed.h.

◆ SED_NLINES

#define SED_NLINES   256

Definition at line 32 of file libsed.h.

Typedef Documentation

◆ sed_commands_t

Definition at line 65 of file libsed.h.

◆ sed_err_fn_t

typedef apr_status_t() sed_err_fn_t(void *data, const char *error)

Definition at line 62 of file libsed.h.

◆ sed_eval_t

Definition at line 107 of file libsed.h.

◆ sed_label_t

Definition at line 54 of file libsed.h.

◆ sed_reptr_t

Definition at line 37 of file libsed.h.

◆ sed_write_fn_t

typedef apr_status_t() sed_write_fn_t(void *ctx, char *buf, apr_size_t sz)

Definition at line 63 of file libsed.h.

Function Documentation

◆ sed_canbe_finalized()

int sed_canbe_finalized ( const sed_commands_t commands)

Definition at line 152 of file sed0.c.

◆ sed_compile_file()

apr_status_t sed_compile_file ( sed_commands_t commands,
apr_file_t fin 
)

Definition at line 118 of file sed0.c.

◆ sed_compile_string()

apr_status_t sed_compile_string ( sed_commands_t commands,
const char s 
)

Definition at line 99 of file sed0.c.

◆ sed_destroy_commands()

void sed_destroy_commands ( sed_commands_t commands)

Definition at line 92 of file sed0.c.

◆ sed_destroy_eval()

void sed_destroy_eval ( sed_eval_t eval)

Definition at line 367 of file sed1.c.

◆ sed_eval_buffer()

apr_status_t sed_eval_buffer ( sed_eval_t eval,
const char buf,
apr_size_t  bufsz,
void *  fout 
)

Definition at line 406 of file sed1.c.

◆ sed_eval_file()

apr_status_t sed_eval_file ( sed_eval_t eval,
apr_file_t fin,
void *  fout 
)

Definition at line 383 of file sed1.c.

◆ sed_finalize_eval()

apr_status_t sed_finalize_eval ( sed_eval_t eval,
void *  f 
)

Definition at line 480 of file sed1.c.

◆ sed_get_finalize_error()

char * sed_get_finalize_error ( const sed_commands_t commands,
apr_pool_t pool 
)

Definition at line 127 of file sed0.c.

◆ sed_init_commands()

apr_status_t sed_init_commands ( sed_commands_t commands,
sed_err_fn_t errfn,
void *  data,
apr_pool_t p 
)

Definition at line 59 of file sed0.c.

◆ sed_init_eval()

apr_status_t sed_init_eval ( sed_eval_t eval,
sed_commands_t commands,
sed_err_fn_t errfn,
void *  data,
sed_write_fn_t writefn,
apr_pool_t p 
)

Definition at line 294 of file sed1.c.

◆ sed_reset_eval()

apr_status_t sed_reset_eval ( sed_eval_t eval,
sed_commands_t commands,
sed_err_fn_t errfn,
void *  data 
)

< Open the file for writing

<

Deprecated:
See also
APR_FOPEN_WRITE

< Create the file if not there

<

Deprecated:
See also
APR_FOPEN_CREATE

< use OS's default permissions

<

Deprecated:
See also
APR_FPROT_OS_DEFAULT

Definition at line 305 of file sed1.c.