This file is indexed.

/usr/share/gtk-doc/html/jsonrpc-glib/JsonrpcClient.html is in libjsonrpc-glib-doc 3.28.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
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JsonrpcClient: Jsonrpc-GLib Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="Jsonrpc-GLib Reference Manual">
<link rel="up" href="ch01.html" title="Jsonrpc-GLib API Reference">
<link rel="prev" href="ch01.html" title="Jsonrpc-GLib API Reference">
<link rel="next" href="JsonrpcServer.html" title="JsonrpcServer">
<meta name="generator" content="GTK-Doc V1.27 (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="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#JsonrpcClient.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#JsonrpcClient.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span> 
                  <a href="#JsonrpcClient.properties" class="shortcut">Properties</a></span><span id="nav_signals">  <span class="dim">|</span> 
                  <a href="#JsonrpcClient.signals" class="shortcut">Signals</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="ch01.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="JsonrpcServer.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="JsonrpcClient"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="JsonrpcClient.top_of_page"></a>JsonrpcClient</span></h2>
<p>JsonrpcClient — a client for JSON-RPC communication</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="JsonrpcClient.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">GQuark</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-error-quark" title="jsonrpc_client_error_quark ()">jsonrpc_client_error_quark</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="returnvalue">JsonrpcClient</span></a> *
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-new" title="jsonrpc_client_new ()">jsonrpc_client_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-get-use-gvariant" title="jsonrpc_client_get_use_gvariant ()">jsonrpc_client_get_use_gvariant</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-set-use-gvariant" title="jsonrpc_client_set_use_gvariant ()">jsonrpc_client_set_use_gvariant</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-close" title="jsonrpc_client_close ()">jsonrpc_client_close</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-close-async" title="jsonrpc_client_close_async ()">jsonrpc_client_close_async</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-close-finish" title="jsonrpc_client_close_finish ()">jsonrpc_client_close_finish</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-call" title="jsonrpc_client_call ()">jsonrpc_client_call</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-call-async" title="jsonrpc_client_call_async ()">jsonrpc_client_call_async</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-call-finish" title="jsonrpc_client_call_finish ()">jsonrpc_client_call_finish</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-send-notification" title="jsonrpc_client_send_notification ()">jsonrpc_client_send_notification</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-send-notification-async" title="jsonrpc_client_send_notification_async ()">jsonrpc_client_send_notification_async</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-send-notification-finish" title="jsonrpc_client_send_notification_finish ()">jsonrpc_client_send_notification_finish</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-reply" title="jsonrpc_client_reply ()">jsonrpc_client_reply</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-reply-async" title="jsonrpc_client_reply_async ()">jsonrpc_client_reply_async</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-reply-finish" title="jsonrpc_client_reply_finish ()">jsonrpc_client_reply_finish</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-reply-error-async" title="jsonrpc_client_reply_error_async ()">jsonrpc_client_reply_error_async</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-reply-error-finish" title="jsonrpc_client_reply_error_finish ()">jsonrpc_client_reply_error_finish</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="JsonrpcClient.html#jsonrpc-client-start-listening" title="jsonrpc_client_start_listening ()">jsonrpc_client_start_listening</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="JsonrpcClient.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type">
<span class="type">GIOStream</span> *</td>
<td class="property_name"><a class="link" href="JsonrpcClient.html#JsonrpcClient--io-stream" title="The “io-stream” property">io-stream</a></td>
<td class="property_flags">Write / Construct Only</td>
</tr>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="JsonrpcClient.html#JsonrpcClient--use-gvariant" title="The “use-gvariant” property">use-gvariant</a></td>
<td class="property_flags">Read / Write</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="JsonrpcClient.signals"></a><h2>Signals</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="signals_return">
<col width="300px" class="signals_name">
<col width="200px" class="signals_flags">
</colgroup>
<tbody>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="JsonrpcClient.html#JsonrpcClient-failed" title="The “failed” signal">failed</a></td>
<td class="signal_flags">Run Last</td>
</tr>
<tr>
<td class="signal_type"><span class="returnvalue">gboolean</span></td>
<td class="signal_name"><a class="link" href="JsonrpcClient.html#JsonrpcClient-handle-call" title="The “handle-call” signal">handle-call</a></td>
<td class="signal_flags">Has Details</td>
</tr>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="JsonrpcClient.html#JsonrpcClient-notification" title="The “notification” signal">notification</a></td>
<td class="signal_flags">Has Details</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="JsonrpcClient.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="JsonrpcClient.html#JSONRPC-TYPE-CLIENT:CAPS" title="JSONRPC_TYPE_CLIENT">JSONRPC_TYPE_CLIENT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="JsonrpcClient.html#JSONRPC-CLIENT-ERROR:CAPS" title="JSONRPC_CLIENT_ERROR">JSONRPC_CLIENT_ERROR</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="JsonrpcClient.html#JsonrpcClientError" title="enum JsonrpcClientError">JsonrpcClientError</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="JsonrpcClient.html#JsonrpcClientClass" title="struct JsonrpcClientClass">JsonrpcClientClass</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="JsonrpcClient.html#JsonrpcClient-struct" title="JsonrpcClient">JsonrpcClient</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="JsonrpcClient.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    GObject
    <span class="lineart">╰──</span> JsonrpcClient
