tmux  3.2a
About: tmux is a terminal multiplexer that lets you switch easily between several programs in one terminal.
  Fossies Dox: tmux-3.2a.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

cfg.c File Reference
#include <sys/types.h>
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "tmux.h"
Include dependency graph for cfg.c:

Go to the source code of this file.

Functions

static enum cmd_retval cfg_client_done (struct cmdq_item *item, void *data)
 
static enum cmd_retval cfg_done (struct cmdq_item *item, void *data)
 
void start_cfg (void)
 
int load_cfg (const char *path, struct client *c, struct cmdq_item *item, int flags, struct cmdq_item **new_item)
 
int load_cfg_from_buffer (const void *buf, size_t len, const char *path, struct client *c, struct cmdq_item *item, int flags, struct cmdq_item **new_item)
 
void cfg_add_cause (const char *fmt,...)
 
void cfg_print_causes (struct cmdq_item *item)
 
void cfg_show_causes (struct session *s)
 

Variables

struct clientcfg_client
 
int cfg_finished
 
static char ** cfg_causes
 
static u_int cfg_ncauses
 
static struct cmdq_itemcfg_item
 
int cfg_quiet = 1
 
char ** cfg_files
 
u_int cfg_nfiles
 

Function Documentation

◆ cfg_add_cause()

void cfg_add_cause ( const char *  fmt,
  ... 
)

Definition at line 213 of file cfg.c.

References cfg_causes, cfg_ncauses, xreallocarray(), and xvasprintf().

Referenced by cmdq_error(), load_cfg(), and load_cfg_from_buffer().

◆ cfg_client_done()

static enum cmd_retval cfg_client_done ( struct cmdq_item item,
void *  data 
)
static

Definition at line 37 of file cfg.c.

References cfg_finished, CMD_RETURN_NORMAL, and CMD_RETURN_WAIT.

Referenced by start_cfg().

◆ cfg_done()

static enum cmd_retval cfg_done ( struct cmdq_item item,
void *  data 
)
static

Definition at line 37 of file cfg.c.

Referenced by start_cfg().

◆ cfg_print_causes()

void cfg_print_causes ( struct cmdq_item item)

Definition at line 228 of file cfg.c.

References cfg_causes, cfg_ncauses, and cmdq_print().

◆ cfg_show_causes()

◆ load_cfg()

◆ load_cfg_from_buffer()

◆ start_cfg()

Variable Documentation

◆ cfg_causes

char** cfg_causes
static

Definition at line 31 of file cfg.c.

Referenced by cfg_add_cause(), cfg_print_causes(), and cfg_show_causes().

◆ cfg_client

struct client* cfg_client

Definition at line 29 of file cfg.c.

Referenced by server_client_get_cwd(), and start_cfg().

◆ cfg_files

char** cfg_files

Definition at line 36 of file cfg.c.

Referenced by format_cb_config_files(), main(), and start_cfg().

◆ cfg_finished

int cfg_finished

◆ cfg_item

struct cmdq_item* cfg_item
static

Definition at line 33 of file cfg.c.

Referenced by start_cfg().

◆ cfg_ncauses

u_int cfg_ncauses
static

Definition at line 32 of file cfg.c.

Referenced by cfg_add_cause(), cfg_print_causes(), and cfg_show_causes().

◆ cfg_nfiles

u_int cfg_nfiles

Definition at line 37 of file cfg.c.

Referenced by format_cb_config_files(), main(), and start_cfg().

◆ cfg_quiet

int cfg_quiet = 1

Definition at line 35 of file cfg.c.

Referenced by main(), and start_cfg().