mirror of https://github.com/neutrinolabs/xrdp
win32 fixes
This commit is contained in:
parent
c401d58c74
commit
7c69e43493
|
@ -21,9 +21,9 @@
|
|||
#if !defined(FILE_H)
|
||||
#define FILE_H
|
||||
|
||||
int
|
||||
int APP_CC
|
||||
file_read_sections(int fd, struct list* names);
|
||||
int
|
||||
int APP_CC
|
||||
file_read_section(int fd, char* section, struct list* names,
|
||||
struct list* values);
|
||||
|
||||
|
|
|
@ -19,12 +19,14 @@
|
|||
session manager - read config file
|
||||
*/
|
||||
|
||||
#include "arch.h"
|
||||
#include "list.h"
|
||||
#include "file.h"
|
||||
#include "sesman.h"
|
||||
|
||||
/******************************************************************************/
|
||||
static int text2bool(char* s)
|
||||
static int APP_CC
|
||||
text2bool(char* s)
|
||||
{
|
||||
if (0 == g_strncasecmp(s, "1", 1) ||
|
||||
0 == g_strncasecmp(s, "true", 4) ||
|
||||
|
@ -48,7 +50,7 @@ config_read(struct config_sesman* cfg)
|
|||
fd = g_file_open(SESMAN_CFG_FILE);
|
||||
if (-1 == fd)
|
||||
{
|
||||
g_printf("sesman: error reading config: %s\n\r", SESMAN_CFG_FILE);
|
||||
g_printf("sesman: error reading config: %s\r\n", SESMAN_CFG_FILE);
|
||||
return 1;
|
||||
}
|
||||
g_memset(cfg, 0, sizeof(struct config_sesman));
|
||||
|
@ -73,8 +75,10 @@ config_read(struct config_sesman* cfg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
int DEFAULT_CC
|
||||
config_read_globals(int file, struct config_sesman* cf, struct list* param_n, struct list* param_v)
|
||||
config_read_globals(int file, struct config_sesman* cf, struct list* param_n,
|
||||
struct list* param_v)
|
||||
{
|
||||
int i;
|
||||
char* buf;
|
||||
|
@ -104,17 +108,19 @@ config_read_globals(int file, struct config_sesman* cf, struct list* param_n, st
|
|||
}
|
||||
}
|
||||
|
||||
g_printf("sesman config:\n\r");
|
||||
g_printf("\tListenPort: %s\n\r", cf->listen_port);
|
||||
g_printf("\tEnableUserWindowManager: %i\n\r", cf->enable_user_wm);
|
||||
g_printf("\tUserWindowManager: %s\n\r", cf->user_wm);
|
||||
g_printf("\tDefaultWindowManager: %s\n\r", cf->default_wm);
|
||||
g_printf("sesman config:\r\n");
|
||||
g_printf("\tListenPort: %s\r\n", cf->listen_port);
|
||||
g_printf("\tEnableUserWindowManager: %i\r\n", cf->enable_user_wm);
|
||||
g_printf("\tUserWindowManager: %s\r\n", cf->user_wm);
|
||||
g_printf("\tDefaultWindowManager: %s\r\n", cf->default_wm);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
int DEFAULT_CC
|
||||
config_read_logging(int file, struct log_config* lc, struct list* param_n, struct list* param_v)
|
||||
config_read_logging(int file, struct log_config* lc, struct list* param_n,
|
||||
struct list* param_v)
|
||||
{
|
||||
int i;
|
||||
char* buf;
|
||||
|
@ -152,11 +158,11 @@ config_read_logging(int file, struct log_config* lc, struct list* param_n, struc
|
|||
}
|
||||
}
|
||||
|
||||
g_printf("logging configuration:\n\r");
|
||||
g_printf("\tLogFile: %s\n\r",lc->log_file);
|
||||
g_printf("\tLogLevel: %i\n\r", lc->log_level);
|
||||
g_printf("\tEnableSyslog: %i\n\r", lc->enable_syslog);
|
||||
g_printf("\tSyslogLevel: %i\n\r", lc->syslog_level);
|
||||
g_printf("logging configuration:\r\n");
|
||||
g_printf("\tLogFile: %s\r\n",lc->log_file);
|
||||
g_printf("\tLogLevel: %i\r\n", lc->log_level);
|
||||
g_printf("\tEnableSyslog: %i\r\n", lc->enable_syslog);
|
||||
g_printf("\tSyslogLevel: %i\r\n", lc->syslog_level);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue