This file is indexed.

/usr/share/gtk-doc/html/libqmi-glib/QmiDevice.html is in libqmi-glib-doc 1.4.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>QmiDevice</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="libqmi-glib Reference Manual">
<link rel="up" href="ch01.html" title="Core">
<link rel="prev" href="libqmi-glib-QmiMessage.html" title="QmiMessage">
<link rel="next" href="QmiClient.html" title="QmiClient">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libqmi-glib-QmiMessage.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">libqmi-glib Reference Manual</th>
<td><a accesskey="n" href="QmiClient.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#QmiDevice.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#QmiDevice.description" class="shortcut">Description</a>
                   | 
                  <a href="#QmiDevice.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#QmiDevice.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
                   | 
                  <a href="#QmiDevice.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry">
<a name="QmiDevice"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="QmiDevice.top_of_page"></a>QmiDevice</span></h2>
<p>QmiDevice — Generic QMI device handling routines</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="QmiDevice.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">#define             <a class="link" href="QmiDevice.html#QMI-DEVICE-FILE:CAPS" title="QMI_DEVICE_FILE">QMI_DEVICE_FILE</a>
struct              <a class="link" href="QmiDevice.html#QmiDevice-struct" title="struct QmiDevice">QmiDevice</a>;
<span class="returnvalue">void</span>                <a class="link" href="QmiDevice.html#qmi-device-new" title="qmi_device_new ()">qmi_device_new</a>                      (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="type">GFile</span></a> *file</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
<a class="link" href="QmiDevice.html" title="QmiDevice"><span class="returnvalue">QmiDevice</span></a> *         <a class="link" href="QmiDevice.html#qmi-device-new-finish" title="qmi_device_new_finish ()">qmi_device_new_finish</a>               (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="returnvalue">GFile</span></a> *             <a class="link" href="QmiDevice.html#qmi-device-get-file" title="qmi_device_get_file ()">qmi_device_get_file</a>                 (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>);
<a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="returnvalue">GFile</span></a> *             <a class="link" href="QmiDevice.html#qmi-device-peek-file" title="qmi_device_peek_file ()">qmi_device_peek_file</a>                (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="QmiDevice.html#qmi-device-get-path" title="qmi_device_get_path ()">qmi_device_get_path</a>                 (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="QmiDevice.html#qmi-device-get-path-display" title="qmi_device_get_path_display ()">qmi_device_get_path_display</a>         (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="QmiDevice.html#qmi-device-is-open" title="qmi_device_is_open ()">qmi_device_is_open</a>                  (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>);
enum                <a class="link" href="QmiDevice.html#QmiDeviceOpenFlags" title="enum QmiDeviceOpenFlags">QmiDeviceOpenFlags</a>;
<span class="returnvalue">void</span>                <a class="link" href="QmiDevice.html#qmi-device-open" title="qmi_device_open ()">qmi_device_open</a>                     (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a class="link" href="QmiDevice.html#QmiDeviceOpenFlags" title="enum QmiDeviceOpenFlags"><span class="type">QmiDeviceOpenFlags</span></a> flags</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> timeout</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="QmiDevice.html#qmi-device-open-finish" title="qmi_device_open_finish ()">qmi_device_open_finish</a>              (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="QmiDevice.html#qmi-device-close" title="qmi_device_close ()">qmi_device_close</a>                    (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="QmiDevice.html#qmi-device-allocate-client" title="qmi_device_allocate_client ()">qmi_device_allocate_client</a>          (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libqmi-glib-Common-enumerations-and-flags.html#QmiService"><span class="type">QmiService</span></a> service</code></em>,
                                                         <em class="parameter"><code><span class="type">guint8</span> cid</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> timeout</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
<a class="link" href="QmiClient.html" title="QmiClient"><span class="returnvalue">QmiClient</span></a> *         <a class="link" href="QmiDevice.html#qmi-device-allocate-client-finish" title="qmi_device_allocate_client_finish ()">qmi_device_allocate_client_finish</a>   (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
enum                <a class="link" href="QmiDevice.html#QmiDeviceReleaseClientFlags" title="enum QmiDeviceReleaseClientFlags">QmiDeviceReleaseClientFlags</a>;
<span class="returnvalue">void</span>                <a class="link" href="QmiDevice.html#qmi-device-release-client" title="qmi_device_release_client ()">qmi_device_release_client</a>           (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a class="link" href="QmiClient.html" title="QmiClient"><span class="type">QmiClient</span></a> *client</code></em>,
                                                         <em class="parameter"><code><a class="link" href="QmiDevice.html#QmiDeviceReleaseClientFlags" title="enum QmiDeviceReleaseClientFlags"><span class="type">QmiDeviceReleaseClientFlags</span></a> flags</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> timeout</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="QmiDevice.html#qmi-device-release-client-finish" title="qmi_device_release_client_finish ()">qmi_device_release_client_finish</a>    (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="QmiDevice.html#qmi-device-set-instance-id" title="qmi_device_set_instance_id ()">qmi_device_set_instance_id</a>          (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><span class="type">guint8</span> instance_id</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> timeout</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="QmiDevice.html#qmi-device-set-instance-id-finish" title="qmi_device_set_instance_id_finish ()">qmi_device_set_instance_id_finish</a>   (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
                                                         <em class="parameter"><code><span class="type">guint16</span> *link_id</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="QmiDevice.html#qmi-device-command" title="qmi_device_command ()">qmi_device_command</a>                  (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libqmi-glib-QmiMessage.html#QmiMessage" title="QmiMessage"><span class="type">QmiMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> timeout</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
<a class="link" href="libqmi-glib-QmiMessage.html#QmiMessage" title="QmiMessage"><span class="returnvalue">QmiMessage</span></a> *        <a class="link" href="QmiDevice.html#qmi-device-command-finish" title="qmi_device_command_finish ()">qmi_device_command_finish</a>           (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="QmiDevice.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----QmiDevice
</pre>
</div>
<div class="refsect1">
<a name="QmiDevice.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
QmiDevice implements
 <a href="/usr/share/gtk-doc/html/gio/GAsyncInitable.html">GAsyncInitable</a>.</p>
</div>
<div class="refsect1">
<a name="QmiDevice.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="QmiDevice.html#QmiDevice--device-file" title='The "device-file" property'>device-file</a>"              <a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="type">GFile</span></a>*                : Read / Write / Construct Only
</pre>
</div>
<div class="refsect1">
<a name="QmiDevice.description"></a><h2>Description</h2>
<p>
<a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> is a generic type in charge of controlling the access of multiple
<a class="link" href="QmiClient.html" title="QmiClient"><span class="type">QmiClient</span></a> objects to the managed QMI port.
</p>
<p>
A <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> can only handle one single QMI port.
</p>
</div>
<div class="refsect1">
<a name="QmiDevice.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="QMI-DEVICE-FILE:CAPS"></a><h3>QMI_DEVICE_FILE</h3>
<pre class="programlisting">#define QMI_DEVICE_FILE "device-file"
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="QmiDevice-struct"></a><h3>struct QmiDevice</h3>
<pre class="programlisting">struct QmiDevice;</pre>
<p>
The <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> structure contains private data and should only be accessed
using the provided API.
</p>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-new"></a><h3>qmi_device_new ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                qmi_device_new                      (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="type">GFile</span></a> *file</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
Asynchronously creates a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> object to manage <em class="parameter"><code>file</code></em>.
When the operation is finished, <em class="parameter"><code>callback</code></em> will be invoked. You can then call
<a class="link" href="QmiDevice.html#qmi-device-new-finish" title="qmi_device_new_finish ()"><code class="function">qmi_device_new_finish()</code></a> to get the result of the operation.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>file</code></em> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="type">GFile</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
<td>optional <a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> to ignore.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the initialization is finished.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>the data to pass to callback function.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-new-finish"></a><h3>qmi_device_new_finish ()</h3>
<pre class="programlisting"><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="returnvalue">QmiDevice</span></a> *         qmi_device_new_finish               (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Finishes an operation started with <a class="link" href="QmiDevice.html#qmi-device-new" title="qmi_device_new ()"><code class="function">qmi_device_new()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A newly created <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> if <em class="parameter"><code>error</code></em> is set.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-get-file"></a><h3>qmi_device_get_file ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="returnvalue">GFile</span></a> *             qmi_device_get_file                 (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>);</pre>
<p>
Get the <a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="type">GFile</span></a> associated with this <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="type">GFile</span></a> that must be freed with <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-peek-file"></a><h3>qmi_device_peek_file ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="returnvalue">GFile</span></a> *             qmi_device_peek_file                (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>);</pre>
<p>
Get the <a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="type">GFile</span></a> associated with this <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>, without increasing the reference count
on the returned object.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="type">GFile</span></a>. Do not free the returned object, it is owned by <em class="parameter"><code>self</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-get-path"></a><h3>qmi_device_get_path ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       qmi_device_get_path                 (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>);</pre>
<p>
Get the system path of the underlying QMI device.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the system path of the device.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-get-path-display"></a><h3>qmi_device_get_path_display ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       qmi_device_get_path_display         (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>);</pre>
<p>
Get the system path of the underlying QMI device in UTF-8.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>UTF-8 encoded system path of the device.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-is-open"></a><h3>qmi_device_is_open ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            qmi_device_is_open                  (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>);</pre>
<p>
Checks whether the <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> is open for I/O.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>self</code></em> is open, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="QmiDeviceOpenFlags"></a><h3>enum QmiDeviceOpenFlags</h3>
<pre class="programlisting">typedef enum {
    QMI_DEVICE_OPEN_FLAGS_NONE              = 0,
    QMI_DEVICE_OPEN_FLAGS_VERSION_INFO      = 1 &lt;&lt; 0,
    QMI_DEVICE_OPEN_FLAGS_SYNC              = 1 &lt;&lt; 1,
    QMI_DEVICE_OPEN_FLAGS_NET_802_3         = 1 &lt;&lt; 2,
    QMI_DEVICE_OPEN_FLAGS_NET_RAW_IP        = 1 &lt;&lt; 3,
    QMI_DEVICE_OPEN_FLAGS_NET_QOS_HEADER    = 1 &lt;&lt; 4,
    QMI_DEVICE_OPEN_FLAGS_NET_NO_QOS_HEADER = 1 &lt;&lt; 5
} QmiDeviceOpenFlags;
</pre>
<p>
Flags to specify which actions to be performed when the device is open.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><a name="QMI-DEVICE-OPEN-FLAGS-NONE:CAPS"></a><span class="term"><code class="literal">QMI_DEVICE_OPEN_FLAGS_NONE</code></span></p></td>
<td>No flags.
</td>
</tr>
<tr>
<td><p><a name="QMI-DEVICE-OPEN-FLAGS-VERSION-INFO:CAPS"></a><span class="term"><code class="literal">QMI_DEVICE_OPEN_FLAGS_VERSION_INFO</code></span></p></td>
<td>Run version info check when opening.
</td>
</tr>
<tr>
<td><p><a name="QMI-DEVICE-OPEN-FLAGS-SYNC:CAPS"></a><span class="term"><code class="literal">QMI_DEVICE_OPEN_FLAGS_SYNC</code></span></p></td>
<td>Synchronize with endpoint once the device is open. Will release any previously allocated client ID.
</td>
</tr>
<tr>
<td><p><a name="QMI-DEVICE-OPEN-FLAGS-NET-802-3:CAPS"></a><span class="term"><code class="literal">QMI_DEVICE_OPEN_FLAGS_NET_802_3</code></span></p></td>
<td>set network port to "802.3" mode; mutually exclusive with <em class="parameter"><code>QMI_DEVICE_OPEN_FLAGS_NET_RAW_IP</code></em>
</td>
</tr>
<tr>
<td><p><a name="QMI-DEVICE-OPEN-FLAGS-NET-RAW-IP:CAPS"></a><span class="term"><code class="literal">QMI_DEVICE_OPEN_FLAGS_NET_RAW_IP</code></span></p></td>
<td>set network port to "raw IP" mode; mutally exclusive with <em class="parameter"><code>QMI_DEVICE_OPEN_FLAGS_NET_802_3</code></em>
</td>
</tr>
<tr>
<td><p><a name="QMI-DEVICE-OPEN-FLAGS-NET-QOS-HEADER:CAPS"></a><span class="term"><code class="literal">QMI_DEVICE_OPEN_FLAGS_NET_QOS_HEADER</code></span></p></td>
<td>set network port to transmit/receive QoS headers; mutually exclusive with <em class="parameter"><code>QMI_DEVICE_OPEN_FLAGS_NET_NO_QOS_HEADER</code></em>
</td>
</tr>
<tr>
<td><p><a name="QMI-DEVICE-OPEN-FLAGS-NET-NO-QOS-HEADER:CAPS"></a><span class="term"><code class="literal">QMI_DEVICE_OPEN_FLAGS_NET_NO_QOS_HEADER</code></span></p></td>
<td>set network port to not transmit/receive QoS headers; mutually exclusive with <em class="parameter"><code>QMI_DEVICE_OPEN_FLAGS_NET_QOS_HEADER</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-open"></a><h3>qmi_device_open ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                qmi_device_open                     (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a class="link" href="QmiDevice.html#QmiDeviceOpenFlags" title="enum QmiDeviceOpenFlags"><span class="type">QmiDeviceOpenFlags</span></a> flags</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> timeout</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
Asynchronously opens a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> for I/O.
</p>
<p>
When the operation is finished <em class="parameter"><code>callback</code></em> will be called. You can then call
<a class="link" href="QmiDevice.html#qmi-device-open-finish" title="qmi_device_open_finish ()"><code class="function">qmi_device_open_finish()</code></a> to get the result of the operation.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>mask of <a class="link" href="QmiDevice.html#QmiDeviceOpenFlags" title="enum QmiDeviceOpenFlags"><span class="type">QmiDeviceOpenFlags</span></a> specifying how the device should be opened.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>timeout</code></em> :</span></p></td>
<td>maximum time, in seconds, to wait for the device to be opened.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
<td>optional <a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> to ignore.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the operation is finished.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>the data to pass to callback function.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-open-finish"></a><h3>qmi_device_open_finish ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            qmi_device_open_finish              (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Finishes an asynchronous open operation started with <a class="link" href="QmiDevice.html#qmi-device-open" title="qmi_device_open ()"><code class="function">qmi_device_open()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if successful, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if <em class="parameter"><code>error</code></em> is set.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-close"></a><h3>qmi_device_close ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            qmi_device_close                    (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Synchronously closes a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>, preventing any further I/O.
</p>
<p>
Closing a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> multiple times will not return an error.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if successful, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if <em class="parameter"><code>error</code></em> is set.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-allocate-client"></a><h3>qmi_device_allocate_client ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                qmi_device_allocate_client          (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libqmi-glib-Common-enumerations-and-flags.html#QmiService"><span class="type">QmiService</span></a> service</code></em>,
                                                         <em class="parameter"><code><span class="type">guint8</span> cid</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> timeout</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
Asynchronously allocates a new <a class="link" href="QmiClient.html" title="QmiClient"><span class="type">QmiClient</span></a> in <em class="parameter"><code>self</code></em>.
</p>
<p>
If <a class="link" href="QmiClient.html#QMI-CID-NONE:CAPS" title="QMI_CID_NONE"><span class="type">QMI_CID_NONE</span></a> is given in <em class="parameter"><code>cid</code></em>, a new client ID will be allocated;
otherwise a client with the given <em class="parameter"><code>cid</code></em> will be generated.
</p>
<p>
When the operation is finished <em class="parameter"><code>callback</code></em> will be called. You can then call
<a class="link" href="QmiDevice.html#qmi-device-allocate-client-finish" title="qmi_device_allocate_client_finish ()"><code class="function">qmi_device_allocate_client_finish()</code></a> to get the result of the operation.
</p>
<p>
Note: Clients for the <a class="link" href="libqmi-glib-Common-enumerations-and-flags.html#QMI-SERVICE-CTL:CAPS"><span class="type">QMI_SERVICE_CTL</span></a> cannot be created with this method;
instead get/peek the implicit one from <em class="parameter"><code>self</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>service</code></em> :</span></p></td>
<td>a valid <a class="link" href="libqmi-glib-Common-enumerations-and-flags.html#QmiService"><span class="type">QmiService</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cid</code></em> :</span></p></td>
<td>a valid client ID, or <a class="link" href="QmiClient.html#QMI-CID-NONE:CAPS" title="QMI_CID_NONE"><span class="type">QMI_CID_NONE</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>timeout</code></em> :</span></p></td>
<td>maximum time to wait.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
<td>optional <a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> to ignore.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the operation is finished.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>the data to pass to callback function.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-allocate-client-finish"></a><h3>qmi_device_allocate_client_finish ()</h3>
<pre class="programlisting"><a class="link" href="QmiClient.html" title="QmiClient"><span class="returnvalue">QmiClient</span></a> *         qmi_device_allocate_client_finish   (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Finishes an operation started with <a class="link" href="QmiDevice.html#qmi-device-allocate-client" title="qmi_device_allocate_client ()"><code class="function">qmi_device_allocate_client()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly allocated <a class="link" href="QmiClient.html" title="QmiClient"><span class="type">QmiClient</span></a>, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> if <em class="parameter"><code>error</code></em> is set.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="QmiDeviceReleaseClientFlags"></a><h3>enum QmiDeviceReleaseClientFlags</h3>
<pre class="programlisting">typedef enum {
    QMI_DEVICE_RELEASE_CLIENT_FLAGS_NONE        = 0,
    QMI_DEVICE_RELEASE_CLIENT_FLAGS_RELEASE_CID = 1 &lt;&lt; 0
} QmiDeviceReleaseClientFlags;
</pre>
<p>
Flags to specify which actions to be performed when releasing the client.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><a name="QMI-DEVICE-RELEASE-CLIENT-FLAGS-NONE:CAPS"></a><span class="term"><code class="literal">QMI_DEVICE_RELEASE_CLIENT_FLAGS_NONE</code></span></p></td>
<td>No flags.
</td>
</tr>
<tr>
<td><p><a name="QMI-DEVICE-RELEASE-CLIENT-FLAGS-RELEASE-CID:CAPS"></a><span class="term"><code class="literal">QMI_DEVICE_RELEASE_CLIENT_FLAGS_RELEASE_CID</code></span></p></td>
<td>Release the CID when releasing the client.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-release-client"></a><h3>qmi_device_release_client ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                qmi_device_release_client           (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a class="link" href="QmiClient.html" title="QmiClient"><span class="type">QmiClient</span></a> *client</code></em>,
                                                         <em class="parameter"><code><a class="link" href="QmiDevice.html#QmiDeviceReleaseClientFlags" title="enum QmiDeviceReleaseClientFlags"><span class="type">QmiDeviceReleaseClientFlags</span></a> flags</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> timeout</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
Asynchronously releases the <a class="link" href="QmiClient.html" title="QmiClient"><span class="type">QmiClient</span></a> from the <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.
</p>
<p>
Once the <a class="link" href="QmiClient.html" title="QmiClient"><span class="type">QmiClient</span></a> has been released, it cannot be used any more to
perform operations.
</p>
<p>
When the operation is finished <em class="parameter"><code>callback</code></em> will be called. You can then call
<a class="link" href="QmiDevice.html#qmi-device-release-client-finish" title="qmi_device_release_client_finish ()"><code class="function">qmi_device_release_client_finish()</code></a> to get the result of the operation.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>client</code></em> :</span></p></td>
<td>the <a class="link" href="QmiClient.html" title="QmiClient"><span class="type">QmiClient</span></a> to release.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>mask of <a class="link" href="QmiDevice.html#QmiDeviceReleaseClientFlags" title="enum QmiDeviceReleaseClientFlags"><span class="type">QmiDeviceReleaseClientFlags</span></a> specifying how the client should be released.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>timeout</code></em> :</span></p></td>
<td>maximum time to wait.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
<td>optional <a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> to ignore.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the operation is finished.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>the data to pass to callback function.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-release-client-finish"></a><h3>qmi_device_release_client_finish ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            qmi_device_release_client_finish    (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Finishes an operation started with <a class="link" href="QmiDevice.html#qmi-device-release-client" title="qmi_device_release_client ()"><code class="function">qmi_device_release_client()</code></a>.
</p>
<p>
Note that even if the release operation returns an error, the client should
anyway be considered released, and shouldn't be used afterwards.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if successful, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> if <em class="parameter"><code>error</code></em> is set.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-set-instance-id"></a><h3>qmi_device_set_instance_id ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                qmi_device_set_instance_id          (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><span class="type">guint8</span> instance_id</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> timeout</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
Sets the instance ID of the <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.
</p>
<p>
When the operation is finished <em class="parameter"><code>callback</code></em> will be called. You can then call
<a class="link" href="QmiDevice.html#qmi-device-set-instance-id-finish" title="qmi_device_set_instance_id_finish ()"><code class="function">qmi_device_set_instance_id_finish()</code></a> to get the result of the operation.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance_id</code></em> :</span></p></td>
<td>the instance ID.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>timeout</code></em> :</span></p></td>
<td>maximum time to wait.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
<td>optional <a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> to ignore.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the operation is finished.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>the data to pass to callback function.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-set-instance-id-finish"></a><h3>qmi_device_set_instance_id_finish ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            qmi_device_set_instance_id_finish   (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
                                                         <em class="parameter"><code><span class="type">guint16</span> *link_id</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Finishes an operation started with <a class="link" href="QmiDevice.html#qmi-device-set-instance-id" title="qmi_device_set_instance_id ()"><code class="function">qmi_device_set_instance_id()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>link_id</code></em> :</span></p></td>
<td>a placeholder for the output <span class="type">guint16</span>, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> if not required.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if successful, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if <em class="parameter"><code>error</code></em> is set.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-command"></a><h3>qmi_device_command ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                qmi_device_command                  (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libqmi-glib-QmiMessage.html#QmiMessage" title="QmiMessage"><span class="type">QmiMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> timeout</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
Asynchronously sends a <a class="link" href="libqmi-glib-QmiMessage.html#QmiMessage" title="QmiMessage"><span class="type">QmiMessage</span></a> to the device.
</p>
<p>
When the operation is finished <em class="parameter"><code>callback</code></em> will be called. You can then call
<a class="link" href="QmiDevice.html#qmi-device-command-finish" title="qmi_device_command_finish ()"><code class="function">qmi_device_command_finish()</code></a> to get the result of the operation.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>the message to send.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>timeout</code></em> :</span></p></td>
<td>maximum time, in seconds, to wait for the response.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a>, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the operation is finished.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>the data to pass to callback function.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="qmi-device-command-finish"></a><h3>qmi_device_command_finish ()</h3>
<pre class="programlisting"><a class="link" href="libqmi-glib-QmiMessage.html#QmiMessage" title="QmiMessage"><span class="returnvalue">QmiMessage</span></a> *        qmi_device_command_finish           (<em class="parameter"><code><a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Finishes an operation started with <a class="link" href="QmiDevice.html#qmi-device-command" title="qmi_device_command ()"><code class="function">qmi_device_command()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="QmiDevice.html" title="QmiDevice"><span class="type">QmiDevice</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="libqmi-glib-QmiMessage.html#QmiMessage" title="QmiMessage"><span class="type">QmiMessage</span></a> response, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> if <em class="parameter"><code>error</code></em> is set. The returned value should be freed with <a class="link" href="libqmi-glib-QmiMessage.html#qmi-message-unref" title="qmi_message_unref ()"><code class="function">qmi_message_unref()</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="QmiDevice.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="QmiDevice--device-file"></a><h3>The <code class="literal">"device-file"</code> property</h3>
<pre class="programlisting">  "device-file"              <a href="/usr/share/gtk-doc/html/gio/GFile.html"><span class="type">GFile</span></a>*                : Read / Write / Construct Only</pre>
<p>File to the underlying QMI device.</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>