view src/master/auth-process.h @ 4907:5b4c9b20eba0 HEAD

Replaced void *context from a lot of callbacks with the actual context type. Also added/fixed some context type checks.
author Timo Sirainen <tss@iki.fi>
date Fri, 15 Dec 2006 20:38:08 +0200
parents 0f31778d3c34
children 86625faa49b5
line wrap: on
line source

#ifndef __AUTH_PROCESS_H
#define __AUTH_PROCESS_H

struct login_auth_request;

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