Welcome to mirror list, hosted at ThFree Co, Russian Federation.

remmina__utils_8c.html « public - gitlab.com/Remmina/remminadoc.gitlab.io.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 70a2e02497aad915a81ce4474c505f28ac3a48a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Remmina - The GTK+ Remote Desktop Client: remmina_utils.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="org.remmina.Remmina.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Remmina - The GTK+ Remote Desktop Client
   &#160;<span id="projectnumber">v1.4.33</span>
   </div>
   <div id="projectbrief">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.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('remmina__utils_8c.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">remmina_utils.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="remmina__utils_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlsb__distro__info.html">lsb_distro_info</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdistro__info.html">distro_info</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a376b0273338fd875054d93b329e85fba"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structlsb__distro__info.html">lsb_distro_info</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#a376b0273338fd875054d93b329e85fba">LSBDistroInfo</a></td></tr>
<tr class="separator:a376b0273338fd875054d93b329e85fba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1371483cedecdda522244523c1bb96b1"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structdistro__info.html">distro_info</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#a1371483cedecdda522244523c1bb96b1">DistroInfo</a></td></tr>
<tr class="separator:a1371483cedecdda522244523c1bb96b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ae4318060ee81f8fbd907904892dd71d3"><td class="memItemLeft" align="right" valign="top">gint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#ae4318060ee81f8fbd907904892dd71d3">remmina_utils_strpos</a> (const gchar *haystack, const gchar *needle)</td></tr>
<tr class="separator:ae4318060ee81f8fbd907904892dd71d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75eb5f79df692dfe4db221d03a5fa355"><td class="memItemLeft" align="right" valign="top">gint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#a75eb5f79df692dfe4db221d03a5fa355">remmina_utils_string_find</a> (GString *haystack, gint start, gint end, const gchar *needle)</td></tr>
<tr class="separator:a75eb5f79df692dfe4db221d03a5fa355"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6859a61aa28f46591750c9afdef66f4"><td class="memItemLeft" align="right" valign="top">gint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#aa6859a61aa28f46591750c9afdef66f4">remmina_utils_string_replace</a> (GString *str, gint pos, gint len, const gchar *replace)</td></tr>
<tr class="separator:aa6859a61aa28f46591750c9afdef66f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac804e6111e538ee2fa425b8b6fd1fb66"><td class="memItemLeft" align="right" valign="top">guint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#ac804e6111e538ee2fa425b8b6fd1fb66">remmina_utils_string_replace_all</a> (GString *haystack, const gchar *needle, const gchar *replace)</td></tr>
<tr class="memdesc:ac804e6111e538ee2fa425b8b6fd1fb66"><td class="mdescLeft">&#160;</td><td class="mdescRight">Replaces all occurrences of <em>needle</em> in <em>haystack</em> with <em>replace</em>.  <a href="#ac804e6111e538ee2fa425b8b6fd1fb66">More...</a><br /></td></tr>
<tr class="separator:ac804e6111e538ee2fa425b8b6fd1fb66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe83bd0997a1054045e17d3f66c8bb0d"><td class="memItemLeft" align="right" valign="top">gchar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#afe83bd0997a1054045e17d3f66c8bb0d">remmina_utils_string_strip</a> (const gchar *s)</td></tr>
<tr class="memdesc:afe83bd0997a1054045e17d3f66c8bb0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Strip <br />
,  and " from a given string.  <a href="#afe83bd0997a1054045e17d3f66c8bb0d">More...</a><br /></td></tr>
<tr class="separator:afe83bd0997a1054045e17d3f66c8bb0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a297576937e5f9be372f1861a87c41dfa"><td class="memItemLeft" align="right" valign="top">static gchar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#a297576937e5f9be372f1861a87c41dfa">remmina_utils_read_distrofile</a> (gchar *filename)</td></tr>
<tr class="memdesc:a297576937e5f9be372f1861a87c41dfa"><td class="mdescLeft">&#160;</td><td class="mdescRight">OS related functions.  <a href="#a297576937e5f9be372f1861a87c41dfa">More...</a><br /></td></tr>
<tr class="separator:a297576937e5f9be372f1861a87c41dfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f10e190a6dd212fcb0cf36ce81c8324"><td class="memItemLeft" align="right" valign="top">gchar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#a0f10e190a6dd212fcb0cf36ce81c8324">remmina_utils_get_lang</a> ()</td></tr>
<tr class="memdesc:a0f10e190a6dd212fcb0cf36ce81c8324"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the current language defined in the LC_ALL.  <a href="#a0f10e190a6dd212fcb0cf36ce81c8324">More...</a><br /></td></tr>
<tr class="separator:a0f10e190a6dd212fcb0cf36ce81c8324"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfc722d07d9936711794411bfbed0522"><td class="memItemLeft" align="right" valign="top">const gchar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#abfc722d07d9936711794411bfbed0522">remmina_utils_get_kernel_name</a> ()</td></tr>
<tr class="memdesc:abfc722d07d9936711794411bfbed0522"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the OS name as in "uname -s".  <a href="#abfc722d07d9936711794411bfbed0522">More...</a><br /></td></tr>
<tr class="separator:abfc722d07d9936711794411bfbed0522"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57603aa88df56e77e1a6de0f215f21aa"><td class="memItemLeft" align="right" valign="top">const gchar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#a57603aa88df56e77e1a6de0f215f21aa">remmina_utils_get_kernel_release</a> ()</td></tr>
<tr class="memdesc:a57603aa88df56e77e1a6de0f215f21aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the OS version as in "uname -r".  <a href="#a57603aa88df56e77e1a6de0f215f21aa">More...</a><br /></td></tr>
<tr class="separator:a57603aa88df56e77e1a6de0f215f21aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a116e7cd4565386fe531d3a6d1a3d3730"><td class="memItemLeft" align="right" valign="top">const gchar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#a116e7cd4565386fe531d3a6d1a3d3730">remmina_utils_get_kernel_arch</a> ()</td></tr>
<tr class="memdesc:a116e7cd4565386fe531d3a6d1a3d3730"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the machine hardware name as in "uname -m".  <a href="#a116e7cd4565386fe531d3a6d1a3d3730">More...</a><br /></td></tr>
<tr class="separator:a116e7cd4565386fe531d3a6d1a3d3730"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa768b6fe171695d212da4c6eaf74cf22"><td class="memItemLeft" align="right" valign="top">gchar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#aa768b6fe171695d212da4c6eaf74cf22">remmina_utils_get_lsb_id</a> ()</td></tr>
<tr class="memdesc:aa768b6fe171695d212da4c6eaf74cf22"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the Distributor as specified by the lsb_release command.  <a href="#aa768b6fe171695d212da4c6eaf74cf22">More...</a><br /></td></tr>
<tr class="separator:aa768b6fe171695d212da4c6eaf74cf22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac00cb21c5cb5efcf7afc6eeae2147a75"><td class="memItemLeft" align="right" valign="top">gchar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#ac00cb21c5cb5efcf7afc6eeae2147a75">remmina_utils_get_lsb_description</a> ()</td></tr>
<tr class="memdesc:ac00cb21c5cb5efcf7afc6eeae2147a75"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the Distribution description as specified by the lsb_release command.  <a href="#ac00cb21c5cb5efcf7afc6eeae2147a75">More...</a><br /></td></tr>
<tr class="separator:ac00cb21c5cb5efcf7afc6eeae2147a75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ee50df5d7585d229a154a712c9161ca"><td class="memItemLeft" align="right" valign="top">gchar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#a5ee50df5d7585d229a154a712c9161ca">remmina_utils_get_lsb_release</a> ()</td></tr>
<tr class="memdesc:a5ee50df5d7585d229a154a712c9161ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the Distribution release name as specified by the lsb_release command.  <a href="#a5ee50df5d7585d229a154a712c9161ca">More...</a><br /></td></tr>
<tr class="separator:a5ee50df5d7585d229a154a712c9161ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b4dbb0da7c8ba4bd86877097b85d10c"><td class="memItemLeft" align="right" valign="top">gchar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#a2b4dbb0da7c8ba4bd86877097b85d10c">remmina_utils_get_lsb_codename</a> ()</td></tr>
<tr class="memdesc:a2b4dbb0da7c8ba4bd86877097b85d10c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the Distribution codename as specified by the lsb_release command.  <a href="#a2b4dbb0da7c8ba4bd86877097b85d10c">More...</a><br /></td></tr>
<tr class="separator:a2b4dbb0da7c8ba4bd86877097b85d10c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54cee350c4ecc6e77af835c4ba90df4c"><td class="memItemLeft" align="right" valign="top">GHashTable *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#a54cee350c4ecc6e77af835c4ba90df4c">remmina_utils_get_etc_release</a> ()</td></tr>
<tr class="memdesc:a54cee350c4ecc6e77af835c4ba90df4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the distribution description if found.  <a href="#a54cee350c4ecc6e77af835c4ba90df4c">More...</a><br /></td></tr>
<tr class="separator:a54cee350c4ecc6e77af835c4ba90df4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1acfeca84e3efd47ab1ef8365f94f99"><td class="memItemLeft" align="right" valign="top">const gchar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#af1acfeca84e3efd47ab1ef8365f94f99">remmina_utils_get_os_info</a> ()</td></tr>
<tr class="memdesc:af1acfeca84e3efd47ab1ef8365f94f99"><td class="mdescLeft">&#160;</td><td class="mdescRight">A sample function to show how use the other fOS related functions.  <a href="#af1acfeca84e3efd47ab1ef8365f94f99">More...</a><br /></td></tr>
<tr class="separator:af1acfeca84e3efd47ab1ef8365f94f99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff7d3597f23cae366973218cc01a2ae8"><td class="memItemLeft" align="right" valign="top">gchar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#aff7d3597f23cae366973218cc01a2ae8">remmina_sha1_file</a> (const gchar *filename)</td></tr>
<tr class="memdesc:aff7d3597f23cae366973218cc01a2ae8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a hexadecimal string version of the SHA-1 digest of the contents of the named file.  <a href="#aff7d3597f23cae366973218cc01a2ae8">More...</a><br /></td></tr>
<tr class="separator:aff7d3597f23cae366973218cc01a2ae8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a8b6ee6e66fba40ddaf4e735ba9d4208c"><td class="memItemLeft" align="right" valign="top">struct utsname&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#a8b6ee6e66fba40ddaf4e735ba9d4208c">u</a></td></tr>
<tr class="separator:a8b6ee6e66fba40ddaf4e735ba9d4208c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a819abe021d49cefa64ffc7981aacc478"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="remmina__utils_8c.html#a1371483cedecdda522244523c1bb96b1">DistroInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="remmina__utils_8c.html#a819abe021d49cefa64ffc7981aacc478">distroArray</a> []</td></tr>
<tr class="separator:a819abe021d49cefa64ffc7981aacc478"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="a1371483cedecdda522244523c1bb96b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1371483cedecdda522244523c1bb96b1">&#9670;&nbsp;</a></span>DistroInfo</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structdistro__info.html">distro_info</a>  <a class="el" href="remmina__utils_8c.html#a1371483cedecdda522244523c1bb96b1">DistroInfo</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a376b0273338fd875054d93b329e85fba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a376b0273338fd875054d93b329e85fba">&#9670;&nbsp;</a></span>LSBDistroInfo</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structlsb__distro__info.html">lsb_distro_info</a>  <a class="el" href="remmina__utils_8c.html#a376b0273338fd875054d93b329e85fba">LSBDistroInfo</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="aff7d3597f23cae366973218cc01a2ae8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff7d3597f23cae366973218cc01a2ae8">&#9670;&nbsp;</a></span>remmina_sha1_file()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gchar* remmina_sha1_file </td>
          <td>(</td>
          <td class="paramtype">const gchar *&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a hexadecimal string version of the SHA-1 digest of the contents of the named file. </p>
<dl class="section return"><dt>Returns</dt><dd>a newly allocated string which the caller should free() when finished.</dd></dl>
<p>If any error occurs while reading the file, (permission denied, file not found, etc.), this function returns NULL.</p>
<p>Taken from <a href="https://github.com/ttuegel/notmuch">https://github.com/ttuegel/notmuch</a> do PR in case of substantial modifications. </p>

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00460">460</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<a id="a54cee350c4ecc6e77af835c4ba90df4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54cee350c4ecc6e77af835c4ba90df4c">&#9670;&nbsp;</a></span>remmina_utils_get_etc_release()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GHashTable* remmina_utils_get_etc_release </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Print the distribution description if found. </p>
<p>Test each known distribution specific information file and print it’s content. </p><dl class="section return"><dt>Returns</dt><dd>a string or NULL. Caller must free it with g_free(). </dd></dl>

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00396">396</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<a id="a116e7cd4565386fe531d3a6d1a3d3730"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a116e7cd4565386fe531d3a6d1a3d3730">&#9670;&nbsp;</a></span>remmina_utils_get_kernel_arch()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const gchar* remmina_utils_get_kernel_arch </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the machine hardware name as in "uname -m". </p>
<dl class="section return"><dt>Returns</dt><dd>The machine hardware name or NULL. </dd></dl>

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00326">326</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<a id="abfc722d07d9936711794411bfbed0522"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abfc722d07d9936711794411bfbed0522">&#9670;&nbsp;</a></span>remmina_utils_get_kernel_name()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const gchar* remmina_utils_get_kernel_name </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the OS name as in "uname -s". </p>
<dl class="section return"><dt>Returns</dt><dd>The OS name or NULL. </dd></dl>

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00306">306</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<a id="a57603aa88df56e77e1a6de0f215f21aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57603aa88df56e77e1a6de0f215f21aa">&#9670;&nbsp;</a></span>remmina_utils_get_kernel_release()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const gchar* remmina_utils_get_kernel_release </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the OS version as in "uname -r". </p>
<dl class="section return"><dt>Returns</dt><dd>The OS release or NULL. </dd></dl>

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00312">312</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<a id="a0f10e190a6dd212fcb0cf36ce81c8324"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f10e190a6dd212fcb0cf36ce81c8324">&#9670;&nbsp;</a></span>remmina_utils_get_lang()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gchar* remmina_utils_get_lang </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the current language defined in the LC_ALL. </p>
<dl class="section return"><dt>Returns</dt><dd>a language string or en_US. </dd></dl>

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00287">287</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<a id="a2b4dbb0da7c8ba4bd86877097b85d10c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b4dbb0da7c8ba4bd86877097b85d10c">&#9670;&nbsp;</a></span>remmina_utils_get_lsb_codename()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gchar* remmina_utils_get_lsb_codename </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Print the Distribution codename as specified by the lsb_release command. </p>
<dl class="section return"><dt>Returns</dt><dd>the codename string or NULL. Caller must free it with g_free(). </dd></dl>

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00382">382</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<a id="ac00cb21c5cb5efcf7afc6eeae2147a75"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac00cb21c5cb5efcf7afc6eeae2147a75">&#9670;&nbsp;</a></span>remmina_utils_get_lsb_description()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gchar* remmina_utils_get_lsb_description </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Print the Distribution description as specified by the lsb_release command. </p>
<dl class="section return"><dt>Returns</dt><dd>the Distribution description string or NULL. Caller must free it with g_free(). </dd></dl>

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00349">349</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<a id="aa768b6fe171695d212da4c6eaf74cf22"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa768b6fe171695d212da4c6eaf74cf22">&#9670;&nbsp;</a></span>remmina_utils_get_lsb_id()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gchar* remmina_utils_get_lsb_id </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Print the Distributor as specified by the lsb_release command. </p>
<dl class="section return"><dt>Returns</dt><dd>the distributor ID string or NULL. Caller must free it with g_free(). </dd></dl>

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00336">336</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<a id="a5ee50df5d7585d229a154a712c9161ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ee50df5d7585d229a154a712c9161ca">&#9670;&nbsp;</a></span>remmina_utils_get_lsb_release()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gchar* remmina_utils_get_lsb_release </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Print the Distribution release name as specified by the lsb_release command. </p>
<dl class="section return"><dt>Returns</dt><dd>the Distribution release name string or NULL. Caller must free it with g_free(). </dd></dl>

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00369">369</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<a id="af1acfeca84e3efd47ab1ef8365f94f99"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1acfeca84e3efd47ab1ef8365f94f99">&#9670;&nbsp;</a></span>remmina_utils_get_os_info()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const gchar* remmina_utils_get_os_info </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A sample function to show how use the other fOS related functions. </p>
<dl class="section return"><dt>Returns</dt><dd>a semicolon separated OS data like in "uname -srm". </dd></dl>

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00424">424</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<a id="a297576937e5f9be372f1861a87c41dfa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a297576937e5f9be372f1861a87c41dfa">&#9670;&nbsp;</a></span>remmina_utils_read_distrofile()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static gchar* remmina_utils_read_distrofile </td>
          <td>(</td>
          <td class="paramtype">gchar *&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>OS related functions. </p>
<p>remmina_utils_read_distrofile.</p>
<p>Look for a distro version file /etc/xxx-release. Once found, read the file in and figure out which distribution.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>The file path of a Linux distribution release file. </td></tr>
    <tr><td class="paramname">distroSize</td><td>The size of the distribution name. </td></tr>
    <tr><td class="paramname">distro</td><td>The full distro name. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns a string containing distro information verbatim from /etc/xxx-release (distro). Use g_free to free the string. </dd></dl>

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00251">251</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<a id="a75eb5f79df692dfe4db221d03a5fa355"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a75eb5f79df692dfe4db221d03a5fa355">&#9670;&nbsp;</a></span>remmina_utils_string_find()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gint remmina_utils_string_find </td>
          <td>(</td>
          <td class="paramtype">GString *&#160;</td>
          <td class="paramname"><em>haystack</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gint&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gint&#160;</td>
          <td class="paramname"><em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const gchar *&#160;</td>
          <td class="paramname"><em>needle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00141">141</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<a id="aa6859a61aa28f46591750c9afdef66f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6859a61aa28f46591750c9afdef66f4">&#9670;&nbsp;</a></span>remmina_utils_string_replace()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gint remmina_utils_string_replace </td>
          <td>(</td>
          <td class="paramtype">GString *&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gint&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gint&#160;</td>
          <td class="paramname"><em>len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const gchar *&#160;</td>
          <td class="paramname"><em>replace</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00173">173</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<a id="ac804e6111e538ee2fa425b8b6fd1fb66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac804e6111e538ee2fa425b8b6fd1fb66">&#9670;&nbsp;</a></span>remmina_utils_string_replace_all()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">guint remmina_utils_string_replace_all </td>
          <td>(</td>
          <td class="paramtype">GString *&#160;</td>
          <td class="paramname"><em>haystack</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const gchar *&#160;</td>
          <td class="paramname"><em>needle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const gchar *&#160;</td>
          <td class="paramname"><em>replace</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Replaces all occurrences of <em>needle</em> in <em>haystack</em> with <em>replace</em>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">haystack</td><td>The input string to operate on. This string is modified in place. </td></tr>
    <tr><td class="paramname">needle</td><td>The string which should be replaced. </td></tr>
    <tr><td class="paramname">replace</td><td>The replacement for <em>needle</em>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Number of replacements made. </dd></dl>

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00193">193</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<a id="afe83bd0997a1054045e17d3f66c8bb0d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe83bd0997a1054045e17d3f66c8bb0d">&#9670;&nbsp;</a></span>remmina_utils_string_strip()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gchar* remmina_utils_string_strip </td>
          <td>(</td>
          <td class="paramtype">const gchar *&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Strip <br />
,  and " from a given string. </p>
<p>This function is particularly useful with g_spawn_command_line_sync that does not strip control characters from the output. </p><dl class="section warning"><dt>Warning</dt><dd>the result should be freed. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>string. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a newly allocated copy of string cleaned by , <br />
 and " </dd></dl>

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00220">220</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<a id="ae4318060ee81f8fbd907904892dd71d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4318060ee81f8fbd907904892dd71d3">&#9670;&nbsp;</a></span>remmina_utils_strpos()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gint remmina_utils_strpos </td>
          <td>(</td>
          <td class="paramtype">const gchar *&#160;</td>
          <td class="paramname"><em>haystack</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const gchar *&#160;</td>
          <td class="paramname"><em>needle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00123">123</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="a819abe021d49cefa64ffc7981aacc478"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a819abe021d49cefa64ffc7981aacc478">&#9670;&nbsp;</a></span>distroArray</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="remmina__utils_8c.html#a1371483cedecdda522244523c1bb96b1">DistroInfo</a> distroArray[]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00079">79</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
<a id="a8b6ee6e66fba40ddaf4e735ba9d4208c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b6ee6e66fba40ddaf4e735ba9d4208c">&#9670;&nbsp;</a></span>u</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct utsname u</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="remmina__utils_8c_source.html#l00054">54</a> of file <a class="el" href="remmina__utils_8c_source.html">remmina_utils.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="remmina__utils_8c.html">remmina_utils.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>