Browse Source

[core] mark config registration funcs cold

master
Glenn Strauss 3 months ago
parent
commit
f9ff15a013
  1. 12
      src/http_auth.h
  2. 6
      src/http_vhostdb.h

12
src/http_auth.h

@ -6,6 +6,7 @@
#include "buffer.h"
#include "array.h"
__attribute_cold__
void http_auth_dumbdata_reset (void);
typedef enum http_auth_digest_type {
@ -37,8 +38,12 @@ typedef struct http_auth_require_t {
array host;
} http_auth_require_t;
__attribute_cold__
http_auth_require_t * http_auth_require_init (void);
__attribute_cold__
void http_auth_require_free (http_auth_require_t *require);
int http_auth_match_rules (const http_auth_require_t *require, const char *user, const char *group, const char *host);
typedef struct http_auth_info_t {
@ -66,9 +71,16 @@ typedef struct http_auth_scheme_t {
void *p_d;
} http_auth_scheme_t;
__attribute_cold__
const http_auth_scheme_t * http_auth_scheme_get (const buffer *name);
__attribute_cold__
void http_auth_scheme_set (const http_auth_scheme_t *scheme);
__attribute_cold__
const http_auth_backend_t * http_auth_backend_get (const buffer *name);
__attribute_cold__
void http_auth_backend_set (const http_auth_backend_t *backend);
__attribute_pure__

6
src/http_vhostdb.h

@ -5,17 +5,19 @@
#include "base_decls.h"
#include "buffer.h"
__attribute_cold__
void http_vhostdb_dumbdata_reset (void);
struct http_vhostdb_backend_t;
typedef struct http_vhostdb_backend_t {
const char *name;
int(*query)(request_st *r, void *p_d, buffer *result);
void *p_d;
} http_vhostdb_backend_t;
__attribute_cold__
const http_vhostdb_backend_t * http_vhostdb_backend_get (const buffer *name);
__attribute_cold__
void http_vhostdb_backend_set (const http_vhostdb_backend_t *backend);
#endif
Loading…
Cancel
Save