@gjsify/http2-native 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,9 +20,21 @@
20
20
  <constant name="TYPE_HEADERS" c:identifier="GJSIFY_HTTP2_FRAME_ENCODER_TYPE_HEADERS" value="0x01">
21
21
  <type name="gint" c:type="gint"/>
22
22
  </constant>
23
+ <constant name="TYPE_PRIORITY" c:identifier="GJSIFY_HTTP2_FRAME_ENCODER_TYPE_PRIORITY" value="0x02">
24
+ <type name="gint" c:type="gint"/>
25
+ </constant>
26
+ <constant name="TYPE_RST_STREAM" c:identifier="GJSIFY_HTTP2_FRAME_ENCODER_TYPE_RST_STREAM" value="0x03">
27
+ <type name="gint" c:type="gint"/>
28
+ </constant>
29
+ <constant name="TYPE_SETTINGS" c:identifier="GJSIFY_HTTP2_FRAME_ENCODER_TYPE_SETTINGS" value="0x04">
30
+ <type name="gint" c:type="gint"/>
31
+ </constant>
23
32
  <constant name="TYPE_PUSH_PROMISE" c:identifier="GJSIFY_HTTP2_FRAME_ENCODER_TYPE_PUSH_PROMISE" value="0x05">
24
33
  <type name="gint" c:type="gint"/>
25
34
  </constant>
35
+ <constant name="TYPE_PING" c:identifier="GJSIFY_HTTP2_FRAME_ENCODER_TYPE_PING" value="0x06">
36
+ <type name="gint" c:type="gint"/>
37
+ </constant>
26
38
  <constant name="TYPE_GOAWAY" c:identifier="GJSIFY_HTTP2_FRAME_ENCODER_TYPE_GOAWAY" value="0x07">
27
39
  <type name="gint" c:type="gint"/>
28
40
  </constant>
@@ -32,6 +44,9 @@
32
44
  <constant name="FLAG_END_STREAM" c:identifier="GJSIFY_HTTP2_FRAME_ENCODER_FLAG_END_STREAM" value="0x01">
33
45
  <type name="gint" c:type="gint"/>
34
46
  </constant>
47
+ <constant name="FLAG_ACK" c:identifier="GJSIFY_HTTP2_FRAME_ENCODER_FLAG_ACK" value="0x01">
48
+ <type name="gint" c:type="gint"/>
49
+ </constant>
35
50
  <constant name="FLAG_END_HEADERS" c:identifier="GJSIFY_HTTP2_FRAME_ENCODER_FLAG_END_HEADERS" value="0x04">
36
51
  <type name="gint" c:type="gint"/>
37
52
  </constant>
@@ -121,6 +136,102 @@
121
136
  </parameter>
122
137
  </parameters>
123
138
  </method>
