rofi
1.5.4
|
#include <config.h>
#include <glib.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include <dirent.h>
#include <strings.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <helper.h>
#include <glob.h>
#include "rofi.h"
#include "settings.h"
#include "history.h"
#include "dialogs/ssh.h"
#include "mode-private.h"
Go to the source code of this file.
Data Structures | |
struct | _SshEntry |
struct | SSHModePrivateData |
#define | G_LOG_DOMAIN "Dialogs.Ssh" |
#define | SSH_CACHE_FILE "rofi-2.sshcache" |
#define | SSH_TOKEN_DELIM "= \t\r\n" |
typedef struct _SshEntry | SshEntry |
Mode | ssh_mode |
static int | execshssh (const SshEntry *entry) |
static void | exec_ssh (const SshEntry *entry) |
static void | delete_ssh (const char *host) |
static SshEntry * | read_known_hosts_file (const char *path, SshEntry *retv, unsigned int *length) |
static SshEntry * | read_hosts_file (SshEntry *retv, unsigned int *length) |
static void | add_known_hosts_file (SSHModePrivateData *pd, const char *token) |
static void | parse_ssh_config_file (SSHModePrivateData *pd, const char *filename, SshEntry **retv, unsigned int *length, unsigned int num_favorites) |
static SshEntry * | get_ssh (SSHModePrivateData *pd, unsigned int *length) |
static int | ssh_mode_init (Mode *sw) |
static unsigned int | ssh_mode_get_num_entries (const Mode *sw) |
static void | ssh_mode_destroy (Mode *sw) |
static ModeMode | ssh_mode_result (Mode *sw, int mretv, char **input, unsigned int selected_line) |
static char * | _get_display_value (const Mode *sw, unsigned int selected_line, G_GNUC_UNUSED int *state, G_GNUC_UNUSED GList **attr_list, int get_entry) |
static int | ssh_token_match (const Mode *sw, rofi_int_matcher **tokens, unsigned int index) |