@girs/gssdp-1.0 1.0.0-3.0.0-beta.12

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.
package/gssdp-1.0.d.ts ADDED
@@ -0,0 +1,654 @@
1
+
2
+ /*
3
+ * Type Definitions for Gjs (https://gjs.guide/)
4
+ *
5
+ * These type definitions are automatically generated, do not edit them by hand.
6
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
7
+ */
8
+ /**
9
+ * GSSDP-1.0
10
+ */
11
+
12
+ import type Soup from '@girs/soup-2.4';
13
+ import type Gio from '@girs/gio-2.0';
14
+ import type GObject from '@girs/gobject-2.0';
15
+ import type GLib from '@girs/glib-2.0';
16
+
17
+ export namespace GSSDP {
18
+
19
+ enum Error {
20
+ /**
21
+ * GSSDP could not find a valid IP address of a
22
+ * #GSSDPClient.
23
+ */
24
+ NO_IP_ADDRESS,
25
+ /**
26
+ * Unknown error.
27
+ */
28
+ FAILED,
29
+ }
30
+ /**
31
+ * SSDP search target for finding all possible resources.
32
+ */
33
+ const ALL_RESOURCES: string | null
34
+ function error_quark(): GLib.Quark
35
+ module Client {
36
+
37
+ // Signal callback interfaces
38
+
39
+
40
+
41
+ // Constructor properties interface
42
+
43
+ interface ConstructorProperties extends Gio.Initable.ConstructorProperties, GObject.Object.ConstructorProperties {
44
+
45
+ // Own constructor properties of GSSDP-1.0.GSSDP.Client
46
+
47
+ /**
48
+ * Whether this client is active or not (passive). When active
49
+ * (default), the client sends messages on the network, otherwise
50
+ * not. In most cases, you don't want to touch this property.
51
+ */
52
+ active?: boolean | null
53
+ /**
54
+ * The IP address of the assoicated network interface.
55
+ */
56
+ host_ip?: string | null
57
+ /**
58
+ * The name of the network interface this client is associated with.
59
+ * Set to NULL to autodetect.
60
+ */
61
+ interface?: string | null
62
+ /**
63
+ * UDP port to use for sending multicast M-SEARCH requests on the
64
+ * network. If not set (or set to 0) a random port will be used.
65
+ * This property can be only set during object construction.
66
+ */
67
+ msearch_port?: number | null
68
+ /**
69
+ * The network this client is currently connected to. You could set this
70
+ * to anything you want to identify the network this client is
71
+ * associated with. If you are using #GUPnPContextManager and associated
72
+ * interface is a WiFi interface, this property is set to the ESSID of
73
+ * the network. Otherwise, expect this to be the network IP address by
74
+ * default.
75
+ */
76
+ network?: string | null
77
+ /**
78
+ * The SSDP server's identifier.
79
+ */
80
+ server_id?: string | null
81
+ /**
82
+ * Time-to-live value to use for all sockets created by this client.
83
+ * If not set (or set to 0) the value recommended by UPnP will be used.
84
+ * This property can only be set during object construction.
85
+ */
86
+ socket_ttl?: number | null
87
+ }
88
+
89
+ }
90
+
91
+ interface Client extends Gio.Initable {
92
+
93
+ // Own properties of GSSDP-1.0.GSSDP.Client
94
+
95
+ /**
96
+ * Whether this client is active or not (passive). When active
97
+ * (default), the client sends messages on the network, otherwise
98
+ * not. In most cases, you don't want to touch this property.
99
+ */
100
+ active: boolean
101
+ /**
102
+ * The IP address of the assoicated network interface.
103
+ */
104
+ host_ip: string | null
105
+ /**
106
+ * The name of the network interface this client is associated with.
107
+ * Set to NULL to autodetect.
108
+ */
109
+ readonly interface: string | null
110
+ /**
111
+ * UDP port to use for sending multicast M-SEARCH requests on the
112
+ * network. If not set (or set to 0) a random port will be used.
113
+ * This property can be only set during object construction.
114
+ */
115
+ readonly msearch_port: number
116
+ /**
117
+ * The network this client is currently connected to. You could set this
118
+ * to anything you want to identify the network this client is
119
+ * associated with. If you are using #GUPnPContextManager and associated
120
+ * interface is a WiFi interface, this property is set to the ESSID of
121
+ * the network. Otherwise, expect this to be the network IP address by
122
+ * default.
123
+ */
124
+ network: string | null
125
+ /**
126
+ * The SSDP server's identifier.
127
+ */
128
+ server_id: string | null
129
+ /**
130
+ * Time-to-live value to use for all sockets created by this client.
131
+ * If not set (or set to 0) the value recommended by UPnP will be used.
132
+ * This property can only be set during object construction.
133
+ */
134
+ readonly socket_ttl: number
135
+
136
+ // Own fields of GSSDP-1.0.GSSDP.Client
137
+
138
+ parent: GObject.Object
139
+ priv: ClientPrivate
140
+
141
+ // Owm methods of GSSDP-1.0.GSSDP.Client
142
+
143
+ add_cache_entry(ip_address: string | null, user_agent: string | null): void
144
+ /**
145
+ * Adds a header field to the message sent by this `client`. It is intended to
146
+ * be used by clients requiring vendor specific header fields. (If there is an
147
+ * existing header with name name , then this creates a second one).
148
+ * @param name Header name
149
+ * @param value Header value
150
+ */
151
+ append_header(name: string | null, value: string | null): void
152
+ /**
153
+ * Removes all the headers for this `client`.
154
+ */
155
+ clear_headers(): void
156
+ get_active(): boolean
157
+ /**
158
+ * Get the IP address we advertise ourselves as using.
159
+ * @returns The IP address. This string should not be freed.
160
+ */
161
+ get_host_ip(): string | null
162
+ /**
163
+ * Get the name of the network interface associated to `client`.
164
+ * @returns The network interface name. This string should not be freed.
165
+ */
166
+ get_interface(): string | null
167
+ get_main_context(): GLib.MainContext
168
+ /**
169
+ * Get the network this client is associated with.
170
+ * @returns The network identification. This string should not be freed.
171
+ */
172
+ get_network(): string | null
173
+ get_server_id(): string | null
174
+ guess_user_agent(ip_address: string | null): string | null
175
+ /**
176
+ * Removes `name` from the list of headers . If there are multiple values for
177
+ * `name,` they are all removed.
178
+ * @param name Header name
179
+ */
180
+ remove_header(name: string | null): void
181
+ /**
182
+ * Sets the network identification of `client` to `network`.
183
+ * @param network The string identifying the network
184
+ */
185
+ set_network(network: string | null): void
186
+ /**
187
+ * Sets the server ID of `client` to `server_id`.
188
+ * @param server_id The server ID
189
+ */
190
+ set_server_id(server_id: string | null): void
191
+
192
+ // Own signals of GSSDP-1.0.GSSDP.Client
193
+
194
+ connect(sigName: "message-received", callback: (...args: any[]) => void): number
195
+ connect_after(sigName: "message-received", callback: (...args: any[]) => void): number
196
+ emit(sigName: "message-received", from_ip: string | null, from_port: number, type: number, headers: Soup.MessageHeaders, ...args: any[]): void
197
+
198
+ // Class property signals of GSSDP-1.0.GSSDP.Client
199
+
200
+ connect(sigName: "notify::active", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
201
+ connect_after(sigName: "notify::active", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
202
+ emit(sigName: "notify::active", ...args: any[]): void
203
+ connect(sigName: "notify::host-ip", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
204
+ connect_after(sigName: "notify::host-ip", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
205
+ emit(sigName: "notify::host-ip", ...args: any[]): void
206
+ connect(sigName: "notify::interface", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
207
+ connect_after(sigName: "notify::interface", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
208
+ emit(sigName: "notify::interface", ...args: any[]): void
209
+ connect(sigName: "notify::msearch-port", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
210
+ connect_after(sigName: "notify::msearch-port", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
211
+ emit(sigName: "notify::msearch-port", ...args: any[]): void
212
+ connect(sigName: "notify::network", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
213
+ connect_after(sigName: "notify::network", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
214
+ emit(sigName: "notify::network", ...args: any[]): void
215
+ connect(sigName: "notify::server-id", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
216
+ connect_after(sigName: "notify::server-id", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
217
+ emit(sigName: "notify::server-id", ...args: any[]): void
218
+ connect(sigName: "notify::socket-ttl", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
219
+ connect_after(sigName: "notify::socket-ttl", callback: (($obj: Client, pspec: GObject.ParamSpec) => void)): number
220
+ emit(sigName: "notify::socket-ttl", ...args: any[]): void
221
+ connect(sigName: string, callback: (...args: any[]) => void): number
222
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
223
+ emit(sigName: string, ...args: any[]): void
224
+ disconnect(id: number): void
225
+ }
226
+
227
+ class Client extends GObject.Object {
228
+
229
+ // Own properties of GSSDP-1.0.GSSDP.Client
230
+
231
+ static name: string
232
+ static $gtype: GObject.GType<Client>
233
+
234
+ // Constructors of GSSDP-1.0.GSSDP.Client
235
+
236
+ constructor(config?: Client.ConstructorProperties)
237
+ constructor(main_context: GLib.MainContext | null, iface: string | null)
238
+ static new(main_context: GLib.MainContext | null, iface: string | null): Client
239
+ static new_with_port(iface: string | null, msearch_port: number): Client
240
+ _init(config?: Client.ConstructorProperties): void
241
+ }
242
+
243
+ module ResourceBrowser {
244
+
245
+ // Signal callback interfaces
246
+
247
+ /**
248
+ * Signal callback interface for `resource-available`
249
+ */
250
+ interface ResourceAvailableSignalCallback {
251
+ ($obj: ResourceBrowser, usn: string | null, locations: string[]): void
252
+ }
253
+
254
+ /**
255
+ * Signal callback interface for `resource-unavailable`
256
+ */
257
+ interface ResourceUnavailableSignalCallback {
258
+ ($obj: ResourceBrowser, usn: string | null): void
259
+ }
260
+
261
+
262
+ // Constructor properties interface
263
+
264
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
265
+
266
+ // Own constructor properties of GSSDP-1.0.GSSDP.ResourceBrowser
267
+
268
+ /**
269
+ * Whether this browser is active or not.
270
+ */
271
+ active?: boolean | null
272
+ /**
273
+ * The #GSSDPClient to use.
274
+ */
275
+ client?: Client | null
276
+ /**
277
+ * The maximum number of seconds in which to request other parties
278
+ * to respond.
279
+ */
280
+ mx?: number | null
281
+ /**
282
+ * The discovery target.
283
+ */
284
+ target?: string | null
285
+ }
286
+
287
+ }
288
+
289
+ interface ResourceBrowser {
290
+
291
+ // Own properties of GSSDP-1.0.GSSDP.ResourceBrowser
292
+
293
+ /**
294
+ * Whether this browser is active or not.
295
+ */
296
+ active: boolean
297
+ /**
298
+ * The #GSSDPClient to use.
299
+ */
300
+ readonly client: Client
301
+ /**
302
+ * The maximum number of seconds in which to request other parties
303
+ * to respond.
304
+ */
305
+ mx: number
306
+ /**
307
+ * The discovery target.
308
+ */
309
+ target: string | null
310
+
311
+ // Own fields of GSSDP-1.0.GSSDP.ResourceBrowser
312
+
313
+ parent: GObject.Object
314
+ priv: ResourceBrowserPrivate
315
+
316
+ // Owm methods of GSSDP-1.0.GSSDP.ResourceBrowser
317
+
318
+ get_active(): boolean
319
+ get_client(): Client
320
+ get_mx(): number
321
+ get_target(): string | null
322
+ /**
323
+ * Begins discovery if `resource_browser` is active and no discovery is
324
+ * performed. Otherwise does nothing.
325
+ * @returns %TRUE if rescaning has been started.
326
+ */
327
+ rescan(): boolean
328
+ /**
329
+ * (De)activates `resource_browser`.
330
+ * @param active %TRUE to activate `resource_browser`
331
+ */
332
+ set_active(active: boolean): void
333
+ /**
334
+ * Sets the used MX value of `resource_browser` to `mx`.
335
+ * @param mx The to be used MX value
336
+ */
337
+ set_mx(mx: number): void
338
+ /**
339
+ * Sets the browser target of `resource_browser` to `target`.
340
+ * @param target The browser target
341
+ */
342
+ set_target(target: string | null): void
343
+
344
+ // Own virtual methods of GSSDP-1.0.GSSDP.ResourceBrowser
345
+
346
+ vfunc_resource_unavailable(usn: string | null): void
347
+
348
+ // Own signals of GSSDP-1.0.GSSDP.ResourceBrowser
349
+
350
+ connect(sigName: "resource-available", callback: ResourceBrowser.ResourceAvailableSignalCallback): number
351
+ connect_after(sigName: "resource-available", callback: ResourceBrowser.ResourceAvailableSignalCallback): number
352
+ emit(sigName: "resource-available", usn: string | null, locations: string[], ...args: any[]): void
353
+ connect(sigName: "resource-unavailable", callback: ResourceBrowser.ResourceUnavailableSignalCallback): number
354
+ connect_after(sigName: "resource-unavailable", callback: ResourceBrowser.ResourceUnavailableSignalCallback): number
355
+ emit(sigName: "resource-unavailable", usn: string | null, ...args: any[]): void
356
+
357
+ // Class property signals of GSSDP-1.0.GSSDP.ResourceBrowser
358
+
359
+ connect(sigName: "notify::active", callback: (($obj: ResourceBrowser, pspec: GObject.ParamSpec) => void)): number
360
+ connect_after(sigName: "notify::active", callback: (($obj: ResourceBrowser, pspec: GObject.ParamSpec) => void)): number
361
+ emit(sigName: "notify::active", ...args: any[]): void
362
+ connect(sigName: "notify::client", callback: (($obj: ResourceBrowser, pspec: GObject.ParamSpec) => void)): number
363
+ connect_after(sigName: "notify::client", callback: (($obj: ResourceBrowser, pspec: GObject.ParamSpec) => void)): number
364
+ emit(sigName: "notify::client", ...args: any[]): void
365
+ connect(sigName: "notify::mx", callback: (($obj: ResourceBrowser, pspec: GObject.ParamSpec) => void)): number
366
+ connect_after(sigName: "notify::mx", callback: (($obj: ResourceBrowser, pspec: GObject.ParamSpec) => void)): number
367
+ emit(sigName: "notify::mx", ...args: any[]): void
368
+ connect(sigName: "notify::target", callback: (($obj: ResourceBrowser, pspec: GObject.ParamSpec) => void)): number
369
+ connect_after(sigName: "notify::target", callback: (($obj: ResourceBrowser, pspec: GObject.ParamSpec) => void)): number
370
+ emit(sigName: "notify::target", ...args: any[]): void
371
+ connect(sigName: string, callback: (...args: any[]) => void): number
372
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
373
+ emit(sigName: string, ...args: any[]): void
374
+ disconnect(id: number): void
375
+ }
376
+
377
+ class ResourceBrowser extends GObject.Object {
378
+
379
+ // Own properties of GSSDP-1.0.GSSDP.ResourceBrowser
380
+
381
+ static name: string
382
+ static $gtype: GObject.GType<ResourceBrowser>
383
+
384
+ // Constructors of GSSDP-1.0.GSSDP.ResourceBrowser
385
+
386
+ constructor(config?: ResourceBrowser.ConstructorProperties)
387
+ /**
388
+ * `target` is a generic string the resource browser listens for on the SSDP
389
+ * bus. There are several possible targets such as
390
+ * <itemizedlist>
391
+ * <listitem><para>"ssdp:all" for everything</para></listitem>
392
+ * <listitem><para>
393
+ * "upnp:rootdevice" for UPnP device entry points, not caring about the
394
+ * device type</para></listitem>
395
+ * <listitem><para>The UUID of a specific device</para></listitem>
396
+ * <listitem><para>Device types such as
397
+ * "urn:schemas-upnp-org:device:MediaServer:1"</para></listitem>
398
+ * <listitem><para>Service types such as
399
+ * "urn:schemas-upnp-org:service:ContentDirectory:1"</para></listitem>
400
+ * </itemizedlist>
401
+ * @constructor
402
+ * @param client The #GSSDPClient to associate with
403
+ * @param target A SSDP search target
404
+ * @returns A new #GSSDPResourceBrowser object.
405
+ */
406
+ constructor(client: Client, target: string | null)
407
+ /**
408
+ * `target` is a generic string the resource browser listens for on the SSDP
409
+ * bus. There are several possible targets such as
410
+ * <itemizedlist>
411
+ * <listitem><para>"ssdp:all" for everything</para></listitem>
412
+ * <listitem><para>
413
+ * "upnp:rootdevice" for UPnP device entry points, not caring about the
414
+ * device type</para></listitem>
415
+ * <listitem><para>The UUID of a specific device</para></listitem>
416
+ * <listitem><para>Device types such as
417
+ * "urn:schemas-upnp-org:device:MediaServer:1"</para></listitem>
418
+ * <listitem><para>Service types such as
419
+ * "urn:schemas-upnp-org:service:ContentDirectory:1"</para></listitem>
420
+ * </itemizedlist>
421
+ * @constructor
422
+ * @param client The #GSSDPClient to associate with
423
+ * @param target A SSDP search target
424
+ * @returns A new #GSSDPResourceBrowser object.
425
+ */
426
+ static new(client: Client, target: string | null): ResourceBrowser
427
+ _init(config?: ResourceBrowser.ConstructorProperties): void
428
+ }
429
+
430
+ module ResourceGroup {
431
+
432
+ // Constructor properties interface
433
+
434
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
435
+
436
+ // Own constructor properties of GSSDP-1.0.GSSDP.ResourceGroup
437
+
438
+ /**
439
+ * Whether this group of resources is available or not.
440
+ */
441
+ available?: boolean | null
442
+ /**
443
+ * The #GSSDPClient to use.
444
+ */
445
+ client?: Client | null
446
+ /**
447
+ * The number of seconds our advertisements are valid.
448
+ */
449
+ max_age?: number | null
450
+ /**
451
+ * The minimum number of milliseconds between SSDP messages.
452
+ * The default is 120 based on DLNA specification.
453
+ */
454
+ message_delay?: number | null
455
+ }
456
+
457
+ }
458
+
459
+ interface ResourceGroup {
460
+
461
+ // Own properties of GSSDP-1.0.GSSDP.ResourceGroup
462
+
463
+ /**
464
+ * Whether this group of resources is available or not.
465
+ */
466
+ available: boolean
467
+ /**
468
+ * The #GSSDPClient to use.
469
+ */
470
+ readonly client: Client
471
+ /**
472
+ * The number of seconds our advertisements are valid.
473
+ */
474
+ max_age: number
475
+ /**
476
+ * The minimum number of milliseconds between SSDP messages.
477
+ * The default is 120 based on DLNA specification.
478
+ */
479
+ message_delay: number
480
+
481
+ // Own fields of GSSDP-1.0.GSSDP.ResourceGroup
482
+
483
+ parent: GObject.Object
484
+ priv: ResourceGroupPrivate
485
+
486
+ // Owm methods of GSSDP-1.0.GSSDP.ResourceGroup
487
+
488
+ /**
489
+ * Adds a resource with target `target,` USN `usn,` and locations `locations`
490
+ * to `resource_group`.
491
+ * @param target The resource's target
492
+ * @param usn The resource's USN
493
+ * @param locations A #GList of the resource's locations
494
+ * @returns The ID of the added resource.
495
+ */
496
+ add_resource(target: string | null, usn: string | null, locations: string[]): number
497
+ /**
498
+ * Adds a resource with target `target,` USN `usn,` and location `location`
499
+ * to `resource_group`.
500
+ * @param target The resource's target
501
+ * @param usn The resource's USN
502
+ * @param location The resource's location
503
+ * @returns The ID of the added resource.
504
+ */
505
+ add_resource_simple(target: string | null, usn: string | null, location: string | null): number
506
+ get_available(): boolean
507
+ get_client(): Client
508
+ get_max_age(): number
509
+ get_message_delay(): number
510
+ /**
511
+ * Removes the resource with ID `resource_id` from `resource_group`.
512
+ * @param resource_id The ID of the resource to remove
513
+ */
514
+ remove_resource(resource_id: number): void
515
+ /**
516
+ * Sets `resource_group<`!-- -->s availability to `available`. Changing
517
+ * `resource_group<`!-- -->s availability causes it to announce its new state
518
+ * to listening SSDP clients.
519
+ * @param available %TRUE if `resource_group` should be available (advertised)
520
+ */
521
+ set_available(available: boolean): void
522
+ /**
523
+ * Sets the number of seconds advertisements are valid to `max_age`.
524
+ * @param max_age The number of seconds advertisements are valid
525
+ */
526
+ set_max_age(max_age: number): void
527
+ /**
528
+ * Sets the minimum time between each SSDP message.
529
+ * @param message_delay The message delay in ms.
530
+ */
531
+ set_message_delay(message_delay: number): void
532
+
533
+ // Class property signals of GSSDP-1.0.GSSDP.ResourceGroup
534
+
535
+ connect(sigName: "notify::available", callback: (($obj: ResourceGroup, pspec: GObject.ParamSpec) => void)): number
536
+ connect_after(sigName: "notify::available", callback: (($obj: ResourceGroup, pspec: GObject.ParamSpec) => void)): number
537
+ emit(sigName: "notify::available", ...args: any[]): void
538
+ connect(sigName: "notify::client", callback: (($obj: ResourceGroup, pspec: GObject.ParamSpec) => void)): number
539
+ connect_after(sigName: "notify::client", callback: (($obj: ResourceGroup, pspec: GObject.ParamSpec) => void)): number
540
+ emit(sigName: "notify::client", ...args: any[]): void
541
+ connect(sigName: "notify::max-age", callback: (($obj: ResourceGroup, pspec: GObject.ParamSpec) => void)): number
542
+ connect_after(sigName: "notify::max-age", callback: (($obj: ResourceGroup, pspec: GObject.ParamSpec) => void)): number
543
+ emit(sigName: "notify::max-age", ...args: any[]): void
544
+ connect(sigName: "notify::message-delay", callback: (($obj: ResourceGroup, pspec: GObject.ParamSpec) => void)): number
545
+ connect_after(sigName: "notify::message-delay", callback: (($obj: ResourceGroup, pspec: GObject.ParamSpec) => void)): number
546
+ emit(sigName: "notify::message-delay", ...args: any[]): void
547
+ connect(sigName: string, callback: (...args: any[]) => void): number
548
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
549
+ emit(sigName: string, ...args: any[]): void
550
+ disconnect(id: number): void
551
+ }
552
+
553
+ class ResourceGroup extends GObject.Object {
554
+
555
+ // Own properties of GSSDP-1.0.GSSDP.ResourceGroup
556
+
557
+ static name: string
558
+ static $gtype: GObject.GType<ResourceGroup>
559
+
560
+ // Constructors of GSSDP-1.0.GSSDP.ResourceGroup
561
+
562
+ constructor(config?: ResourceGroup.ConstructorProperties)
563
+ constructor(client: Client)
564
+ static new(client: Client): ResourceGroup
565
+ _init(config?: ResourceGroup.ConstructorProperties): void
566
+ }
567
+
568
+ interface ClientClass {
569
+
570
+ // Own fields of GSSDP-1.0.GSSDP.ClientClass
571
+
572
+ parent_class: GObject.ObjectClass
573
+ }
574
+
575
+ abstract class ClientClass {
576
+
577
+ // Own properties of GSSDP-1.0.GSSDP.ClientClass
578
+
579
+ static name: string
580
+ }
581
+
582
+ interface ClientPrivate {
583
+ }
584
+
585
+ class ClientPrivate {
586
+
587
+ // Own properties of GSSDP-1.0.GSSDP.ClientPrivate
588
+
589
+ static name: string
590
+ }
591
+
592
+ interface ResourceBrowserClass {
593
+
594
+ // Own fields of GSSDP-1.0.GSSDP.ResourceBrowserClass
595
+
596
+ parent_class: GObject.ObjectClass
597
+ resource_unavailable: (resource_browser: ResourceBrowser, usn: string | null) => void
598
+ }
599
+
600
+ abstract class ResourceBrowserClass {
601
+
602
+ // Own properties of GSSDP-1.0.GSSDP.ResourceBrowserClass
603
+
604
+ static name: string
605
+ }
606
+
607
+ interface ResourceBrowserPrivate {
608
+ }
609
+
610
+ class ResourceBrowserPrivate {
611
+
612
+ // Own properties of GSSDP-1.0.GSSDP.ResourceBrowserPrivate
613
+
614
+ static name: string
615
+ }
616
+
617
+ interface ResourceGroupClass {
618
+
619
+ // Own fields of GSSDP-1.0.GSSDP.ResourceGroupClass
620
+
621
+ parent_class: GObject.ObjectClass
622
+ }
623
+
624
+ abstract class ResourceGroupClass {
625
+
626
+ // Own properties of GSSDP-1.0.GSSDP.ResourceGroupClass
627
+
628
+ static name: string
629
+ }
630
+
631
+ interface ResourceGroupPrivate {
632
+ }
633
+
634
+ class ResourceGroupPrivate {
635
+
636
+ // Own properties of GSSDP-1.0.GSSDP.ResourceGroupPrivate
637
+
638
+ static name: string
639
+ }
640
+
641
+ /**
642
+ * Name of the imported GIR library
643
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
644
+ */
645
+ const __name__: string
646
+ /**
647
+ * Version of the imported GIR library
648
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
649
+ */
650
+ const __version__: string
651
+ }
652
+
653
+ export default GSSDP;
654
+ // END
package/gssdp-1.0.js ADDED
@@ -0,0 +1,8 @@
1
+
2
+
3
+ // @ts-expect-error
4
+ import GSSDP from 'gi://GSSDP?version=1.0';
5
+ export { GSSDP };
6
+ export default GSSDP;
7
+
8
+