139
+ <method name="build_settings_frame" c:identifier="gjsify_http2_frame_encoder_build_settings_frame">
140
+ <return-value transfer-ownership="full">
141
+ <type name="GLib.Bytes" c:type="GBytes*"/>
142
+ </return-value>
143
+ <parameters>
144
+ <instance-parameter name="self" transfer-ownership="none">
145
+ <type name="GjsifyHttp2.FrameEncoder" c:type="GjsifyHttp2FrameEncoder*"/>
146
+ </instance-parameter>
147
+ <parameter name="ack" transfer-ownership="none">
148
+ <type name="gboolean" c:type="gboolean"/>
149
+ </parameter>
150
+ <parameter name="ids" transfer-ownership="none">
151
+ <array length="2" c:type="guint16*">
152
+ <type name="guint16" c:type="guint16"/>
153
+ </array>
154
+ </parameter>
155
+ <parameter name="ids_length1" transfer-ownership="none">
156
+ <type name="gint" c:type="gint"/>
157
+ </parameter>
158
+ <parameter name="values" transfer-ownership="none">
159
+ <array length="4" c:type="guint32*">
160
+ <type name="guint32" c:type="guint32"/>
161
+ </array>
162
+ </parameter>
163
+ <parameter name="values_length1" transfer-ownership="none">
164
+ <type name="gint" c:type="gint"/>
165
+ </parameter>
166
+ </parameters>
167
+ </method>
168
+ <method name="build_window_update_frame" c:identifier="gjsify_http2_frame_encoder_build_window_update_frame">
169
+ <return-value transfer-ownership="full">
170
+ <type name="GLib.Bytes" c:type="GBytes*"/>
171
+ </return-value>
172
+ <parameters>
173
+ <instance-parameter name="self" transfer-ownership="none">
174
+ <type name="GjsifyHttp2.FrameEncoder" c:type="GjsifyHttp2FrameEncoder*"/>
175
+ </instance-parameter>
176
+ <parameter name="stream_id" transfer-ownership="none">
177
+ <type name="guint32" c:type="guint32"/>
178
+ </parameter>
179
+ <parameter name="increment" transfer-ownership="none">
180
+ <type name="guint32" c:type="guint32"/>
181
+ </parameter>
182
+ </parameters>
183
+ </method>
184
+ <method name="build_ping_frame" c:identifier="gjsify_http2_frame_encoder_build_ping_frame">
185
+ <return-value transfer-ownership="full">
186
+ <type name="GLib.Bytes" c:type="GBytes*"/>
187
+ </return-value>
188
+ <parameters>
189
+ <instance-parameter name="self" transfer-ownership="none">
190
+ <type name="GjsifyHttp2.FrameEncoder" c:type="GjsifyHttp2FrameEncoder*"/>
191
+ </instance-parameter>
192
+ <parameter name="ack" transfer-ownership="none">
193
+ <type name="gboolean" c:type="gboolean"/>
194
+ </parameter>
195
+ <parameter name="payload" transfer-ownership="none" nullable="1">
196
+ <type name="GLib.Bytes" c:type="GBytes*"/>
197
+ </parameter>
198
+ </parameters>
199
+ </method>
200
+ <method name="build_rst_stream_frame" c:identifier="gjsify_http2_frame_encoder_build_rst_stream_frame">
201
+ <return-value transfer-ownership="full">
202
+ <type name="GLib.Bytes" c:type="GBytes*"/>
203
+ </return-value>
204
+ <parameters>
205
+ <instance-parameter name="self" transfer-ownership="none">
206
+ <type name="GjsifyHttp2.FrameEncoder" c:type="GjsifyHttp2FrameEncoder*"/>
207
+ </instance-parameter>
208
+ <parameter name="stream_id" transfer-ownership="none">
209
+ <type name="guint32" c:type="guint32"/>
210
+ </parameter>
211
+ <parameter name="error_code" transfer-ownership="none">
212
+ <type name="guint32" c:type="guint32"/>
213
+ </parameter>
214
+ </parameters>
215
+ </method>
216
+ <method name="build_goaway_frame" c:identifier="gjsify_http2_frame_encoder_build_goaway_frame">
217
+ <return-value transfer-ownership="full">
218
+ <type name="GLib.Bytes" c:type="GBytes*"/>
219
+ </return-value>
220
+ <parameters>
221
+ <instance-parameter name="self" transfer-ownership="none">
222
+ <type name="GjsifyHttp2.FrameEncoder" c:type="GjsifyHttp2FrameEncoder*"/>
223
+ </instance-parameter>
224
+ <parameter name="last_stream_id" transfer-ownership="none">
225
+ <type name="guint32" c:type="guint32"/>
226
+ </parameter>
227
+ <parameter name="error_code" transfer-ownership="none">
228
+ <type name="guint32" c:type="guint32"/>
229
+ </parameter>
230
+ <parameter name="debug_data" transfer-ownership="none" nullable="1">
231
+ <type name="GLib.Bytes" c:type="GBytes*"/>
232
+ </parameter>
233
+ </parameters>
234
+ </method>
124
235
  <method name="nghttp2_version" c:identifier="gjsify_http2_frame_encoder_nghttp2_version">
125
236
  <return-value transfer-ownership="none">
126
237
  <type name="utf8" c:type="const gchar*"/>
