Server 0.0.1
HTTP/REST server implementation

include/auth/interface/auth.h

Go to the documentation of this file.
00001 
00028 #ifndef __AUTH_INTERFACE_AUTH_H__
00029 #define __AUTH_INTERFACE_AUTH_H__
00030 
00031 #include <stdarg.h>
00032 
00033 #include "class.h"
00034 #include "auth/credential.h"
00035 
00036 typedef int (* fptr_authenticate)(void *, Credential);
00037 
00038 extern const struct interface i_Auth;
00039 
00040 struct i_Auth {
00041         const struct interface * const _;
00042         fptr_authenticate              authenticate;
00043 };
00044 
00045 extern int authenticate(void *, Credential);
00046 
00047 #endif // __AUTH_INTERFACE_AUTH_H__
00048 
00049 // vim: set ts=4 sw=4:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines