mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
os: move Auth* function types to separate header
The generic auth handling isn't really OS specific, and only few sites actually need to call it, so at least it's prototypes are better off in some separate header. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1311>
This commit is contained in:
committed by
Marge Bot
parent
5620102dfe
commit
6816605e22
29
os/auth.h
Normal file
29
os/auth.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef _XSERVER_OS_AUTH_H
|
||||
#define _XSERVER_OS_AUTH_H
|
||||
|
||||
#include <X11/X.h>
|
||||
|
||||
#include "dix.h"
|
||||
|
||||
#define AuthInitArgs void
|
||||
typedef void (*AuthInitFunc) (AuthInitArgs);
|
||||
|
||||
#define AuthAddCArgs unsigned short data_length, const char *data, XID id
|
||||
typedef int (*AuthAddCFunc) (AuthAddCArgs);
|
||||
|
||||
#define AuthCheckArgs unsigned short data_length, const char *data, ClientPtr client, const char **reason
|
||||
typedef XID (*AuthCheckFunc) (AuthCheckArgs);
|
||||
|
||||
#define AuthFromIDArgs XID id, unsigned short *data_lenp, char **datap
|
||||
typedef int (*AuthFromIDFunc) (AuthFromIDArgs);
|
||||
|
||||
#define AuthGenCArgs unsigned data_length, const char *data, XID id, unsigned *data_length_return, char **data_return
|
||||
typedef XID (*AuthGenCFunc) (AuthGenCArgs);
|
||||
|
||||
#define AuthRemCArgs unsigned short data_length, const char *data
|
||||
typedef int (*AuthRemCFunc) (AuthRemCArgs);
|
||||
|
||||
#define AuthRstCArgs void
|
||||
typedef int (*AuthRstCFunc) (AuthRstCArgs);
|
||||
|
||||
#endif /* _XSERVER_OS_AUTH_H */
|
||||
Reference in New Issue
Block a user