view src/master/auth-process.h @ 6410:e4eb71ae8e96 HEAD

Changed .h ifdef/defines to use <NAME>_H format.
author Timo Sirainen <tss@iki.fi>
date Sun, 16 Sep 2007 11:31:27 +0300
parents 86625faa49b5
children
line wrap: on
line source

#ifndef AUTH_PROCESS_H
#define AUTH_PROCESS_H

struct login_auth_request;

extern bool have_initialized_auth_processes;

void auth_master_callback(const char *user, const char *const *args,
			  struct login_auth_request *request);

/* Find process for given id */
struct auth_process *auth_process_find(unsigned int pid);

/* Request information about given cookie */
void auth_process_request(struct auth_process *process, unsigned int login_pid,
			  unsigned int login_id,
			  struct login_auth_request *request);

/* Close any fds used by auth processes */
void auth_processes_destroy_all(void);

void auth_processes_init(void);
void auth_processes_deinit(void);

#endif