Apache2
libsed.h File Reference
#include <limits.h>
#include "apr_file_io.h"
Include dependency graph for libsed.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

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)
 
char * sed_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 */

◆ SED_ABUFSIZE

#define SED_ABUFSIZE   20

◆ SED_DEPTH

#define SED_DEPTH   20

◆ SED_LABSIZE

#define SED_LABSIZE   50

◆ SED_NLINES

#define SED_NLINES   256

Typedef Documentation

◆ sed_commands_t

◆ sed_err_fn_t

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

◆ sed_eval_t

typedef struct sed_eval_s sed_eval_t

◆ sed_label_t

typedef struct sed_label_s sed_label_t

◆ sed_reptr_t

typedef struct sed_reptr_s sed_reptr_t

◆ sed_write_fn_t

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

Function Documentation

◆ sed_canbe_finalized()

int sed_canbe_finalized ( const sed_commands_t commands)

◆ sed_compile_file()

apr_status_t sed_compile_file ( sed_commands_t commands,
apr_file_t fin 
)

◆ sed_compile_string()

apr_status_t sed_compile_string ( sed_commands_t commands,
const char *  s 
)

◆ sed_destroy_commands()

void sed_destroy_commands ( sed_commands_t commands)

◆ sed_destroy_eval()

void sed_destroy_eval ( sed_eval_t eval)

◆ sed_eval_buffer()

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

◆ sed_eval_file()

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

◆ sed_finalize_eval()

apr_status_t sed_finalize_eval ( sed_eval_t eval,
void *  f 
)

◆ sed_get_finalize_error()

char* sed_get_finalize_error ( const sed_commands_t commands,
apr_pool_t pool 
)

◆ sed_init_commands()

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

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

◆ sed_reset_eval()

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