@girs/gssdp-1.0 1.0.0-3.2.6 → 1.0.0-3.2.7
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/README.md +1 -1
- package/gssdp-1.0.d.cts +19 -19
- package/gssdp-1.0.d.ts +19 -19
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for GSSDP-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for GSSDP-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
GObject-based API for handling resource discovery and announcement over SSDP.
|
|
11
11
|
|
package/gssdp-1.0.d.cts
CHANGED
|
@@ -31,7 +31,7 @@ export enum Error {
|
|
|
31
31
|
/**
|
|
32
32
|
* SSDP search target for finding all possible resources.
|
|
33
33
|
*/
|
|
34
|
-
export const ALL_RESOURCES: string
|
|
34
|
+
export const ALL_RESOURCES: string
|
|
35
35
|
export function error_quark(): GLib.Quark
|
|
36
36
|
export module Client {
|
|
37
37
|
|
|
@@ -181,7 +181,7 @@ export interface Client extends Gio.Initable {
|
|
|
181
181
|
|
|
182
182
|
// Owm methods of GSSDP-1.0.GSSDP.Client
|
|
183
183
|
|
|
184
|
-
add_cache_entry(ip_address: string
|
|
184
|
+
add_cache_entry(ip_address: string, user_agent: string): void
|
|
185
185
|
/**
|
|
186
186
|
* Adds a header field to the message sent by this `client`. It is intended to
|
|
187
187
|
* be used by clients requiring vendor specific header fields. (If there is an
|
|
@@ -189,7 +189,7 @@ export interface Client extends Gio.Initable {
|
|
|
189
189
|
* @param name Header name
|
|
190
190
|
* @param value Header value
|
|
191
191
|
*/
|
|
192
|
-
append_header(name: string
|
|
192
|
+
append_header(name: string, value: string): void
|
|
193
193
|
/**
|
|
194
194
|
* Removes all the headers for this `client`.
|
|
195
195
|
*/
|
|
@@ -199,36 +199,36 @@ export interface Client extends Gio.Initable {
|
|
|
199
199
|
* Get the IP address we advertise ourselves as using.
|
|
200
200
|
* @returns The IP address. This string should not be freed.
|
|
201
201
|
*/
|
|
202
|
-
get_host_ip(): string
|
|
202
|
+
get_host_ip(): string
|
|
203
203
|
/**
|
|
204
204
|
* Get the name of the network interface associated to `client`.
|
|
205
205
|
* @returns The network interface name. This string should not be freed.
|
|
206
206
|
*/
|
|
207
|
-
get_interface(): string
|
|
207
|
+
get_interface(): string
|
|
208
208
|
get_main_context(): GLib.MainContext
|
|
209
209
|
/**
|
|
210
210
|
* Get the network this client is associated with.
|
|
211
211
|
* @returns The network identification. This string should not be freed.
|
|
212
212
|
*/
|
|
213
|
-
get_network(): string
|
|
214
|
-
get_server_id(): string
|
|
215
|
-
guess_user_agent(ip_address: string
|
|
213
|
+
get_network(): string
|
|
214
|
+
get_server_id(): string
|
|
215
|
+
guess_user_agent(ip_address: string): string
|
|
216
216
|
/**
|
|
217
217
|
* Removes `name` from the list of headers . If there are multiple values for
|
|
218
218
|
* `name,` they are all removed.
|
|
219
219
|
* @param name Header name
|
|
220
220
|
*/
|
|
221
|
-
remove_header(name: string
|
|
221
|
+
remove_header(name: string): void
|
|
222
222
|
/**
|
|
223
223
|
* Sets the network identification of `client` to `network`.
|
|
224
224
|
* @param network The string identifying the network
|
|
225
225
|
*/
|
|
226
|
-
set_network(network: string
|
|
226
|
+
set_network(network: string): void
|
|
227
227
|
/**
|
|
228
228
|
* Sets the server ID of `client` to `server_id`.
|
|
229
229
|
* @param server_id The server ID
|
|
230
230
|
*/
|
|
231
|
-
set_server_id(server_id: string
|
|
231
|
+
set_server_id(server_id: string): void
|
|
232
232
|
|
|
233
233
|
// Own signals of GSSDP-1.0.GSSDP.Client
|
|
234
234
|
|
|
@@ -359,7 +359,7 @@ export interface ResourceBrowser {
|
|
|
359
359
|
get_active(): boolean
|
|
360
360
|
get_client(): Client
|
|
361
361
|
get_mx(): number
|
|
362
|
-
get_target(): string
|
|
362
|
+
get_target(): string
|
|
363
363
|
/**
|
|
364
364
|
* Begins discovery if `resource_browser` is active and no discovery is
|
|
365
365
|
* performed. Otherwise does nothing.
|
|
@@ -380,11 +380,11 @@ export interface ResourceBrowser {
|
|
|
380
380
|
* Sets the browser target of `resource_browser` to `target`.
|
|
381
381
|
* @param target The browser target
|
|
382
382
|
*/
|
|
383
|
-
set_target(target: string
|
|
383
|
+
set_target(target: string): void
|
|
384
384
|
|
|
385
385
|
// Own virtual methods of GSSDP-1.0.GSSDP.ResourceBrowser
|
|
386
386
|
|
|
387
|
-
vfunc_resource_unavailable(usn: string
|
|
387
|
+
vfunc_resource_unavailable(usn: string): void
|
|
388
388
|
|
|
389
389
|
// Own signals of GSSDP-1.0.GSSDP.ResourceBrowser
|
|
390
390
|
|
|
@@ -444,7 +444,7 @@ export class ResourceBrowser extends GObject.Object {
|
|
|
444
444
|
* @param target A SSDP search target
|
|
445
445
|
* @returns A new #GSSDPResourceBrowser object.
|
|
446
446
|
*/
|
|
447
|
-
constructor(client: Client, target: string
|
|
447
|
+
constructor(client: Client, target: string)
|
|
448
448
|
/**
|
|
449
449
|
* `target` is a generic string the resource browser listens for on the SSDP
|
|
450
450
|
* bus. There are several possible targets such as
|
|
@@ -464,7 +464,7 @@ export class ResourceBrowser extends GObject.Object {
|
|
|
464
464
|
* @param target A SSDP search target
|
|
465
465
|
* @returns A new #GSSDPResourceBrowser object.
|
|
466
466
|
*/
|
|
467
|
-
static new(client: Client, target: string
|
|
467
|
+
static new(client: Client, target: string): ResourceBrowser
|
|
468
468
|
_init(config?: ResourceBrowser.ConstructorProperties): void
|
|
469
469
|
}
|
|
470
470
|
|
|
@@ -552,7 +552,7 @@ export interface ResourceGroup {
|
|
|
552
552
|
* @param locations A #GList of the resource's locations
|
|
553
553
|
* @returns The ID of the added resource.
|
|
554
554
|
*/
|
|
555
|
-
add_resource(target: string
|
|
555
|
+
add_resource(target: string, usn: string, locations: string[]): number
|
|
556
556
|
/**
|
|
557
557
|
* Adds a resource with target `target,` USN `usn,` and location `location`
|
|
558
558
|
* to `resource_group`.
|
|
@@ -561,7 +561,7 @@ export interface ResourceGroup {
|
|
|
561
561
|
* @param location The resource's location
|
|
562
562
|
* @returns The ID of the added resource.
|
|
563
563
|
*/
|
|
564
|
-
add_resource_simple(target: string
|
|
564
|
+
add_resource_simple(target: string, usn: string, location: string): number
|
|
565
565
|
get_available(): boolean
|
|
566
566
|
get_client(): Client
|
|
567
567
|
get_max_age(): number
|
|
@@ -653,7 +653,7 @@ export interface ResourceBrowserClass {
|
|
|
653
653
|
// Own fields of GSSDP-1.0.GSSDP.ResourceBrowserClass
|
|
654
654
|
|
|
655
655
|
parent_class: GObject.ObjectClass
|
|
656
|
-
resource_unavailable: (resource_browser: ResourceBrowser, usn: string
|
|
656
|
+
resource_unavailable: (resource_browser: ResourceBrowser, usn: string) => void
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
export abstract class ResourceBrowserClass {
|
package/gssdp-1.0.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ enum Error {
|
|
|
33
33
|
/**
|
|
34
34
|
* SSDP search target for finding all possible resources.
|
|
35
35
|
*/
|
|
36
|
-
const ALL_RESOURCES: string
|
|
36
|
+
const ALL_RESOURCES: string
|
|
37
37
|
function error_quark(): GLib.Quark
|
|
38
38
|
module Client {
|
|
39
39
|
|
|
@@ -183,7 +183,7 @@ interface Client extends Gio.Initable {
|
|
|
183
183
|
|
|
184
184
|
// Owm methods of GSSDP-1.0.GSSDP.Client
|
|
185
185
|
|
|
186
|
-
add_cache_entry(ip_address: string
|
|
186
|
+
add_cache_entry(ip_address: string, user_agent: string): void
|
|
187
187
|
/**
|
|
188
188
|
* Adds a header field to the message sent by this `client`. It is intended to
|
|
189
189
|
* be used by clients requiring vendor specific header fields. (If there is an
|
|
@@ -191,7 +191,7 @@ interface Client extends Gio.Initable {
|
|
|
191
191
|
* @param name Header name
|
|
192
192
|
* @param value Header value
|
|
193
193
|
*/
|
|
194
|
-
append_header(name: string
|
|
194
|
+
append_header(name: string, value: string): void
|
|
195
195
|
/**
|
|
196
196
|
* Removes all the headers for this `client`.
|
|
197
197
|
*/
|
|
@@ -201,36 +201,36 @@ interface Client extends Gio.Initable {
|
|
|
201
201
|
* Get the IP address we advertise ourselves as using.
|
|
202
202
|
* @returns The IP address. This string should not be freed.
|
|
203
203
|
*/
|
|
204
|
-
get_host_ip(): string
|
|
204
|
+
get_host_ip(): string
|
|
205
205
|
/**
|
|
206
206
|
* Get the name of the network interface associated to `client`.
|
|
207
207
|
* @returns The network interface name. This string should not be freed.
|
|
208
208
|
*/
|
|
209
|
-
get_interface(): string
|
|
209
|
+
get_interface(): string
|
|
210
210
|
get_main_context(): GLib.MainContext
|
|
211
211
|
/**
|
|
212
212
|
* Get the network this client is associated with.
|
|
213
213
|
* @returns The network identification. This string should not be freed.
|
|
214
214
|
*/
|
|
215
|
-
get_network(): string
|
|
216
|
-
get_server_id(): string
|
|
217
|
-
guess_user_agent(ip_address: string
|
|
215
|
+
get_network(): string
|
|
216
|
+
get_server_id(): string
|
|
217
|
+
guess_user_agent(ip_address: string): string
|
|
218
218
|
/**
|
|
219
219
|
* Removes `name` from the list of headers . If there are multiple values for
|
|
220
220
|
* `name,` they are all removed.
|
|
221
221
|
* @param name Header name
|
|
222
222
|
*/
|
|
223
|
-
remove_header(name: string
|
|
223
|
+
remove_header(name: string): void
|
|
224
224
|
/**
|
|
225
225
|
* Sets the network identification of `client` to `network`.
|
|
226
226
|
* @param network The string identifying the network
|
|
227
227
|
*/
|
|
228
|
-
set_network(network: string
|
|
228
|
+
set_network(network: string): void
|
|
229
229
|
/**
|
|
230
230
|
* Sets the server ID of `client` to `server_id`.
|
|
231
231
|
* @param server_id The server ID
|
|
232
232
|
*/
|
|
233
|
-
set_server_id(server_id: string
|
|
233
|
+
set_server_id(server_id: string): void
|
|
234
234
|
|
|
235
235
|
// Own signals of GSSDP-1.0.GSSDP.Client
|
|
236
236
|
|
|
@@ -361,7 +361,7 @@ interface ResourceBrowser {
|
|
|
361
361
|
get_active(): boolean
|
|
362
362
|
get_client(): Client
|
|
363
363
|
get_mx(): number
|
|
364
|
-
get_target(): string
|
|
364
|
+
get_target(): string
|
|
365
365
|
/**
|
|
366
366
|
* Begins discovery if `resource_browser` is active and no discovery is
|
|
367
367
|
* performed. Otherwise does nothing.
|
|
@@ -382,11 +382,11 @@ interface ResourceBrowser {
|
|
|
382
382
|
* Sets the browser target of `resource_browser` to `target`.
|
|
383
383
|
* @param target The browser target
|
|
384
384
|
*/
|
|
385
|
-
set_target(target: string
|
|
385
|
+
set_target(target: string): void
|
|
386
386
|
|
|
387
387
|
// Own virtual methods of GSSDP-1.0.GSSDP.ResourceBrowser
|
|
388
388
|
|
|
389
|
-
vfunc_resource_unavailable(usn: string
|
|
389
|
+
vfunc_resource_unavailable(usn: string): void
|
|
390
390
|
|
|
391
391
|
// Own signals of GSSDP-1.0.GSSDP.ResourceBrowser
|
|
392
392
|
|
|
@@ -446,7 +446,7 @@ class ResourceBrowser extends GObject.Object {
|
|
|
446
446
|
* @param target A SSDP search target
|
|
447
447
|
* @returns A new #GSSDPResourceBrowser object.
|
|
448
448
|
*/
|
|
449
|
-
constructor(client: Client, target: string
|
|
449
|
+
constructor(client: Client, target: string)
|
|
450
450
|
/**
|
|
451
451
|
* `target` is a generic string the resource browser listens for on the SSDP
|
|
452
452
|
* bus. There are several possible targets such as
|
|
@@ -466,7 +466,7 @@ class ResourceBrowser extends GObject.Object {
|
|
|
466
466
|
* @param target A SSDP search target
|
|
467
467
|
* @returns A new #GSSDPResourceBrowser object.
|
|
468
468
|
*/
|
|
469
|
-
static new(client: Client, target: string
|
|
469
|
+
static new(client: Client, target: string): ResourceBrowser
|
|
470
470
|
_init(config?: ResourceBrowser.ConstructorProperties): void
|
|
471
471
|
}
|
|
472
472
|
|
|
@@ -554,7 +554,7 @@ interface ResourceGroup {
|
|
|
554
554
|
* @param locations A #GList of the resource's locations
|
|
555
555
|
* @returns The ID of the added resource.
|
|
556
556
|
*/
|
|
557
|
-
add_resource(target: string
|
|
557
|
+
add_resource(target: string, usn: string, locations: string[]): number
|
|
558
558
|
/**
|
|
559
559
|
* Adds a resource with target `target,` USN `usn,` and location `location`
|
|
560
560
|
* to `resource_group`.
|
|
@@ -563,7 +563,7 @@ interface ResourceGroup {
|
|
|
563
563
|
* @param location The resource's location
|
|
564
564
|
* @returns The ID of the added resource.
|
|
565
565
|
*/
|
|
566
|
-
add_resource_simple(target: string
|
|
566
|
+
add_resource_simple(target: string, usn: string, location: string): number
|
|
567
567
|
get_available(): boolean
|
|
568
568
|
get_client(): Client
|
|
569
569
|
get_max_age(): number
|
|
@@ -655,7 +655,7 @@ interface ResourceBrowserClass {
|
|
|
655
655
|
// Own fields of GSSDP-1.0.GSSDP.ResourceBrowserClass
|
|
656
656
|
|
|
657
657
|
parent_class: GObject.ObjectClass
|
|
658
|
-
resource_unavailable: (resource_browser: ResourceBrowser, usn: string
|
|
658
|
+
resource_unavailable: (resource_browser: ResourceBrowser, usn: string) => void
|
|
659
659
|
}
|
|
660
660
|
|
|
661
661
|
abstract class ResourceBrowserClass {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gssdp-1.0",
|
|
3
|
-
"version": "1.0.0-3.2.
|
|
3
|
+
"version": "1.0.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for GSSDP-1.0, generated from library version 1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gssdp-1.0.js",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gssdp-1.0.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
29
|
-
"@girs/gjs": "^3.2.
|
|
30
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
32
|
-
"@girs/soup-2.4": "^2.74.3-3.2.
|
|
28
|
+
"@girs/gio-2.0": "^2.78.0-3.2.7",
|
|
29
|
+
"@girs/gjs": "^3.2.7",
|
|
30
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
31
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7",
|
|
32
|
+
"@girs/soup-2.4": "^2.74.3-3.2.7"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "*"
|