1/* Licensed to the Apache Software Foundation (ASF) under one or more
2 * contributor license agreements.  See the NOTICE file distributed with
3 * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
6 * the License.  You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef MOD_AUTHZ_DBD_H
18#define MOD_AUTHZ_DBD_H
19#include "httpd.h"
20
21/* Create a set of AUTHZ_DBD_DECLARE(type), AUTHZ_DBD_DECLARE_NONSTD(type) and
22 * AUTHZ_DBD_DECLARE_DATA with appropriate export and import tags
23 */
24#if !defined(WIN32)
25#define AUTHZ_DBD_DECLARE(type)            type
26#define AUTHZ_DBD_DECLARE_NONSTD(type)     type
27#define AUTHZ_DBD_DECLARE_DATA
28#elif defined(AUTHZ_DBD_DECLARE_STATIC)
29#define AUTHZ_DBD_DECLARE(type)            type __stdcall
30#define AUTHZ_DBD_DECLARE_NONSTD(type)     type
31#define AUTHZ_DBD_DECLARE_DATA
32#elif defined(AUTHZ_DBD_DECLARE_EXPORT)
33#define AUTHZ_DBD_DECLARE(type)            __declspec(dllexport) type __stdcall
34#define AUTHZ_DBD_DECLARE_NONSTD(type)     __declspec(dllexport) type
35#define AUTHZ_DBD_DECLARE_DATA             __declspec(dllexport)
36#else
37#define AUTHZ_DBD_DECLARE(type)            __declspec(dllimport) type __stdcall
38#define AUTHZ_DBD_DECLARE_NONSTD(type)     __declspec(dllimport) type
39#define AUTHZ_DBD_DECLARE_DATA             __declspec(dllimport)
40#endif
41
42APR_DECLARE_EXTERNAL_HOOK(authz_dbd, AUTHZ_DBD, int, client_login,
43                          (request_rec *r, int code, const char *action))
44#endif
45