</pre>
</div>
<div class="refsect1">
<a name="JsonrpcClient.description"></a><h2>Description</h2>
<p>The <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> class provides a convenient API to coordinate with a
JSON-RPC server. You can provide the underlying <span class="type">GIOStream</span> to communicate
with allowing you to control the negotiation of how you setup your
communications channel. One such method might be to use a <span class="type">GSubprocess</span> and
communicate over stdin and stdout.</p>
<p>Because JSON-RPC allows for out-of-band notifications from the server to
the client, it is important that the consumer of this API calls
<a class="link" href="JsonrpcClient.html#jsonrpc-client-close" title="jsonrpc_client_close ()"><code class="function">jsonrpc_client_close()</code></a> or <a class="link" href="JsonrpcClient.html#jsonrpc-client-close-async" title="jsonrpc_client_close_async ()"><code class="function">jsonrpc_client_close_async()</code></a> when they no longer
need the client. This is because <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> contains an asynchronous
read-loop to process incoming messages. Until <a class="link" href="JsonrpcClient.html#jsonrpc-client-close" title="jsonrpc_client_close ()"><code class="function">jsonrpc_client_close()</code></a> or
<a class="link" href="JsonrpcClient.html#jsonrpc-client-close-async" title="jsonrpc_client_close_async ()"><code class="function">jsonrpc_client_close_async()</code></a> have been called, this read loop will prevent
the object from finalizing (being freed).</p>
<p>To make an RPC call, use <a class="link" href="JsonrpcClient.html#jsonrpc-client-call" title="jsonrpc_client_call ()"><code class="function">jsonrpc_client_call()</code></a> or
<a class="link" href="JsonrpcClient.html#jsonrpc-client-call-async" title="jsonrpc_client_call_async ()"><code class="function">jsonrpc_client_call_async()</code></a> and provide the method name and the parameters
as a <span class="type">GVariant</span> for call.</p>
<p>It is a programming error to mix synchronous and asynchronous API calls
of the <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> class.</p>
<p>For synchronous calls, <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> will use the thread-default
<span class="type">GMainContext</span>. If you have special needs here ensure you've set the context
before calling into any <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> API.</p>
</div>
<div class="refsect1">
<a name="JsonrpcClient.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="jsonrpc-client-error-quark"></a><h3>jsonrpc_client_error_quark ()</h3>
<pre class="programlisting"><span class="returnvalue">GQuark</span>
jsonrpc_client_error_quark (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-new"></a><h3>jsonrpc_client_new ()</h3>
<pre class="programlisting"><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="returnvalue">JsonrpcClient</span></a> *
jsonrpc_client_new (<em class="parameter"><code><span class="type">GIOStream</span> *io_stream</code></em>);</pre>
<p>Creates a new <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> instance.</p>
<p>If you want to communicate with a process using stdin/stdout, consider using
<span class="type">GSubprocess</span> to launch the process and create a <span class="type">GSimpleIOStream</span> using the
<code class="function">g_subprocess_get_stdin_pipe()</code> and <code class="function">g_subprocess_get_stdout_pipe()</code>.</p>
<div class="refsect3">
<a name="jsonrpc-client-new.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>io_stream</p></td>
<td class="parameter_description"><p>A <span class="type">GIOStream</span>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL must not be passed as the value in, out, in-out; or as a return value."><span class="acronym">not nullable</span></acronym>]</span></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsonrpc-client-new.returns"></a><h4>Returns</h4>
<p>A newly created <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: 3.26</p>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-get-use-gvariant"></a><h3>jsonrpc_client_get_use_gvariant ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
jsonrpc_client_get_use_gvariant (<em class="parameter"><code><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self</code></em>);</pre>
<p>Gets the <a class="link" href="JsonrpcClient.html#JsonrpcClient--use-gvariant" title="The “use-gvariant” property"><span class="type">“use-gvariant”</span></a> property.</p>
<p>Indicates if <span class="type">GVariant</span> is being used to communicate with the peer.</p>
<div class="refsect3">
<a name="jsonrpc-client-get-use-gvariant.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsonrpc-client-get-use-gvariant.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <span class="type">GVariant</span> is being used; otherwise <code class="literal">FALSE</code>.</p>
</div>
<p class="since">Since: 3.26</p>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-set-use-gvariant"></a><h3>jsonrpc_client_set_use_gvariant ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
jsonrpc_client_set_use_gvariant (<em class="parameter"><code><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self</code></em>,
                                 <em class="parameter"><code><span class="type">gboolean</span> use_gvariant</code></em>);</pre>
<p>Sets the <a class="link" href="JsonrpcClient.html#JsonrpcClient--use-gvariant" title="The “use-gvariant” property"><span class="type">“use-gvariant”</span></a> property.</p>
<p>This function sets if <span class="type">GVariant</span> should be used to communicate with the
peer. Doing so can allow for more efficient communication by avoiding
expensive parsing overhead and memory allocations. However, it requires
that the peer also supports <span class="type">GVariant</span> encoding.</p>
<div class="refsect3">
<a name="jsonrpc-client-set-use-gvariant.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>use_gvariant</p></td>
<td class="parameter_description"><p>if <span class="type">GVariant</span> should be used</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 3.26</p>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-close"></a><h3>jsonrpc_client_close ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
jsonrpc_client_close (<em class="parameter"><code><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self</code></em>,
                      <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
                      <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Closes the underlying streams and cancels any inflight operations of the
<a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a>. This is important to call when you are done with the
client so that any outstanding operations that have caused <em class="parameter"><code>self</code></em>
 to
hold additional references are cancelled.</p>
<p>Failure to call this method results in a leak of <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a>.</p>
<div class="refsect3">
<a name="jsonrpc-client-close.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsonrpc-client-close.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if successful; otherwise <code class="literal">FALSE</code> and <em class="parameter"><code>error</code></em>
is set.</p>
</div>
<p class="since">Since: 3.26</p>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-close-async"></a><h3>jsonrpc_client_close_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
jsonrpc_client_close_async (<em class="parameter"><code><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self</code></em>,
                            <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
                            <em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
                            <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p>Asynchronous version of <a class="link" href="JsonrpcClient.html#jsonrpc-client-close" title="jsonrpc_client_close ()"><code class="function">jsonrpc_client_close()</code></a></p>
<p>Currently this operation is implemented synchronously, but in the future may
be converted to using asynchronous operations.</p>
<div class="refsect3">
<a name="jsonrpc-client-close-async.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: 3.26</p>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-close-finish"></a><h3>jsonrpc_client_close_finish ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
jsonrpc_client_close_finish (<em class="parameter"><code><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self</code></em>,
                             <em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
                             <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Completes an asynchronous request of <a class="link" href="JsonrpcClient.html#jsonrpc-client-close-async" title="jsonrpc_client_close_async ()"><code class="function">jsonrpc_client_close_async()</code></a>.</p>
<div class="refsect3">
<a name="jsonrpc-client-close-finish.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if successful; otherwise <code class="literal">FALSE</code> and <em class="parameter"><code>error</code></em>
is set.</p>
</div>
<p class="since">Since: 3.26</p>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-call"></a><h3>jsonrpc_client_call ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
jsonrpc_client_call (<em class="parameter"><code><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self</code></em>,
                     <em class="parameter"><code>const <span class="type">gchar</span> *method</code></em>,
                     <em class="parameter"><code><span class="type">GVariant</span> *params</code></em>,
                     <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
                     <em class="parameter"><code><span class="type">GVariant</span> **return_value</code></em>,
                     <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Synchronously calls <em class="parameter"><code>method</code></em>
 with <em class="parameter"><code>params</code></em>
 on the remote peer.</p>
<p>once a reply has been received, or failure, this function will return.
If successful, <em class="parameter"><code>return_value</code></em>
 will be set with the reslut field of
the response.</p>
<p>If <em class="parameter"><code>params</code></em>
 is floating then this function consumes the reference.</p>
<div class="refsect3">
<a name="jsonrpc-client-call.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>method</p></td>
<td class="parameter_description"><p>the name of the method to call</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>params</p></td>
<td class="parameter_description"><p>A <span class="type">GVariant</span> of parameters or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>cancellable</p></td>
<td class="parameter_description"><p>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>return_value</p></td>
<td class="parameter_description"><p>A location for a <span class="type">JsonNode</span>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsonrpc-client-call.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> on success; otherwise <code class="literal">FALSE</code> and <em class="parameter"><code>error</code></em>
is set.</p>
</div>
<p class="since">Since: 3.26</p>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-call-async"></a><h3>jsonrpc_client_call_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
jsonrpc_client_call_async (<em class="parameter"><code><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self</code></em>,
                           <em class="parameter"><code>const <span class="type">gchar</span> *method</code></em>,
                           <em class="parameter"><code><span class="type">GVariant</span> *params</code></em>,
                           <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
                           <em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
                           <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p>Asynchronously calls <em class="parameter"><code>method</code></em>
 with <em class="parameter"><code>params</code></em>
 on the remote peer.</p>
<p>Upon completion or failure, <em class="parameter"><code>callback</code></em>
 is executed and it should
call <a class="link" href="JsonrpcClient.html#jsonrpc-client-call-finish" title="jsonrpc_client_call_finish ()"><code class="function">jsonrpc_client_call_finish()</code></a> to complete the request and release
any memory held.</p>
<p>If <em class="parameter"><code>params</code></em>
 is floating, the floating reference is consumed.</p>
<div class="refsect3">
<a name="jsonrpc-client-call-async.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>method</p></td>
<td class="parameter_description"><p>the name of the method to call</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>params</p></td>
<td class="parameter_description"><p>A <span class="type">JsonNode</span> of parameters or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>cancellable</p></td>
<td class="parameter_description"><p>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p>a callback to executed upon completion</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data for <em class="parameter"><code>callback</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 3.26</p>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-call-finish"></a><h3>jsonrpc_client_call_finish ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
jsonrpc_client_call_finish (<em class="parameter"><code><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self</code></em>,
                            <em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
                            <em class="parameter"><code><span class="type">GVariant</span> **return_value</code></em>,
                            <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Completes an asynchronous call to <a class="link" href="JsonrpcClient.html#jsonrpc-client-call-async" title="jsonrpc_client_call_async ()"><code class="function">jsonrpc_client_call_async()</code></a>.</p>
<div class="refsect3">
<a name="jsonrpc-client-call-finish.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>result</p></td>
<td class="parameter_description"><p>A <span class="type">GAsyncResult</span> provided to the callback in <a class="link" href="JsonrpcClient.html#jsonrpc-client-call-async" title="jsonrpc_client_call_async ()"><code class="function">jsonrpc_client_call_async()</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>return_value</p></td>
<td class="parameter_description"><p>A location for a <span class="type">JsonNode</span> or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a location for a <span class="type">GError</span> or <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsonrpc-client-call-finish.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if successful and <em class="parameter"><code>return_value</code></em>
is set, otherwise <code class="literal">FALSE</code> and <em class="parameter"><code>error</code></em>
is set.</p>
</div>
<p class="since">Since: 3.26</p>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-send-notification"></a><h3>jsonrpc_client_send_notification ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
jsonrpc_client_send_notification (<em class="parameter"><code><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self</code></em>,
                                  <em class="parameter"><code>const <span class="type">gchar</span> *method</code></em>,
                                  <em class="parameter"><code><span class="type">GVariant</span> *params</code></em>,
                                  <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
                                  <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Synchronously calls <em class="parameter"><code>method</code></em>
 with <em class="parameter"><code>params</code></em>
 on the remote peer.
This function will not wait or expect a reply from the peer.</p>
<p>If <em class="parameter"><code>params</code></em>
 is floating then the reference is consumed.</p>
<div class="refsect3">
<a name="jsonrpc-client-send-notification.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>method</p></td>
<td class="parameter_description"><p>the name of the method to call</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>params</p></td>
<td class="parameter_description"><p>A <span class="type">GVariant</span> of parameters or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>cancellable</p></td>
<td class="parameter_description"><p>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsonrpc-client-send-notification.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> on success; otherwise <code class="literal">FALSE</code> and <em class="parameter"><code>error</code></em>
is set.</p>
</div>
<p class="since">Since: 3.26</p>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-send-notification-async"></a><h3>jsonrpc_client_send_notification_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
jsonrpc_client_send_notification_async
                               (<em class="parameter"><code><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self</code></em>,
                                <em class="parameter"><code>const <span class="type">gchar</span> *method</code></em>,
                                <em class="parameter"><code><span class="type">GVariant</span> *params</code></em>,
                                <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
                                <em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
                                <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p>Asynchronously calls <em class="parameter"><code>method</code></em>
 with <em class="parameter"><code>params</code></em>
 on the remote peer.
This function will not wait or expect a reply from the peer.</p>
<p>This function is useful when the caller wants to be notified that
the bytes have been delivered to the underlying stream. This does
not indicate that the peer has received them.</p>
<p>If <em class="parameter"><code>params</code></em>
 is floating then the reference is consumed.</p>
<div class="refsect3">
<a name="jsonrpc-client-send-notification-async.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>method</p></td>
<td class="parameter_description"><p>the name of the method to call</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>params</p></td>
<td class="parameter_description"><p>A <span class="type">GVariant</span> of parameters or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>cancellable</p></td>
<td class="parameter_description"><p>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 3.26</p>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-send-notification-finish"></a><h3>jsonrpc_client_send_notification_finish ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
jsonrpc_client_send_notification_finish
                               (<em class="parameter"><code><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self</code></em>,
                                <em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
                                <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Completes an asynchronous call to <a class="link" href="JsonrpcClient.html#jsonrpc-client-send-notification-async" title="jsonrpc_client_send_notification_async ()"><code class="function">jsonrpc_client_send_notification_async()</code></a>.</p>
<p>Successful completion of this function only indicates that the request
has been written to the underlying buffer, not that the peer has received
the notification.</p>
<div class="refsect3">
<a name="jsonrpc-client-send-notification-finish.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsonrpc-client-send-notification-finish.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if the bytes have been flushed to the <span class="type">GIOStream</span>; otherwise
<code class="literal">FALSE</code> and <em class="parameter"><code>error</code></em>
is set.</p>
</div>
<p class="since">Since: 3.26</p>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-reply"></a><h3>jsonrpc_client_reply ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
jsonrpc_client_reply (<em class="parameter"><code><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self</code></em>,
                      <em class="parameter"><code><span class="type">GVariant</span> *id</code></em>,
                      <em class="parameter"><code><span class="type">GVariant</span> *result</code></em>,
                      <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
                      <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Synchronous variant of <a class="link" href="JsonrpcClient.html#jsonrpc-client-reply-async" title="jsonrpc_client_reply_async ()"><code class="function">jsonrpc_client_reply_async()</code></a>.</p>
<p>If <em class="parameter"><code>id</code></em>
 or <em class="parameter"><code>result</code></em>
 are floating, there floating references are consumed.</p>
<div class="refsect3">
<a name="jsonrpc-client-reply.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>id</p></td>
<td class="parameter_description"><p>the id of the message to reply
result: (transfer none) (nullable): the return value or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL must not be passed as the value in, out, in-out; or as a return value."><span class="acronym">not nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>cancellable</p></td>
<td class="parameter_description"><p>a <span class="type">GCancellable</span>, or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a <span class="type">GError</span>, or <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 3.26</p>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-reply-async"></a><h3>jsonrpc_client_reply_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
jsonrpc_client_reply_async (<em class="parameter"><code><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self</code></em>,
                            <em class="parameter"><code><span class="type">GVariant</span> *id</code></em>,
                            <em class="parameter"><code><span class="type">GVariant</span> *result</code></em>,
                            <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
                            <em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
                            <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-reply-finish"></a><h3>jsonrpc_client_reply_finish ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
jsonrpc_client_reply_finish (<em class="parameter"><code><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self</code></em>,
                             <em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
                             <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Completes an asynchronous request to <a class="link" href="JsonrpcClient.html#jsonrpc-client-reply-async" title="jsonrpc_client_reply_async ()"><code class="function">jsonrpc_client_reply_async()</code></a>.</p>
<div class="refsect3">
<a name="jsonrpc-client-reply-finish.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>result</p></td>
<td class="parameter_description"><p>A <span class="type">GAsyncResult</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a location for a <span class="type">GError</span> or <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsonrpc-client-reply-finish.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if successful; otherwise <code class="literal">FALSE</code> and <em class="parameter"><code>error</code></em>
is set.</p>
</div>
<p class="since">Since: 3.26</p>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-reply-error-async"></a><h3>jsonrpc_client_reply_error_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
jsonrpc_client_reply_error_async (<em class="parameter"><code><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self</code></em>,
                                  <em class="parameter"><code><span class="type">GVariant</span> *id</code></em>,
                                  <em class="parameter"><code><span class="type">gint</span> code</code></em>,
                                  <em class="parameter"><code>const <span class="type">gchar</span> *message</code></em>,
                                  <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
                                  <em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
                                  <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p>Asynchronously replies to the peer, sending a JSON-RPC error message.</p>
<p>Call <a class="link" href="JsonrpcClient.html#jsonrpc-client-reply-error-finish" title="jsonrpc_client_reply_error_finish ()"><code class="function">jsonrpc_client_reply_error_finish()</code></a> to get the result of this operation.</p>
<p>If <em class="parameter"><code>id</code></em>
 is floating, it's floating reference is consumed.</p>
<div class="refsect3">
<a name="jsonrpc-client-reply-error-async.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>id</p></td>
<td class="parameter_description"><p>a <span class="type">GVariant</span> containing the call id. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>code</p></td>
<td class="parameter_description"><p>the error code</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>message</p></td>
<td class="parameter_description"><p>an optional error message. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>cancellable</p></td>
<td class="parameter_description"><p>a <span class="type">GCancellable</span>, or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p>a <span class="type">GAsyncReadyCallback</span> or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>closure data for <em class="parameter"><code>callback</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 3.28</p>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-reply-error-finish"></a><h3>jsonrpc_client_reply_error_finish ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
jsonrpc_client_reply_error_finish (<em class="parameter"><code><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self</code></em>,
                                   <em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
                                   <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="jsonrpc-client-start-listening"></a><h3>jsonrpc_client_start_listening ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
jsonrpc_client_start_listening (<em class="parameter"><code><a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self</code></em>);</pre>
<p>This function requests that client start processing incoming
messages from the peer.</p>
<div class="refsect3">
<a name="jsonrpc-client-start-listening.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: 3.26</p>
</div>
</div>
<div class="refsect1">
<a name="JsonrpcClient.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="JSONRPC-TYPE-CLIENT:CAPS"></a><h3>JSONRPC_TYPE_CLIENT</h3>
<pre class="programlisting">#define JSONRPC_TYPE_CLIENT  (jsonrpc_client_get_type())
</pre>
</div>
<hr>
<div class="refsect2">
<a name="JSONRPC-CLIENT-ERROR:CAPS"></a><h3>JSONRPC_CLIENT_ERROR</h3>
<pre class="programlisting">#define JSONRPC_CLIENT_ERROR (jsonrpc_client_error_quark())
</pre>
</div>
<hr>
<div class="refsect2">
<a name="JsonrpcClientError"></a><h3>enum JsonrpcClientError</h3>
<div class="refsect3">
<a name="JsonrpcClientError.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="JSONRPC-CLIENT-ERROR-PARSE-ERROR:CAPS"></a>JSONRPC_CLIENT_ERROR_PARSE_ERROR</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="JSONRPC-CLIENT-ERROR-INVALID-REQUEST:CAPS"></a>JSONRPC_CLIENT_ERROR_INVALID_REQUEST</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="JSONRPC-CLIENT-ERROR-METHOD-NOT-FOUND:CAPS"></a>JSONRPC_CLIENT_ERROR_METHOD_NOT_FOUND</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="JSONRPC-CLIENT-ERROR-INVALID-PARAMS:CAPS"></a>JSONRPC_CLIENT_ERROR_INVALID_PARAMS</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="JSONRPC-CLIENT-ERROR-INTERNAL-ERROR:CAPS"></a>JSONRPC_CLIENT_ERROR_INTERNAL_ERROR</p></td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="JsonrpcClientClass"></a><h3>struct JsonrpcClientClass</h3>
<pre class="programlisting">struct JsonrpcClientClass {
  GObjectClass parent_class;

  void     (*notification) (JsonrpcClient *self,
                            const gchar   *method_name,
                            GVariant      *params);
  gboolean (*handle_call)  (JsonrpcClient *self,
                            const gchar   *method,
                            GVariant      *id,
                            GVariant      *params);
  void     (*failed)       (JsonrpcClient *self);

  gpointer _reserved2;
  gpointer _reserved3;
  gpointer _reserved4;
  gpointer _reserved5;
  gpointer _reserved6;
  gpointer _reserved7;
  gpointer _reserved8;
};
</pre>
</div>
<hr>
<div class="refsect2">
<a name="JsonrpcClient-struct"></a><h3>JsonrpcClient</h3>
<pre class="programlisting">typedef struct _JsonrpcClient JsonrpcClient;</pre>
</div>
</div>
<div class="refsect1">
<a name="JsonrpcClient.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="JsonrpcClient--io-stream"></a><h3>The <code class="literal">“io-stream”</code> property</h3>
<pre class="programlisting">  “io-stream”                <span class="type">GIOStream</span> *</pre>
<p>The "io-stream" property is the <span class="type">GIOStream</span> to use for communicating
with a JSON-RPC peer.</p>
<p>Flags: Write / Construct Only</p>
<p class="since">Since: 3.26</p>
</div>
<hr>
<div class="refsect2">
<a name="JsonrpcClient--use-gvariant"></a><h3>The <code class="literal">“use-gvariant”</code> property</h3>
<pre class="programlisting">  “use-gvariant”             <span class="type">gboolean</span></pre>
<p>The "use-gvariant" property denotes if <span class="type">GVariant</span> should be used to
communicate with the peer instead of JSON. You should only set this
if you know the peer is also a Jsonrpc-GLib based client.</p>
<p>Setting this property allows the peers to communicate using GVariant
instead of JSON. This means that we can access the messages without
expensive memory allocations and parsing costs associated with JSON.
<span class="type">GVariant</span> is much more optimal for memory-bassed message passing.</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
<p class="since">Since: 3.26</p>
</div>
</div>
<div class="refsect1">
<a name="JsonrpcClient.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="JsonrpcClient-failed"></a><h3>The <code class="literal">“failed”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *jsonrpcclient,
               <span class="type">gpointer</span>       user_data)</pre>
<p>The "failed" signal is called when the client has failed communication
or the connection has been knowingly closed.</p>
<div class="refsect3">
<a name="JsonrpcClient-failed.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p>Flags: Run Last</p>
<p class="since">Since: 3.28</p>
</div>
<hr>
<div class="refsect2">
<a name="JsonrpcClient-handle-call"></a><h3>The <code class="literal">“handle-call”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
user_function (<a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self,
               <span class="type">gchar</span>         *method,
               <span class="type">GVariant</span>      *id,
               <span class="type">GVariant</span>      *params,
               <span class="type">gpointer</span>       user_data)</pre>
<p>This signal is emitted when an RPC has been received from the peer we
are connected to. Return <code class="literal">TRUE</code> if you have handled this message, even
asynchronously. If no handler has returned <code class="literal">TRUE</code> an error will be
synthesized.</p>
<p>If you handle the message, you are responsible for replying to the peer
in a timely manner using <a class="link" href="JsonrpcClient.html#jsonrpc-client-reply" title="jsonrpc_client_reply ()"><code class="function">jsonrpc_client_reply()</code></a> or
<a class="link" href="JsonrpcClient.html#jsonrpc-client-reply-async" title="jsonrpc_client_reply_async ()"><code class="function">jsonrpc_client_reply_async()</code></a>.</p>
<p>Additionally, since 3.28 you may connect to the "detail" of this signal
to handle a specific method call. Use the method name as the detail of
the signal.</p>
<div class="refsect3">
<a name="JsonrpcClient-handle-call.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>method</p></td>
<td class="parameter_description"><p>the method name. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL must not be passed as the value in, out, in-out; or as a return value."><span class="acronym">not nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>id</p></td>
<td class="parameter_description"><p>The "id" field of the JSONRPC message. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL must not be passed as the value in, out, in-out; or as a return value."><span class="acronym">not nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>params</p></td>
<td class="parameter_description"><p>The "params" field of the JSONRPC message. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p>Flags: Has Details</p>
<p class="since">Since: 3.26</p>
</div>
<hr>
<div class="refsect2">
<a name="JsonrpcClient-notification"></a><h3>The <code class="literal">“notification”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a> *self,
               <span class="type">gchar</span>         *method,
               <span class="type">GVariant</span>      *params,
               <span class="type">gpointer</span>       user_data)</pre>
<p>This signal is emitted when a notification has been received from a
peer.  Unlike <a class="link" href="JsonrpcClient.html#JsonrpcClient-handle-call" title="The “handle-call” signal"><span class="type">“handle-call”</span></a>, this does not have an "id"
parameter because notifications do not have ids. They do not round
trip.</p>
<div class="refsect3">
<a name="JsonrpcClient-notification.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>A <a class="link" href="JsonrpcClient.html" title="JsonrpcClient"><span class="type">JsonrpcClient</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>method</p></td>
<td class="parameter_description"><p>the method name of the notification</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>params</p></td>
<td class="parameter_description"><p>params for the notification. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p>Flags: Has Details</p>
<p class="since">Since: 3.26</p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.27</div>
</body>
</html>