Remmina - The GTK+ Remote Desktop Client
v1.4.33
Remmina is a remote desktop client written in GTK+, aiming to be useful for system administrators and travellers, who need to work with lots of remote computers in front of either large monitors or tiny netbooks. Remmina supports multiple network protocols in an integrated and consistent user interface. Currently RDP, VNC, NX, XDMCP and SSH are supported.
|
Go to the source code of this file.
Data Structures | |
struct | lsb_distro_info |
struct | distro_info |
Typedefs | |
typedef struct lsb_distro_info | LSBDistroInfo |
typedef struct distro_info | DistroInfo |
Functions | |
gint | remmina_utils_strpos (const gchar *haystack, const gchar *needle) |
gint | remmina_utils_string_find (GString *haystack, gint start, gint end, const gchar *needle) |
gint | remmina_utils_string_replace (GString *str, gint pos, gint len, const gchar *replace) |
guint | remmina_utils_string_replace_all (GString *haystack, const gchar *needle, const gchar *replace) |
Replaces all occurrences of needle in haystack with replace. More... | |
gchar * | remmina_utils_string_strip (const gchar *s) |
Strip , and " from a given string. More... | |
static gchar * | remmina_utils_read_distrofile (gchar *filename) |
OS related functions. More... | |
gchar * | remmina_utils_get_lang () |
Return the current language defined in the LC_ALL. More... | |
const gchar * | remmina_utils_get_kernel_name () |
Return the OS name as in "uname -s". More... | |
const gchar * | remmina_utils_get_kernel_release () |
Return the OS version as in "uname -r". More... | |
const gchar * | remmina_utils_get_kernel_arch () |
Return the machine hardware name as in "uname -m". More... | |
gchar * | remmina_utils_get_lsb_id () |
Print the Distributor as specified by the lsb_release command. More... | |
gchar * | remmina_utils_get_lsb_description () |
Print the Distribution description as specified by the lsb_release command. More... | |
gchar * | remmina_utils_get_lsb_release () |
Print the Distribution release name as specified by the lsb_release command. More... | |
gchar * | remmina_utils_get_lsb_codename () |
Print the Distribution codename as specified by the lsb_release command. More... | |
GHashTable * | remmina_utils_get_etc_release () |
Print the distribution description if found. More... | |
const gchar * | remmina_utils_get_os_info () |
A sample function to show how use the other fOS related functions. More... | |
gchar * | remmina_sha1_file (const gchar *filename) |
Create a hexadecimal string version of the SHA-1 digest of the contents of the named file. More... | |
Variables | |
struct utsname | u |
static DistroInfo | distroArray [] |
typedef struct distro_info DistroInfo |
typedef struct lsb_distro_info LSBDistroInfo |
gchar* remmina_sha1_file | ( | const gchar * | filename | ) |
Create a hexadecimal string version of the SHA-1 digest of the contents of the named file.
If any error occurs while reading the file, (permission denied, file not found, etc.), this function returns NULL.
Taken from https://github.com/ttuegel/notmuch do PR in case of substantial modifications.
Definition at line 460 of file remmina_utils.c.
GHashTable* remmina_utils_get_etc_release | ( | ) |
Print the distribution description if found.
Test each known distribution specific information file and print it’s content.
Definition at line 396 of file remmina_utils.c.
const gchar* remmina_utils_get_kernel_arch | ( | ) |
Return the machine hardware name as in "uname -m".
Definition at line 326 of file remmina_utils.c.
const gchar* remmina_utils_get_kernel_name | ( | ) |
Return the OS name as in "uname -s".
Definition at line 306 of file remmina_utils.c.
const gchar* remmina_utils_get_kernel_release | ( | ) |
Return the OS version as in "uname -r".
Definition at line 312 of file remmina_utils.c.
gchar* remmina_utils_get_lang | ( | ) |
Return the current language defined in the LC_ALL.
Definition at line 287 of file remmina_utils.c.
gchar* remmina_utils_get_lsb_codename | ( | ) |
Print the Distribution codename as specified by the lsb_release command.
Definition at line 382 of file remmina_utils.c.
gchar* remmina_utils_get_lsb_description | ( | ) |
Print the Distribution description as specified by the lsb_release command.
Definition at line 349 of file remmina_utils.c.
gchar* remmina_utils_get_lsb_id | ( | ) |
Print the Distributor as specified by the lsb_release command.
Definition at line 336 of file remmina_utils.c.
gchar* remmina_utils_get_lsb_release | ( | ) |
Print the Distribution release name as specified by the lsb_release command.
Definition at line 369 of file remmina_utils.c.
const gchar* remmina_utils_get_os_info | ( | ) |
A sample function to show how use the other fOS related functions.
Definition at line 424 of file remmina_utils.c.
|
static |
OS related functions.
remmina_utils_read_distrofile.
Look for a distro version file /etc/xxx-release. Once found, read the file in and figure out which distribution.
filename | The file path of a Linux distribution release file. |
distroSize | The size of the distribution name. |
distro | The full distro name. |
Definition at line 251 of file remmina_utils.c.
gint remmina_utils_string_find | ( | GString * | haystack, |
gint | start, | ||
gint | end, | ||
const gchar * | needle | ||
) |
Definition at line 141 of file remmina_utils.c.
gint remmina_utils_string_replace | ( | GString * | str, |
gint | pos, | ||
gint | len, | ||
const gchar * | replace | ||
) |
Definition at line 173 of file remmina_utils.c.
guint remmina_utils_string_replace_all | ( | GString * | haystack, |
const gchar * | needle, | ||
const gchar * | replace | ||
) |
Replaces all occurrences of needle in haystack with replace.
haystack | The input string to operate on. This string is modified in place. |
needle | The string which should be replaced. |
replace | The replacement for needle. |
Definition at line 193 of file remmina_utils.c.
gchar* remmina_utils_string_strip | ( | const gchar * | s | ) |
Strip
, and " from a given string.
This function is particularly useful with g_spawn_command_line_sync that does not strip control characters from the output.
a | string. |
Definition at line 220 of file remmina_utils.c.
gint remmina_utils_strpos | ( | const gchar * | haystack, |
const gchar * | needle | ||
) |
Definition at line 123 of file remmina_utils.c.
|
static |
Definition at line 79 of file remmina_utils.c.
struct utsname u |
Definition at line 54 of file remmina_utils.c.