/*
 * mod_reqin_log.h - Apache HTTPD module for logging HTTP requests as JSON to Unix socket
 *
 * Copyright (c) 2026. All rights reserved.
 */

#ifndef MOD_REQIN_LOG_H
#define MOD_REQIN_LOG_H

#include "httpd.h"
#include "http_config.h"
#include "apr_tables.h"

/* Module name */
#define MOD_REQIN_LOG_NAME "mod_reqin_log"

/* Default configuration values */
#define DEFAULT_MAX_HEADERS 25
#define DEFAULT_MAX_HEADER_VALUE_LEN 256
#define DEFAULT_RECONNECT_INTERVAL 10
#define DEFAULT_ERROR_REPORT_INTERVAL 10

/* Module configuration structure */
typedef struct {
    int enabled;
    const char *socket_path;
    apr_array_header_t *headers;
    int max_headers;
    int max_header_value_len;
    int reconnect_interval;
    int error_report_interval;
} reqin_log_config_t;

/* External module declaration */
extern module AP_MODULE_DECLARE_DATA reqin_log_module;

#endif /* MOD_REQIN_LOG_H */