@@ -221,6 +332,16 @@
221
332
  <field name="priv" readable="0" private="1">
222
333
  <type name="SessionBridgePrivate" c:type="GjsifyHttp2SessionBridgePrivate*"/>
223
334
  </field>
335
+ <function name="new_server" c:identifier="gjsify_http2_session_bridge_new_server">
336
+ <return-value transfer-ownership="full" nullable="1">
337
+ <type name="GjsifyHttp2.SessionBridge" c:type="GjsifyHttp2SessionBridge*"/>
338
+ </return-value>
339
+ </function>
340
+ <function name="new_client" c:identifier="gjsify_http2_session_bridge_new_client">
341
+ <return-value transfer-ownership="full" nullable="1">
342
+ <type name="GjsifyHttp2.SessionBridge" c:type="GjsifyHttp2SessionBridge*"/>
343
+ </return-value>
344
+ </function>
224
345
  <function name="is_client_preface" c:identifier="gjsify_http2_session_bridge_is_client_preface">
225
346
  <return-value transfer-ownership="full">
226
347
  <type name="gboolean" c:type="gboolean"/>
@@ -236,11 +357,309 @@
236
357
  <type name="guint" c:type="guint"/>
237
358
  </return-value>
238
359
  </function>
360
+ <method name="feed_input" c:identifier="gjsify_http2_session_bridge_feed_input">
361
+ <return-value transfer-ownership="full">
362
+ <type name="glong" c:type="gssize"/>
363
+ </return-value>
364
+ <parameters>
365
+ <instance-parameter name="self" transfer-ownership="none">
366
+ <type name="GjsifyHttp2.SessionBridge" c:type="GjsifyHttp2SessionBridge*"/>
367
+ </instance-parameter>
368
+ <parameter name="input" transfer-ownership="none">
369
+ <type name="GLib.Bytes" c:type="GBytes*"/>
370
+ </parameter>
371
+ </parameters>
372
+ </method>
373
+ <method name="drain_output" c:identifier="gjsify_http2_session_bridge_drain_output">
374
+ <return-value transfer-ownership="full">
375
+ <type name="GLib.Bytes" c:type="GBytes*"/>
376
+ </return-value>
377
+ <parameters>
378
+ <instance-parameter name="self" transfer-ownership="none">
379
+ <type name="GjsifyHttp2.SessionBridge" c:type="GjsifyHttp2SessionBridge*"/>
380
+ </instance-parameter>
381
+ </parameters>
382
+ </method>
383
+ <method name="want_read" c:identifier="gjsify_http2_session_bridge_want_read">
384
+ <return-value transfer-ownership="full">
385
+ <type name="gboolean" c:type="gboolean"/>
386
+ </return-value>
387
+ <parameters>
388
+ <instance-parameter name="self" transfer-ownership="none">
389
+ <type name="GjsifyHttp2.SessionBridge" c:type="GjsifyHttp2SessionBridge*"/>
390
+ </instance-parameter>
391
+ </parameters>
392
+ </method>
393
+ <method name="want_write" c:identifier="gjsify_http2_session_bridge_want_write">
394
+ <return-value transfer-ownership="full">
395
+ <type name="gboolean" c:type="gboolean"/>
396
+ </return-value>
397
+ <parameters>
398
+ <instance-parameter name="self" transfer-ownership="none">
399
+ <type name="GjsifyHttp2.SessionBridge" c:type="GjsifyHttp2SessionBridge*"/>
400
+ </instance-parameter>
401
+ </parameters>
402
+ </method>
403
+ <method name="submit_settings" c:identifier="gjsify_http2_session_bridge_submit_settings">
404
+ <return-value transfer-ownership="full">
405
+ <type name="gint" c:type="gint"/>
406
+ </return-value>
407
+ <parameters>
408
+ <instance-parameter name="self" transfer-ownership="none">
409
+ <type name="GjsifyHttp2.SessionBridge" c:type="GjsifyHttp2SessionBridge*"/>
410
+ </instance-parameter>
411
+ </parameters>
412
+ </method>
413
+ <method name="submit_response" c:identifier="gjsify_http2_session_bridge_submit_response">
414
+ <return-value transfer-ownership="full">
415
+ <type name="gint" c:type="gint"/>
416
+ </return-value>
417
+ <parameters>
418
+ <instance-parameter name="self" transfer-ownership="none">
419
+ <type name="GjsifyHttp2.SessionBridge" c:type="GjsifyHttp2SessionBridge*"/>
420
+ </instance-parameter>
421
+ <parameter name="stream_id" transfer-ownership="none">
422
+ <type name="guint32" c:type="guint32"/>
423
+ </parameter>
424
+ <parameter name="names" transfer-ownership="none">
425
+ <array length="2" c:type="gchar**">
426
+ <type name="utf8" c:type="gchar*"/>
427
+ </array>
428
+ </parameter>
429
+ <parameter name="names_length1" transfer-ownership="none">
430
+ <type name="gint" c:type="gint"/>
431
+ </parameter>
432
+ <parameter name="values" transfer-ownership="none">
433
+ <array length="4" c:type="gchar**">
434
+ <type name="utf8" c:type="gchar*"/>
435
+ </array>
436
+ </parameter>
437
+ <parameter name="values_length1" transfer-ownership="none">
438
+ <type name="gint" c:type="gint"/>
439
+ </parameter>
440
+ <parameter name="end_stream" transfer-ownership="none">
441
+ <type name="gboolean" c:type="gboolean"/>
442
+ </parameter>
443
+ </parameters>
444
+ </method>
445
+ <method name="submit_request" c:identifier="gjsify_http2_session_bridge_submit_request">
446
+ <return-value transfer-ownership="full">
447
+ <type name="guint32" c:type="guint32"/>
448
+ </return-value>
449
+ <parameters>
450
+ <instance-parameter name="self" transfer-ownership="none">
451
+ <type name="GjsifyHttp2.SessionBridge" c:type="GjsifyHttp2SessionBridge*"/>
452
+ </instance-parameter>
453
+ <parameter name="names" transfer-ownership="none">
454
+ <array length="1" c:type="gchar**">
455
+ <type name="utf8" c:type="gchar*"/>
456
+ </array>
457
+ </parameter>
458
+ <parameter name="names_length1" transfer-ownership="none">
459
+ <type name="gint" c:type="gint"/>
460
+ </parameter>
461
+ <parameter name="values" transfer-ownership="none">
462
+ <array length="3" c:type="gchar**">
463
+ <type name="utf8" c:type="gchar*"/>
464
+ </array>
465
+ </parameter>
466
+ <parameter name="values_length1" transfer-ownership="none">
467
+ <type name="gint" c:type="gint"/>
468
+ </parameter>
469
+ <parameter name="end_stream" transfer-ownership="none">
470
+ <type name="gboolean" c:type="gboolean"/>
471
+ </parameter>
472
+ </parameters>
473
+ </method>
474
+ <method name="submit_data" c:identifier="gjsify_http2_session_bridge_submit_data">
475
+ <return-value transfer-ownership="full">
476
+ <type name="gint" c:type="gint"/>
477
+ </return-value>
478
+ <parameters>
479
+ <instance-parameter name="self" transfer-ownership="none">
480
+ <type name="GjsifyHttp2.SessionBridge" c:type="GjsifyHttp2SessionBridge*"/>
481
+ </instance-parameter>
482
+ <parameter name="stream_id" transfer-ownership="none">
483
+ <type name="guint32" c:type="guint32"/>
484
+ </parameter>
485
+ <parameter name="data" transfer-ownership="none">
486
+ <type name="GLib.Bytes" c:type="GBytes*"/>
487
+ </parameter>
488
+ <parameter name="end_stream" transfer-ownership="none">
489
+ <type name="gboolean" c:type="gboolean"/>
490
+ </parameter>
491
+ </parameters>
492
+ </method>
493
+ <method name="submit_push_promise" c:identifier="gjsify_http2_session_bridge_submit_push_promise">
494
+ <return-value transfer-ownership="full">
495
+ <type name="guint32" c:type="guint32"/>
496
+ </return-value>
497
+ <parameters>
498
+ <instance-parameter name="self" transfer-ownership="none">
499
+ <type name="GjsifyHttp2.SessionBridge" c:type="GjsifyHttp2SessionBridge*"/>
500
+ </instance-parameter>
501
+ <parameter name="parent_id" transfer-ownership="none">
502
+ <type name="guint32" c:type="guint32"/>
503
+ </parameter>
504
+ <parameter name="names" transfer-ownership="none">
505
+ <array length="2" c:type="gchar**">
506
+ <type name="utf8" c:type="gchar*"/>
507
+ </array>
508
+ </parameter>
509
+ <parameter name="names_length1" transfer-ownership="none">
510
+ <type name="gint" c:type="gint"/>
511
+ </parameter>
512
+ <parameter name="values" transfer-ownership="none">
513
+ <array length="4" c:type="gchar**">
514
+ <type name="utf8" c:type="gchar*"/>
515
+ </array>
516
+ </parameter>
517
+ <parameter name="values_length1" transfer-ownership="none">
518
+ <type name="gint" c:type="gint"/>
519
+ </parameter>
520
+ </parameters>
521
+ </method>
522
+ <method name="submit_goaway" c:identifier="gjsify_http2_session_bridge_submit_goaway">
523
+ <return-value transfer-ownership="full">
524
+ <type name="gint" c:type="gint"/>
525
+ </return-value>
526
+ <parameters>
527
+ <instance-parameter name="self" transfer-ownership="none">
528
+ <type name="GjsifyHttp2.SessionBridge" c:type="GjsifyHttp2SessionBridge*"/>
529
+ </instance-parameter>
530
+ <parameter name="last_stream_id" transfer-ownership="none">
531
+ <type name="guint32" c:type="guint32"/>
532
+ </parameter>
533
+ <parameter name="error_code" transfer-ownership="none">
534
+ <type name="guint32" c:type="guint32"/>
535
+ </parameter>
536
+ </parameters>
537
+ </method>
538
+ <method name="submit_rst_stream" c:identifier="gjsify_http2_session_bridge_submit_rst_stream">
539
+ <return-value transfer-ownership="full">
540
+ <type name="gint" c:type="gint"/>
541
+ </return-value>
542
+ <parameters>
543
+ <instance-parameter name="self" transfer-ownership="none">
544
+ <type name="GjsifyHttp2.SessionBridge" c:type="GjsifyHttp2SessionBridge*"/>
545
+ </instance-parameter>
546
+ <parameter name="stream_id" transfer-ownership="none">
547
+ <type name="guint32" c:type="guint32"/>
548
+ </parameter>
549
+ <parameter name="error_code" transfer-ownership="none">
550
+ <type name="guint32" c:type="guint32"/>
551
+ </parameter>
552
+ </parameters>
553
+ </method>
554
+ <method name="close" c:identifier="gjsify_http2_session_bridge_close">
555
+ <return-value transfer-ownership="full">
556
+ <type name="none" c:type="void"/>
557
+ </return-value>
558
+ <parameters>
559
+ <instance-parameter name="self" transfer-ownership="none">
560
+ <type name="GjsifyHttp2.SessionBridge" c:type="GjsifyHttp2SessionBridge*"/>
561
+ </instance-parameter>
562
+ </parameters>
563
+ </method>
564
+ <method name="dispatch_pending" c:identifier="gjsify_http2_session_bridge_dispatch_pending">
565
+ <return-value transfer-ownership="full">
566
+ <type name="none" c:type="void"/>
567
+ </return-value>
568
+ <parameters>
569
+ <instance-parameter name="self" transfer-ownership="none">
570
+ <type name="GjsifyHttp2.SessionBridge" c:type="GjsifyHttp2SessionBridge*"/>
571
+ </instance-parameter>
572
+ </parameters>
573
+ </method>
239
574
  <constructor name="new" c:identifier="gjsify_http2_session_bridge_new">
