cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

conf.h (1984B)


      1/*
      2 * Licensed to the Apache Software Foundation (ASF) under one
      3 * or more contributor license agreements.  See the NOTICE file
      4 * distributed with this work for additional information
      5 * regarding copyright ownership.  The ASF licenses this file
      6 * to you under the Apache License, Version 2.0 (the
      7 * "License"); you may not use this file except in compliance
      8 * with the License.  You may obtain a copy of the License at
      9 *
     10 *   http://www.apache.org/licenses/LICENSE-2.0
     11 *
     12 * Unless required by applicable law or agreed to in writing,
     13 * software distributed under the License is distributed on an
     14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     15 * KIND, either express or implied.  See the License for the
     16 * specific language governing permissions and limitations
     17 * under the License.
     18 */
     19
     20#ifndef GUACD_CONF_H
     21#define GUACD_CONF_H
     22
     23#include "config.h"
     24
     25#include <guacamole/client.h>
     26
     27/**
     28 * The default host that guacd should bind to, if no other host is explicitly
     29 * specified.
     30 */
     31#define GUACD_DEFAULT_BIND_HOST "localhost"
     32
     33/**
     34 * The default port that guacd should bind to, if no other port is explicitly
     35 * specified.
     36 */
     37#define GUACD_DEFAULT_BIND_PORT "4822"
     38
     39/**
     40 * The contents of a guacd configuration file.
     41 */
     42typedef struct guacd_config {
     43
     44    /**
     45     * The host to bind on.
     46     */
     47    char* bind_host;
     48
     49    /**
     50     * The port to bind on.
     51     */
     52    char* bind_port;
     53
     54    /**
     55     * The file to write the PID in, if any.
     56     */
     57    char* pidfile;
     58
     59    /**
     60     * Whether guacd should run in the foreground.
     61     */
     62    int foreground;
     63
     64    /**
     65     * Whether guacd should simply print its version information and exit.
     66     */
     67    int print_version;
     68
     69#ifdef ENABLE_SSL
     70    /**
     71     * SSL certificate file.
     72     */
     73    char* cert_file;
     74
     75    /**
     76     * SSL private key file.
     77     */
     78    char* key_file;
     79#endif
     80
     81    /**
     82     * The maximum log level to be logged by guacd.
     83     */
     84    guac_client_log_level max_log_level;
     85
     86} guacd_config;
     87
     88#endif
     89