Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/XRDP/sesman/chansrv/   (Gnome Linux Desktop Version 4.23.2©)  Datei vom 7.6.2026 mit Größe 2 kB image not shown  

Quelle  chansrv_config.h

  Sprache: C
 

/**
 * xrdp: A Remote Desktop Protocol server.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * This file contains the chansrv configuration parameters from sesman.ini
 */


#ifndef _CHANSRV_CONFIG
#define _CHANSRV_CONFIG

#include <sys/stat.h>

struct config_chansrv
{
    /** sesman listening port */
    char *listen_port;

    /** Whether the FUSE mount is enabled or not */
    int enable_fuse_mount;

    /** Whether to use direct I/O to FUSE filesystems */
    int fuse_direct_io;

    /** RestrictOutboundClipboard setting from sesman.ini */
    int restrict_outbound_clipboard;
    /** RestrictInboundClipboard setting from sesman.ini */
    int restrict_inbound_clipboard;

    /** * FuseMountName from sesman.ini */
    char *fuse_mount_name;
    /** * FuseMountNameColonCharReplacement from sesman.ini */
    char fuse_mount_name_colon_char_replacement;
    /** FileUmask from sesman.ini */
    mode_t file_umask;

    /** Whether to use nautilus3-compatible file lists for the clipboard */
    int use_nautilus3_flist_format;

    /** Whether to report max free space for the FUSE mountpoint */
    int fuse_root_report_max_free;

    /** Number of silent frames to send before SNDC_CLOSE is sent, setting from sesman.ini */
    unsigned int num_silent_frames_aac;
    unsigned int num_silent_frames_mp3;
    /** Do net send sound data afer SNDC_CLOSE is sent. unit is millisecond, setting from sesman.ini */
    unsigned int msec_do_not_send;

    /** LogFilePath from sesman.ini ([ChansrvLogging]) */
    char *log_file_path;
};


/**
 *
 * @brief Reads sesman configuration
 * @param use_logger Use logger to log errors (otherwise stdout)
 * @param sesman_ini Name of configuration file to read
 *
 * @return configuration on success, NULL on failure
 *
 * @pre logging is assumed to be active
 * @post pass return value to config_free() to prevent memory leaks
 *
 */

struct config_chansrv *
config_read(int use_logger, const char *sesman_ini);

/**
 *
 * @brief Dumps configuration to stdout
 * @param pointer to a config_chansrv struct
 *
 */

void
config_dump(struct config_chansrv *config);

/**
 *
 * @brief Frees configuration allocated by config_read()
 * @param pointer to a config_chansrv struct (may be NULL)
 *
 */

void
config_free(struct config_chansrv *cs);

#endif /* _CHANSRV_CONFIG */

Messung V0.5 in Prozent
C=91 H=95 G=92

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-07-10) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.