240
575
  <return-value transfer-ownership="full">
241
576
  <type name="GjsifyHttp2.SessionBridge" c:type="GjsifyHttp2SessionBridge*"/>
242
577
  </return-value>
243
578
  </constructor>
579
+ <glib:signal name="headers-received">
580
+ <return-value transfer-ownership="full">
581
+ <type name="none" c:type="void"/>
582
+ </return-value>
583
+ <parameters>
584
+ <parameter name="stream_id" transfer-ownership="none">
585
+ <type name="guint32" c:type="guint32"/>
586
+ </parameter>
587
+ <parameter name="headers" transfer-ownership="none">
588
+ <type name="GLib.Variant" c:type="GVariant*"/>
589
+ </parameter>
590
+ <parameter name="end_stream" transfer-ownership="none">
591
+ <type name="gboolean" c:type="gboolean"/>
592
+ </parameter>
593
+ </parameters>
594
+ </glib:signal>
595
+ <glib:signal name="data-received">
596
+ <return-value transfer-ownership="full">
597
+ <type name="none" c:type="void"/>
598
+ </return-value>
599
+ <parameters>
600
+ <parameter name="stream_id" transfer-ownership="none">
601
+ <type name="guint32" c:type="guint32"/>
602
+ </parameter>
603
+ <parameter name="chunk" transfer-ownership="none">
604
+ <type name="GLib.Bytes" c:type="GBytes*"/>
605
+ </parameter>
606
+ <parameter name="end_stream" transfer-ownership="none">
607
+ <type name="gboolean" c:type="gboolean"/>
608
+ </parameter>
609
+ </parameters>
610
+ </glib:signal>
611
+ <glib:signal name="stream-closed">
612
+ <return-value transfer-ownership="full">
613
+ <type name="none" c:type="void"/>
614
+ </return-value>
615
+ <parameters>
616
+ <parameter name="stream_id" transfer-ownership="none">
617
+ <type name="guint32" c:type="guint32"/>
618
+ </parameter>
619
+ <parameter name="error_code" transfer-ownership="none">
620
+ <type name="guint32" c:type="guint32"/>
621
+ </parameter>
622
+ </parameters>
623
+ </glib:signal>
624
+ <glib:signal name="frame-send-ready">
625
+ <return-value transfer-ownership="full">
626
+ <type name="none" c:type="void"/>
627
+ </return-value>
628
+ </glib:signal>
629
+ <glib:signal name="goaway-received">
630
+ <return-value transfer-ownership="full">
631
+ <type name="none" c:type="void"/>
632
+ </return-value>
633
+ <parameters>
634
+ <parameter name="last_stream_id" transfer-ownership="none">
635
+ <type name="guint32" c:type="guint32"/>
636
+ </parameter>
637
+ <parameter name="error_code" transfer-ownership="none">
638
+ <type name="guint32" c:type="guint32"/>
639
+ </parameter>
640
+ </parameters>
641
+ </glib:signal>
642
+ <glib:signal name="settings-received">
643
+ <return-value transfer-ownership="full">
644
+ <type name="none" c:type="void"/>
645
+ </return-value>
646
+ </glib:signal>
647
+ <glib:signal name="push-promise-received">
648
+ <return-value transfer-ownership="full">
649
+ <type name="none" c:type="void"/>
650
+ </return-value>
651
+ <parameters>
652
+ <parameter name="stream_id" transfer-ownership="none">
653
+ <type name="guint32" c:type="guint32"/>
654
+ </parameter>
655
+ <parameter name="promised_stream_id" transfer-ownership="none">
656
+ <type name="guint32" c:type="guint32"/>
657
+ </parameter>
658
+ <parameter name="headers" transfer-ownership="none">
659
+ <type name="GLib.Variant" c:type="GVariant*"/>
660
+ </parameter>
661
+ </parameters>
662
+ </glib:signal>
244
663
  </class>
245
664
  <record name="SessionBridgeClass" c:type="GjsifyHttp2SessionBridgeClass" glib:is-gtype-struct-for="SessionBridge">
246
665
  <field name="parent_class" readable="0" private="1">