imsgproc
struct imsgproc *proc;
control_close(struct imsgproc *proc)
control_dispatch_priv(struct imsgproc *proc, struct imsg *imsg, void *arg)
control_dispatch_client(struct imsgproc *proc, struct imsg *imsg, void *arg)
static void control_close(struct imsgproc *);
static void control_dispatch_priv(struct imsgproc *, struct imsg *, void *);
static void control_dispatch_client(struct imsgproc *, struct imsg *, void *);
engine_dispatch_frontend(struct imsgproc *proc, struct imsg *imsg, void *arg)
static void engine_dispatch_priv(struct imsgproc *, struct imsg *, void *);
static void engine_dispatch_frontend(struct imsgproc *, struct imsg *, void *);
engine_dispatch_priv(struct imsgproc *proc, struct imsg *imsg, void *arg)
lpr_dispatch_frontend(struct imsgproc *proc, struct imsg *imsg)
frontend_dispatch_priv(struct imsgproc *proc, struct imsg *imsg, void *arg)
frontend_dispatch_engine(struct imsgproc *proc, struct imsg *imsg, void *arg)
static void frontend_dispatch_priv(struct imsgproc *, struct imsg *, void *);
static void frontend_dispatch_engine(struct imsgproc *, struct imsg *, void *);
lpr_dispatch_engine(struct imsgproc *proc, struct imsg *imsg)
log_imsg(struct imsgproc *proc, struct imsg *imsg)
priv_dispatch_control(struct imsgproc *proc, struct imsg *imsg, void *arg)
priv_dispatch_engine(struct imsgproc *proc, struct imsg *imsg, void *arg)
priv_dispatch_frontend(struct imsgproc *proc, struct imsg *imsg, void *arg)
struct imsgproc *p_control;
priv_dispatch_printer(struct imsgproc *proc, struct imsg *imsg, void *arg)
struct imsgproc *p_engine;
struct imsgproc *p_frontend;
struct imsgproc *p;
struct imsgproc *p_priv;
static void priv_dispatch_control(struct imsgproc *, struct imsg *, void *);
static void priv_dispatch_engine(struct imsgproc *, struct imsg *, void *);
static void priv_dispatch_frontend(struct imsgproc *, struct imsg *, void *);
static void priv_dispatch_printer(struct imsgproc *, struct imsg *, void *);
extern struct imsgproc *p_control;
extern struct imsgproc *p_engine;
extern struct imsgproc *p_frontend;
extern struct imsgproc *p_priv;
void log_imsg(struct imsgproc *, struct imsg *);
void lpr_dispatch_frontend(struct imsgproc *, struct imsg *);
void lpr_dispatch_engine(struct imsgproc *, struct imsg *);
void resolver_dispatch_request(struct imsgproc *, struct imsg *);
void resolver_dispatch_result(struct imsgproc *, struct imsg *);
struct imsgproc;
struct imsgproc *
struct imsgproc *p;
struct imsgproc *
struct imsgproc *p;
proc_settitle(struct imsgproc *p, const char *title)
proc_setpid(struct imsgproc *p, pid_t pid)
proc_setcallback(struct imsgproc *p,
void(*cb)(struct imsgproc *, struct imsg *, void *), void *arg)
proc_enable(struct imsgproc *p)
proc_free(struct imsgproc *p)
static struct imsgproc *
struct imsgproc *p;
proc_setsock(struct imsgproc *p, int sock)
proc_event_add(struct imsgproc *p)
proc_callback(struct imsgproc *p, struct imsg *imsg)
struct imsgproc *p = arg;
m_compose(struct imsgproc *p, uint32_t type, uint32_t peerid, pid_t pid, int fd,
TAILQ_ENTRY(imsgproc) tqe;
m_create(struct imsgproc *p, uint32_t type, uint32_t peerid, pid_t pid, int fd)
m_close(struct imsgproc *p)
m_add(struct imsgproc *p, const void *data, size_t len)
m_add_int(struct imsgproc *p, int v)
m_add_u32(struct imsgproc *p, uint32_t v)
void (*cb)(struct imsgproc *, struct imsg *, void *);
m_add_u64(struct imsgproc *p, uint64_t v)
m_add_size(struct imsgproc *p, size_t v)
m_add_time(struct imsgproc *p, time_t v)
m_add_string(struct imsgproc *p, const char *str)
m_add_sockaddr(struct imsgproc *p, const struct sockaddr *sa)
m_end(struct imsgproc *p)
m_is_eom(struct imsgproc *p)
m_get(struct imsgproc *p, void *dst, size_t sz)
m_get_int(struct imsgproc *p, int *dst)
m_get_u32(struct imsgproc *p, uint32_t *dst)
m_get_u64(struct imsgproc *p, uint64_t *dst)
m_get_size(struct imsgproc *p, size_t *dst)
m_get_time(struct imsgproc *p, time_t *dst)
m_get_string(struct imsgproc *p, const char **dst)
m_get_sockaddr(struct imsgproc *p, struct sockaddr *dst)
static struct imsgproc *proc_new(int);
static void proc_setsock(struct imsgproc *, int);
static void proc_callback(struct imsgproc *, struct imsg *);
static void proc_event_add(struct imsgproc *);
static TAILQ_HEAD(, imsgproc) procs = TAILQ_HEAD_INITIALIZER(procs);
proc_getpid(struct imsgproc *p)
proc_gettype(struct imsgproc *p)
proc_getinstance(struct imsgproc *p)
proc_gettitle(struct imsgproc *p)
struct imsgproc *
struct imsgproc *p;
struct imsgproc;
struct imsgproc *proc_bypid(pid_t);
struct imsgproc *proc_exec(int, char **);
struct imsgproc *proc_attach(int, int);
void proc_enable(struct imsgproc *);
void proc_free(struct imsgproc *);
pid_t proc_getpid(struct imsgproc *);
int proc_gettype(struct imsgproc *);
int proc_getinstance(struct imsgproc *);
const char *proc_gettitle(struct imsgproc *);
void proc_setpid(struct imsgproc *, pid_t);
void proc_settitle(struct imsgproc *, const char *);
void proc_setinstance(struct imsgproc *, int);
void proc_setcallback(struct imsgproc *,
void(*)(struct imsgproc *, struct imsg *, void *), void *);
void m_compose(struct imsgproc *, uint32_t, uint32_t, pid_t, int, const void *,
void m_create(struct imsgproc *, uint32_t, uint32_t, pid_t, int);
void m_close(struct imsgproc *);
void m_add(struct imsgproc *, const void *, size_t);
void m_add_int(struct imsgproc *, int);
void m_add_u32(struct imsgproc *, uint32_t);
void m_add_u64(struct imsgproc *, uint64_t);
void m_add_size(struct imsgproc *, size_t);
void m_add_time(struct imsgproc *, time_t);
void m_add_string(struct imsgproc *, const char *);
void m_add_sockaddr(struct imsgproc *, const struct sockaddr *);
void m_end(struct imsgproc *);
int m_is_eom(struct imsgproc *);
void m_get(struct imsgproc *, void *, size_t);
void m_get_int(struct imsgproc *, int *);
void m_get_u32(struct imsgproc *, uint32_t *);
void m_get_u64(struct imsgproc *, uint64_t *);
void m_get_size(struct imsgproc *, size_t *);
void m_get_time(struct imsgproc *, time_t *);
void m_get_string(struct imsgproc *, const char **);
void m_get_sockaddr(struct imsgproc *, struct sockaddr *);
resolver_dispatch_request(struct imsgproc *proc, struct imsg *imsg)
resolver_dispatch_result(struct imsgproc *proc, struct imsg *imsg)
struct imsgproc *proc;