Remmina - The GTK+ Remote Desktop Client  v1.4.2
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.
remmina_utils.h
Go to the documentation of this file.
1 /*
2  * Remmina - The GTK+ Remote Desktop Client
3  * Copyright (C) 2016-2020 Antenore Gatta, Giovanni Panozzo
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  *
20  * In addition, as a special exception, the copyright holders give
21  * permission to link the code of portions of this program with the
22  * OpenSSL library under certain conditions as described in each
23  * individual source file, and distribute linked combinations
24  * including the two.
25  * You must obey the GNU General Public License in all respects
26  * for all of the code used other than OpenSSL. * If you modify
27  * file(s) with this exception, you may extend this exception to your
28  * version of the file(s), but you are not obligated to do so. * If you
29  * do not wish to do so, delete this exception statement from your
30  * version. * If you delete this exception statement from all source
31  * files in the program, then also delete it here.
32  *
33  */
34 
40 #pragma once
41 
42 G_BEGIN_DECLS
43 gint remmina_utils_string_find(GString *haystack, gint start, gint end, const gchar *needle);
44 gint remmina_utils_string_replace(GString *str, gint pos, gint len, const gchar *replace);
45 guint remmina_utils_string_replace_all(GString *haystack, const gchar *needle, const gchar *replace);
46 gchar *remmina_utils_string_strip(const gchar *s);
47 
48 gchar *remmina_utils_get_lang();
49 const gchar *remmina_utils_get_kernel_name();
51 const gchar *remmina_utils_get_kernel_arch();
56 GHashTable *remmina_utils_get_etc_release();
57 const gchar *remmina_utils_get_os_info();
58 gchar *remmina_sha1_file(const gchar *filename);
60 G_END_DECLS
gchar * remmina_utils_get_lsb_id()
Print the Distributor as specified by the lsb_release command.
gchar * remmina_gen_random_uuid()
Generate a random sting of chars to be used as part of UID for news or stats.
gchar * remmina_utils_string_strip(const gchar *s)
Strip , and " from a given string.
GHashTable * remmina_utils_get_etc_release()
Print the distribution description if found.
gchar * remmina_sha1_file(const gchar *filename)
Create a hexadecimal string version of the SHA-1 digest of the contents of the named file...
const gchar * remmina_utils_get_kernel_release()
Return the OS version as in "uname -r".
const gchar * remmina_utils_get_kernel_arch()
Return the machine hardware name as in "uname -m".
gchar * remmina_utils_get_lsb_description()
Print the Distribution description as specified by the lsb_release command.
guint remmina_utils_string_replace_all(GString *haystack, const gchar *needle, const gchar *replace)
Replaces all occurrences of needle in haystack with replace.
gint remmina_utils_string_replace(GString *str, gint pos, gint len, const gchar *replace)
gchar * remmina_utils_get_lsb_codename()
Print the Distribution codename as specified by the lsb_release command.
gchar * remmina_utils_get_lang()
Return the current language defined in the LC_ALL.
const gchar * remmina_utils_get_os_info()
A sample function to show how use the other fOS related functions.
const gchar * remmina_utils_get_kernel_name()
Return the OS name as in "uname -s".
G_BEGIN_DECLS gint remmina_utils_string_find(GString *haystack, gint start, gint end, const gchar *needle)
gchar * remmina_utils_get_lsb_release()
Print the Distribution release name as specified by the lsb_release command.