@girs/dmap-3.0 3.0.0-3.3.0 → 3.0.0-4.0.0-beta.1
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 -2
- package/dmap-3.0-ambient.d.ts +3 -3
- package/dmap-3.0.d.ts +1381 -1230
- package/dmap-3.0.js +0 -4
- package/package.json +12 -17
- package/dmap-3.0.cjs +0 -11
- package/dmap-3.0.d.cts +0 -1393
package/dmap-3.0.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
/*
|
|
3
2
|
* Type Definitions for Gjs (https://gjs.guide/)
|
|
4
3
|
*
|
|
@@ -7,7 +6,7 @@
|
|
|
7
6
|
*/
|
|
8
7
|
|
|
9
8
|
import './dmap-3.0-ambient.d.ts';
|
|
10
|
-
|
|
9
|
+
|
|
11
10
|
/**
|
|
12
11
|
* DMAP-3.0
|
|
13
12
|
*/
|
|
@@ -18,1381 +17,1533 @@ import type GObject from '@girs/gobject-2.0';
|
|
|
18
17
|
import type GLib from '@girs/glib-2.0';
|
|
19
18
|
|
|
20
19
|
export namespace DMAP {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
DONE,
|
|
32
|
-
}
|
|
33
|
-
enum ContentCode {
|
|
34
|
-
CC_INVALID,
|
|
35
|
-
RAW,
|
|
36
|
-
CC_MDCL,
|
|
37
|
-
CC_MSTT,
|
|
38
|
-
CC_MIID,
|
|
39
|
-
CC_MINM,
|
|
40
|
-
CC_MIKD,
|
|
41
|
-
CC_MPER,
|
|
42
|
-
CC_MCON,
|
|
43
|
-
CC_MCTI,
|
|
44
|
-
CC_MPCO,
|
|
45
|
-
CC_MSTS,
|
|
46
|
-
CC_MIMC,
|
|
47
|
-
CC_MCTC,
|
|
48
|
-
CC_MRCO,
|
|
49
|
-
CC_MTCO,
|
|
50
|
-
CC_MLCL,
|
|
51
|
-
CC_MLIT,
|
|
52
|
-
CC_MBCL,
|
|
53
|
-
CC_MSRV,
|
|
54
|
-
CC_MSAU,
|
|
55
|
-
CC_MSLR,
|
|
56
|
-
CC_MPRO,
|
|
57
|
-
CC_MSAL,
|
|
58
|
-
CC_MSUP,
|
|
59
|
-
CC_MSPI,
|
|
60
|
-
CC_MSEX,
|
|
61
|
-
CC_MSBR,
|
|
62
|
-
CC_MSQY,
|
|
63
|
-
CC_MSIX,
|
|
64
|
-
CC_MSRS,
|
|
65
|
-
CC_MSTM,
|
|
66
|
-
CC_MSDC,
|
|
67
|
-
CC_MCCR,
|
|
68
|
-
CC_MCNM,
|
|
69
|
-
CC_MCNA,
|
|
70
|
-
CC_MCTY,
|
|
71
|
-
CC_MLOG,
|
|
72
|
-
CC_MLID,
|
|
73
|
-
CC_MUPD,
|
|
74
|
-
CC_MUSR,
|
|
75
|
-
CC_MUTY,
|
|
76
|
-
CC_MUDL,
|
|
77
|
-
CC_MSMA,
|
|
78
|
-
CC_FQUESCH,
|
|
79
|
-
CC_APRO,
|
|
80
|
-
CC_AVDB,
|
|
81
|
-
CC_ABRO,
|
|
82
|
-
CC_ABAL,
|
|
83
|
-
CC_ABAR,
|
|
84
|
-
CC_ABCP,
|
|
85
|
-
CC_ABGN,
|
|
86
|
-
CC_ADBS,
|
|
87
|
-
CC_ASAL,
|
|
88
|
-
CC_ASAI,
|
|
89
|
-
CC_ASAA,
|
|
90
|
-
CC_ASAR,
|
|
91
|
-
CC_ASBT,
|
|
92
|
-
CC_ASBR,
|
|
93
|
-
CC_ASCM,
|
|
94
|
-
CC_ASCO,
|
|
95
|
-
CC_ASDA,
|
|
96
|
-
CC_ASDM,
|
|
97
|
-
CC_ASDC,
|
|
98
|
-
CC_ASDN,
|
|
99
|
-
CC_ASDB,
|
|
100
|
-
CC_ASEQ,
|
|
101
|
-
CC_ASFM,
|
|
102
|
-
CC_ASGN,
|
|
103
|
-
CC_ASDT,
|
|
104
|
-
CC_ASRV,
|
|
105
|
-
CC_ASSR,
|
|
106
|
-
CC_ASSZ,
|
|
107
|
-
CC_ASST,
|
|
108
|
-
CC_ASSP,
|
|
109
|
-
CC_ASTM,
|
|
110
|
-
CC_ASTC,
|
|
111
|
-
CC_ASTN,
|
|
112
|
-
CC_ASUR,
|
|
113
|
-
CC_ASYR,
|
|
114
|
-
CC_ASDK,
|
|
115
|
-
CC_ASUL,
|
|
116
|
-
CC_ASSU,
|
|
117
|
-
CC_ASSA,
|
|
118
|
-
CC_APLY,
|
|
119
|
-
CC_ABPL,
|
|
120
|
-
CC_APSO,
|
|
121
|
-
CC_PRSV,
|
|
122
|
-
CC_ARIF,
|
|
123
|
-
CC_MSAS,
|
|
124
|
-
CC_AGRP,
|
|
125
|
-
CC_AGAL,
|
|
126
|
-
CC_ASCP,
|
|
127
|
-
CC_PPRO,
|
|
128
|
-
CC_PASP,
|
|
129
|
-
CC_PFDT,
|
|
130
|
-
CC_PICD,
|
|
131
|
-
CC_PIMF,
|
|
132
|
-
CC_PFMT,
|
|
133
|
-
CC_PIFS,
|
|
134
|
-
CC_PLSZ,
|
|
135
|
-
CC_PHGT,
|
|
136
|
-
CC_PWTH,
|
|
137
|
-
CC_PRAT,
|
|
138
|
-
CC_PCMT,
|
|
139
|
-
CC_PRET,
|
|
140
|
-
CC_AESV,
|
|
141
|
-
CC_AEHV,
|
|
142
|
-
CC_AESP,
|
|
143
|
-
CC_AEPP,
|
|
144
|
-
CC_AEPS,
|
|
145
|
-
CC_AESG,
|
|
146
|
-
CC_AEMK,
|
|
147
|
-
CC_AEFP,
|
|
148
|
-
CC_CMPA,
|
|
149
|
-
CC_CMNM,
|
|
150
|
-
CC_CMTY,
|
|
151
|
-
CC_CMPG,
|
|
152
|
-
CC_CACI,
|
|
153
|
-
CC_CAPS,
|
|
154
|
-
CC_CASH,
|
|
155
|
-
CC_CARP,
|
|
156
|
-
CC_CAAS,
|
|
157
|
-
CC_CAAR,
|
|
158
|
-
CC_CAIA,
|
|
159
|
-
CC_CANP,
|
|
160
|
-
CC_CANN,
|
|
161
|
-
CC_CANA,
|
|
162
|
-
CC_CANL,
|
|
163
|
-
CC_CANG,
|
|
164
|
-
CC_CANT,
|
|
165
|
-
CC_CASP,
|
|
166
|
-
CC_CASS,
|
|
167
|
-
CC_CAST,
|
|
168
|
-
CC_CASU,
|
|
169
|
-
CC_CASG,
|
|
170
|
-
CC_CACR,
|
|
171
|
-
CC_CMCP,
|
|
172
|
-
CC_CMGT,
|
|
173
|
-
CC_CMIK,
|
|
174
|
-
CC_CMSP,
|
|
175
|
-
CC_CMST,
|
|
176
|
-
CC_CMSV,
|
|
177
|
-
CC_CMSR,
|
|
178
|
-
CC_CMMK,
|
|
179
|
-
CC_CMVO,
|
|
180
|
-
CC_CMPR,
|
|
181
|
-
CC_CAPR,
|
|
182
|
-
CC_AEFR,
|
|
183
|
-
CC_CAOV,
|
|
184
|
-
CC_CMRL,
|
|
185
|
-
CC_CAHP,
|
|
186
|
-
CC_CAIV,
|
|
187
|
-
CC_CAVC,
|
|
188
|
-
}
|
|
189
|
-
enum MdnsBrowserError {
|
|
190
|
-
NOT_RUNNING,
|
|
191
|
-
FAILED,
|
|
192
|
-
}
|
|
193
|
-
enum MdnsBrowserServiceType {
|
|
194
|
-
INVALID,
|
|
195
|
-
DAAP,
|
|
196
|
-
DPAP,
|
|
197
|
-
DACP,
|
|
198
|
-
RAOP,
|
|
199
|
-
LAST,
|
|
200
|
-
}
|
|
201
|
-
enum MdnsBrowserTransportProtocol {
|
|
202
|
-
TCP,
|
|
203
|
-
UDP,
|
|
204
|
-
LAST,
|
|
205
|
-
}
|
|
206
|
-
enum MdnsPublisherError {
|
|
207
|
-
NOT_RUNNING,
|
|
208
|
-
FAILED,
|
|
209
|
-
}
|
|
210
|
-
enum MediaKind {
|
|
211
|
-
MUSIC,
|
|
212
|
-
MOVIE,
|
|
213
|
-
PODCAST,
|
|
214
|
-
TV_SHOW,
|
|
215
|
-
}
|
|
216
|
-
enum Type {
|
|
217
|
-
BYTE,
|
|
218
|
-
SIGNED_INT,
|
|
219
|
-
SHORT,
|
|
220
|
-
INT,
|
|
221
|
-
INT64,
|
|
222
|
-
STRING,
|
|
223
|
-
DATE,
|
|
224
|
-
VERSION,
|
|
225
|
-
CONTAINER,
|
|
226
|
-
POINTER,
|
|
227
|
-
}
|
|
228
|
-
const HASH_SIZE: number
|
|
229
|
-
const STATUS_OK: number
|
|
230
|
-
function content_code_dmap_type(code: ContentCode): Type
|
|
231
|
-
function content_code_name(code: ContentCode): string
|
|
232
|
-
function content_code_read_from_buffer(buf: string): ContentCode
|
|
233
|
-
function content_code_string(code: ContentCode): string
|
|
234
|
-
function content_code_string_as_int32(str: string): number
|
|
235
|
-
function content_codes(number: number): ContentCodeDefinition
|
|
236
|
-
function hash_generate(version_major: number, url: number, hash_select: number, out: number, request_id: number): void
|
|
237
|
-
function hash_progressive_final(context: HashContext, digest: number): void
|
|
238
|
-
function hash_progressive_init(context: HashContext): void
|
|
239
|
-
function hash_progressive_to_string(digest: number, string: string | null): void
|
|
240
|
-
function hash_progressive_update(context: HashContext, buffer: number, length: number): void
|
|
241
|
-
function mdns_browser_error_quark(): GLib.Quark
|
|
242
|
-
function mdns_publisher_error_quark(): GLib.Quark
|
|
243
|
-
function mime_to_format(transcode_mimetype: string): string | null
|
|
244
|
-
function structure_destroy(structure: GLib.Node): void
|
|
245
|
-
function structure_get_size(structure: GLib.Node): number
|
|
246
|
-
function structure_increase_by_predicted_size(structure: GLib.Node, size: number): void
|
|
247
|
-
function structure_print(structure: GLib.Node): void
|
|
248
|
-
function structure_serialize(structure: GLib.Node, length: number): string | null
|
|
249
|
-
interface ConnectionCallback {
|
|
250
|
-
(connection: Connection, result: boolean, reason: string): boolean
|
|
251
|
-
}
|
|
252
|
-
interface ResponseHandler {
|
|
253
|
-
(connection: Connection, status: number, structure: GLib.Node): void
|
|
254
|
-
}
|
|
255
|
-
module ContainerDb {
|
|
256
|
-
|
|
257
|
-
// Constructor properties interface
|
|
258
|
-
|
|
259
|
-
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
20
|
+
enum ConnectionState {
|
|
21
|
+
GET_INFO,
|
|
22
|
+
LOGIN,
|
|
23
|
+
GET_REVISION_NUMBER,
|
|
24
|
+
GET_DB_INFO,
|
|
25
|
+
GET_SONGS,
|
|
26
|
+
GET_PLAYLISTS,
|
|
27
|
+
GET_PLAYLIST_ENTRIES,
|
|
28
|
+
LOGOUT,
|
|
29
|
+
DONE,
|
|
260
30
|
}
|
|
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
|
-
|
|
31
|
+
enum ContentCode {
|
|
32
|
+
CC_INVALID,
|
|
33
|
+
RAW,
|
|
34
|
+
CC_MDCL,
|
|
35
|
+
CC_MSTT,
|
|
36
|
+
CC_MIID,
|
|
37
|
+
CC_MINM,
|
|
38
|
+
CC_MIKD,
|
|
39
|
+
CC_MPER,
|
|
40
|
+
CC_MCON,
|
|
41
|
+
CC_MCTI,
|
|
42
|
+
CC_MPCO,
|
|
43
|
+
CC_MSTS,
|
|
44
|
+
CC_MIMC,
|
|
45
|
+
CC_MCTC,
|
|
46
|
+
CC_MRCO,
|
|
47
|
+
CC_MTCO,
|
|
48
|
+
CC_MLCL,
|
|
49
|
+
CC_MLIT,
|
|
50
|
+
CC_MBCL,
|
|
51
|
+
CC_MSRV,
|
|
52
|
+
CC_MSAU,
|
|
53
|
+
CC_MSLR,
|
|
54
|
+
CC_MPRO,
|
|
55
|
+
CC_MSAL,
|
|
56
|
+
CC_MSUP,
|
|
57
|
+
CC_MSPI,
|
|
58
|
+
CC_MSEX,
|
|
59
|
+
CC_MSBR,
|
|
60
|
+
CC_MSQY,
|
|
61
|
+
CC_MSIX,
|
|
62
|
+
CC_MSRS,
|
|
63
|
+
CC_MSTM,
|
|
64
|
+
CC_MSDC,
|
|
65
|
+
CC_MCCR,
|
|
66
|
+
CC_MCNM,
|
|
67
|
+
CC_MCNA,
|
|
68
|
+
CC_MCTY,
|
|
69
|
+
CC_MLOG,
|
|
70
|
+
CC_MLID,
|
|
71
|
+
CC_MUPD,
|
|
72
|
+
CC_MUSR,
|
|
73
|
+
CC_MUTY,
|
|
74
|
+
CC_MUDL,
|
|
75
|
+
CC_MSMA,
|
|
76
|
+
CC_FQUESCH,
|
|
77
|
+
CC_APRO,
|
|
78
|
+
CC_AVDB,
|
|
79
|
+
CC_ABRO,
|
|
80
|
+
CC_ABAL,
|
|
81
|
+
CC_ABAR,
|
|
82
|
+
CC_ABCP,
|
|
83
|
+
CC_ABGN,
|
|
84
|
+
CC_ADBS,
|
|
85
|
+
CC_ASAL,
|
|
86
|
+
CC_ASAI,
|
|
87
|
+
CC_ASAA,
|
|
88
|
+
CC_ASAR,
|
|
89
|
+
CC_ASBT,
|
|
90
|
+
CC_ASBR,
|
|
91
|
+
CC_ASCM,
|
|
92
|
+
CC_ASCO,
|
|
93
|
+
CC_ASDA,
|
|
94
|
+
CC_ASDM,
|
|
95
|
+
CC_ASDC,
|
|
96
|
+
CC_ASDN,
|
|
97
|
+
CC_ASDB,
|
|
98
|
+
CC_ASEQ,
|
|
99
|
+
CC_ASFM,
|
|
100
|
+
CC_ASGN,
|
|
101
|
+
CC_ASDT,
|
|
102
|
+
CC_ASRV,
|
|
103
|
+
CC_ASSR,
|
|
104
|
+
CC_ASSZ,
|
|
105
|
+
CC_ASST,
|
|
106
|
+
CC_ASSP,
|
|
107
|
+
CC_ASTM,
|
|
108
|
+
CC_ASTC,
|
|
109
|
+
CC_ASTN,
|
|
110
|
+
CC_ASUR,
|
|
111
|
+
CC_ASYR,
|
|
112
|
+
CC_ASDK,
|
|
113
|
+
CC_ASUL,
|
|
114
|
+
CC_ASSU,
|
|
115
|
+
CC_ASSA,
|
|
116
|
+
CC_APLY,
|
|
117
|
+
CC_ABPL,
|
|
118
|
+
CC_APSO,
|
|
119
|
+
CC_PRSV,
|
|
120
|
+
CC_ARIF,
|
|
121
|
+
CC_MSAS,
|
|
122
|
+
CC_AGRP,
|
|
123
|
+
CC_AGAL,
|
|
124
|
+
CC_ASCP,
|
|
125
|
+
CC_PPRO,
|
|
126
|
+
CC_PASP,
|
|
127
|
+
CC_PFDT,
|
|
128
|
+
CC_PICD,
|
|
129
|
+
CC_PIMF,
|
|
130
|
+
CC_PFMT,
|
|
131
|
+
CC_PIFS,
|
|
132
|
+
CC_PLSZ,
|
|
133
|
+
CC_PHGT,
|
|
134
|
+
CC_PWTH,
|
|
135
|
+
CC_PRAT,
|
|
136
|
+
CC_PCMT,
|
|
137
|
+
CC_PRET,
|
|
138
|
+
CC_AESV,
|
|
139
|
+
CC_AEHV,
|
|
140
|
+
CC_AESP,
|
|
141
|
+
CC_AEPP,
|
|
142
|
+
CC_AEPS,
|
|
143
|
+
CC_AESG,
|
|
144
|
+
CC_AEMK,
|
|
145
|
+
CC_AEFP,
|
|
146
|
+
CC_CMPA,
|
|
147
|
+
CC_CMNM,
|
|
148
|
+
CC_CMTY,
|
|
149
|
+
CC_CMPG,
|
|
150
|
+
CC_CACI,
|
|
151
|
+
CC_CAPS,
|
|
152
|
+
CC_CASH,
|
|
153
|
+
CC_CARP,
|
|
154
|
+
CC_CAAS,
|
|
155
|
+
CC_CAAR,
|
|
156
|
+
CC_CAIA,
|
|
157
|
+
CC_CANP,
|
|
158
|
+
CC_CANN,
|
|
159
|
+
CC_CANA,
|
|
160
|
+
CC_CANL,
|
|
161
|
+
CC_CANG,
|
|
162
|
+
CC_CANT,
|
|
163
|
+
CC_CASP,
|
|
164
|
+
CC_CASS,
|
|
165
|
+
CC_CAST,
|
|
166
|
+
CC_CASU,
|
|
167
|
+
CC_CASG,
|
|
168
|
+
CC_CACR,
|
|
169
|
+
CC_CMCP,
|
|
170
|
+
CC_CMGT,
|
|
171
|
+
CC_CMIK,
|
|
172
|
+
CC_CMSP,
|
|
173
|
+
CC_CMST,
|
|
174
|
+
CC_CMSV,
|
|
175
|
+
CC_CMSR,
|
|
176
|
+
CC_CMMK,
|
|
177
|
+
CC_CMVO,
|
|
178
|
+
CC_CMPR,
|
|
179
|
+
CC_CAPR,
|
|
180
|
+
CC_AEFR,
|
|
181
|
+
CC_CAOV,
|
|
182
|
+
CC_CMRL,
|
|
183
|
+
CC_CAHP,
|
|
184
|
+
CC_CAIV,
|
|
185
|
+
CC_CAVC,
|
|
315
186
|
}
|
|
187
|
+
class MdnsBrowserError extends GLib.Error {
|
|
188
|
+
static $gtype: GObject.GType<MdnsBrowserError>;
|
|
316
189
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
interface ContainerRecord {
|
|
320
|
-
|
|
321
|
-
// Own properties of DMAP-3.0.DMAP.ContainerRecord
|
|
190
|
+
// Static fields of DMAP.MdnsBrowserError
|
|
322
191
|
|
|
323
|
-
|
|
192
|
+
static NOT_RUNNING: number;
|
|
193
|
+
static FAILED: number;
|
|
324
194
|
|
|
325
|
-
|
|
195
|
+
// Constructors of DMAP.MdnsBrowserError
|
|
326
196
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
* directly into the database (not copied) and not freed.
|
|
330
|
-
* @param record A DMAPRecord.
|
|
331
|
-
* @param id The record's ID.
|
|
332
|
-
*/
|
|
333
|
-
add_entry(record: Record, id: number): void
|
|
334
|
-
get_entry_count(): number
|
|
335
|
-
get_id(): number
|
|
336
|
-
|
|
337
|
-
// Own virtual methods of DMAP-3.0.DMAP.ContainerRecord
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Add a record to the database. It is assumed that the record is placed
|
|
341
|
-
* directly into the database (not copied) and not freed.
|
|
342
|
-
* @virtual
|
|
343
|
-
* @param record A DMAPRecord.
|
|
344
|
-
* @param id The record's ID.
|
|
345
|
-
*/
|
|
346
|
-
vfunc_add_entry(record: Record, id: number): void
|
|
347
|
-
vfunc_get_entry_count(): number
|
|
348
|
-
vfunc_get_id(): number
|
|
349
|
-
|
|
350
|
-
// Class property signals of DMAP-3.0.DMAP.ContainerRecord
|
|
351
|
-
|
|
352
|
-
connect(sigName: "notify::name", callback: (($obj: ContainerRecord, pspec: GObject.ParamSpec) => void)): number
|
|
353
|
-
connect_after(sigName: "notify::name", callback: (($obj: ContainerRecord, pspec: GObject.ParamSpec) => void)): number
|
|
354
|
-
emit(sigName: "notify::name", ...args: any[]): void
|
|
355
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
356
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
357
|
-
emit(sigName: string, ...args: any[]): void
|
|
358
|
-
disconnect(id: number): void
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
class ContainerRecord extends GObject.Object {
|
|
362
|
-
|
|
363
|
-
// Own properties of DMAP-3.0.DMAP.ContainerRecord
|
|
364
|
-
|
|
365
|
-
static name: string
|
|
366
|
-
static $gtype: GObject.GType<ContainerRecord>
|
|
367
|
-
|
|
368
|
-
// Constructors of DMAP-3.0.DMAP.ContainerRecord
|
|
197
|
+
constructor(options: { message: string; code: number });
|
|
198
|
+
_init(...args: any[]): void;
|
|
369
199
|
|
|
370
|
-
|
|
371
|
-
_init(config?: ContainerRecord.ConstructorProperties): void
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
module Db {
|
|
375
|
-
|
|
376
|
-
// Constructor properties interface
|
|
200
|
+
// Own static methods of DMAP.MdnsBrowserError
|
|
377
201
|
|
|
378
|
-
|
|
202
|
+
static quark(): GLib.Quark;
|
|
379
203
|
}
|
|
380
204
|
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
* Add a record to the database.
|
|
389
|
-
* @param record A database record.
|
|
390
|
-
* @returns The ID for the newly added record. A reference to the record will be retained by the database (if required; an adapter-type implementation may not want to retain a reference as the record data may be placed elsewhere). In all cases, the record should be unrefed by the calling code.
|
|
391
|
-
*/
|
|
392
|
-
add(record: Record): number
|
|
393
|
-
/**
|
|
394
|
-
* Create a record and add it to the database.
|
|
395
|
-
* @param path A path to an appropriate media file.
|
|
396
|
-
* @returns The ID for the newly added record. See also the notes for dmap_db_add regarding reference counting.
|
|
397
|
-
*/
|
|
398
|
-
add_path(path: string): number
|
|
399
|
-
/**
|
|
400
|
-
* Add a record to the database and assign it the given ID.
|
|
401
|
-
* @param record A database record.
|
|
402
|
-
* @param id A database record ID.
|
|
403
|
-
* @returns The ID for the newly added record. See also the notes for dmap_db_add regarding reference counting.
|
|
404
|
-
*/
|
|
405
|
-
add_with_id(record: Record, id: number): number
|
|
406
|
-
count(): number
|
|
407
|
-
lookup_id_by_location(location: string): number
|
|
408
|
-
|
|
409
|
-
// Own virtual methods of DMAP-3.0.DMAP.Db
|
|
410
|
-
|
|
411
|
-
/**
|
|
412
|
-
* Add a record to the database.
|
|
413
|
-
* @virtual
|
|
414
|
-
* @param record A database record.
|
|
415
|
-
* @returns The ID for the newly added record. A reference to the record will be retained by the database (if required; an adapter-type implementation may not want to retain a reference as the record data may be placed elsewhere). In all cases, the record should be unrefed by the calling code.
|
|
416
|
-
*/
|
|
417
|
-
vfunc_add(record: Record): number
|
|
418
|
-
/**
|
|
419
|
-
* Create a record and add it to the database.
|
|
420
|
-
* @virtual
|
|
421
|
-
* @param path A path to an appropriate media file.
|
|
422
|
-
* @returns The ID for the newly added record. See also the notes for dmap_db_add regarding reference counting.
|
|
423
|
-
*/
|
|
424
|
-
vfunc_add_path(path: string): number
|
|
425
|
-
/**
|
|
426
|
-
* Add a record to the database and assign it the given ID.
|
|
427
|
-
* @virtual
|
|
428
|
-
* @param record A database record.
|
|
429
|
-
* @param id A database record ID.
|
|
430
|
-
* @returns The ID for the newly added record. See also the notes for dmap_db_add regarding reference counting.
|
|
431
|
-
*/
|
|
432
|
-
vfunc_add_with_id(record: Record, id: number): number
|
|
433
|
-
vfunc_count(): number
|
|
434
|
-
vfunc_lookup_id_by_location(location: string): number
|
|
435
|
-
|
|
436
|
-
// Class property signals of DMAP-3.0.DMAP.Db
|
|
437
|
-
|
|
438
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
439
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
440
|
-
emit(sigName: string, ...args: any[]): void
|
|
441
|
-
disconnect(id: number): void
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
class Db extends GObject.Object {
|
|
445
|
-
|
|
446
|
-
// Own properties of DMAP-3.0.DMAP.Db
|
|
447
|
-
|
|
448
|
-
static name: string
|
|
449
|
-
static $gtype: GObject.GType<Db>
|
|
450
|
-
|
|
451
|
-
// Constructors of DMAP-3.0.DMAP.Db
|
|
452
|
-
|
|
453
|
-
constructor(config?: Db.ConstructorProperties)
|
|
454
|
-
_init(config?: Db.ConstructorProperties): void
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
module Record {
|
|
458
|
-
|
|
459
|
-
// Constructor properties interface
|
|
460
|
-
|
|
461
|
-
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
205
|
+
enum MdnsBrowserServiceType {
|
|
206
|
+
INVALID,
|
|
207
|
+
DAAP,
|
|
208
|
+
DPAP,
|
|
209
|
+
DACP,
|
|
210
|
+
RAOP,
|
|
211
|
+
LAST,
|
|
462
212
|
}
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
// Owm methods of DMAP-3.0.DMAP.Record
|
|
469
|
-
|
|
470
|
-
set_from_blob(blob: Uint8Array): boolean
|
|
471
|
-
|
|
472
|
-
// Own virtual methods of DMAP-3.0.DMAP.Record
|
|
473
|
-
|
|
474
|
-
vfunc_set_from_blob(blob: Uint8Array): boolean
|
|
475
|
-
|
|
476
|
-
// Class property signals of DMAP-3.0.DMAP.Record
|
|
477
|
-
|
|
478
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
479
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
480
|
-
emit(sigName: string, ...args: any[]): void
|
|
481
|
-
disconnect(id: number): void
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
class Record extends GObject.Object {
|
|
485
|
-
|
|
486
|
-
// Own properties of DMAP-3.0.DMAP.Record
|
|
487
|
-
|
|
488
|
-
static name: string
|
|
489
|
-
static $gtype: GObject.GType<Record>
|
|
490
|
-
|
|
491
|
-
// Constructors of DMAP-3.0.DMAP.Record
|
|
492
|
-
|
|
493
|
-
constructor(config?: Record.ConstructorProperties)
|
|
494
|
-
_init(config?: Record.ConstructorProperties): void
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
module RecordFactory {
|
|
498
|
-
|
|
499
|
-
// Constructor properties interface
|
|
500
|
-
|
|
501
|
-
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
213
|
+
enum MdnsBrowserTransportProtocol {
|
|
214
|
+
TCP,
|
|
215
|
+
UDP,
|
|
216
|
+
LAST,
|
|
502
217
|
}
|
|
218
|
+
class MdnsPublisherError extends GLib.Error {
|
|
219
|
+
static $gtype: GObject.GType<MdnsPublisherError>;
|
|
503
220
|
|
|
504
|
-
|
|
221
|
+
// Static fields of DMAP.MdnsPublisherError
|
|
505
222
|
|
|
506
|
-
|
|
223
|
+
static NOT_RUNNING: number;
|
|
224
|
+
static FAILED: number;
|
|
507
225
|
|
|
508
|
-
|
|
226
|
+
// Constructors of DMAP.MdnsPublisherError
|
|
509
227
|
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
emit(sigName: string, ...args: any[]): void
|
|
513
|
-
disconnect(id: number): void
|
|
514
|
-
}
|
|
228
|
+
constructor(options: { message: string; code: number });
|
|
229
|
+
_init(...args: any[]): void;
|
|
515
230
|
|
|
516
|
-
|
|
231
|
+
// Own static methods of DMAP.MdnsPublisherError
|
|
517
232
|
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
static name: string
|
|
521
|
-
static $gtype: GObject.GType<RecordFactory>
|
|
522
|
-
|
|
523
|
-
// Constructors of DMAP-3.0.DMAP.RecordFactory
|
|
524
|
-
|
|
525
|
-
constructor(config?: RecordFactory.ConstructorProperties)
|
|
526
|
-
_init(config?: RecordFactory.ConstructorProperties): void
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
module Connection {
|
|
530
|
-
|
|
531
|
-
// Signal callback interfaces
|
|
532
|
-
|
|
533
|
-
/**
|
|
534
|
-
* Signal callback interface for `authenticate`
|
|
535
|
-
*/
|
|
536
|
-
interface AuthenticateSignalCallback {
|
|
537
|
-
($obj: Connection, object: string | null, p0: Soup.Session, p1: Soup.Message, p2: Soup.Auth, p3: boolean): void
|
|
233
|
+
static quark(): GLib.Quark;
|
|
538
234
|
}
|
|
539
235
|
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
236
|
+
enum MediaKind {
|
|
237
|
+
MUSIC,
|
|
238
|
+
MOVIE,
|
|
239
|
+
PODCAST,
|
|
240
|
+
TV_SHOW,
|
|
545
241
|
}
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
242
|
+
enum Type {
|
|
243
|
+
BYTE,
|
|
244
|
+
SIGNED_INT,
|
|
245
|
+
SHORT,
|
|
246
|
+
INT,
|
|
247
|
+
INT64,
|
|
248
|
+
STRING,
|
|
249
|
+
DATE,
|
|
250
|
+
VERSION,
|
|
251
|
+
CONTAINER,
|
|
252
|
+
POINTER,
|
|
552
253
|
}
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
254
|
+
const HASH_SIZE: number;
|
|
255
|
+
const STATUS_OK: number;
|
|
256
|
+
function content_code_dmap_type(code: ContentCode): Type;
|
|
257
|
+
function content_code_name(code: ContentCode): string;
|
|
258
|
+
function content_code_read_from_buffer(buf: string): ContentCode;
|
|
259
|
+
function content_code_string(code: ContentCode): string;
|
|
260
|
+
function content_code_string_as_int32(str: string): number;
|
|
261
|
+
function content_codes(number: number): ContentCodeDefinition;
|
|
262
|
+
function hash_generate(
|
|
263
|
+
version_major: number,
|
|
264
|
+
url: number,
|
|
265
|
+
hash_select: number,
|
|
266
|
+
out: number,
|
|
267
|
+
request_id: number,
|
|
268
|
+
): void;
|
|
269
|
+
function hash_progressive_final(context: HashContext, digest: number): void;
|
|
270
|
+
function hash_progressive_init(context: HashContext): void;
|
|
271
|
+
function hash_progressive_to_string(digest: number, string: string): void;
|
|
272
|
+
function hash_progressive_update(context: HashContext, buffer: number, length: number): void;
|
|
273
|
+
function mdns_browser_error_quark(): GLib.Quark;
|
|
274
|
+
function mdns_publisher_error_quark(): GLib.Quark;
|
|
275
|
+
function mime_to_format(transcode_mimetype: string): string;
|
|
276
|
+
function structure_destroy(structure: GLib.Node): void;
|
|
277
|
+
function structure_get_size(structure: GLib.Node): number;
|
|
278
|
+
function structure_increase_by_predicted_size(structure: GLib.Node, size: number): void;
|
|
279
|
+
function structure_print(structure: GLib.Node): void;
|
|
280
|
+
function structure_serialize(structure: GLib.Node, length: number): string;
|
|
281
|
+
interface ConnectionCallback {
|
|
282
|
+
(connection: Connection, result: boolean, reason: string): boolean;
|
|
559
283
|
}
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
* Signal callback interface for `operation-done`
|
|
563
|
-
*/
|
|
564
|
-
interface OperationDoneSignalCallback {
|
|
565
|
-
($obj: Connection): void
|
|
284
|
+
interface ResponseHandler {
|
|
285
|
+
(connection: Connection, status: number, structure: GLib.Node): void;
|
|
566
286
|
}
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
287
|
+
module Connection {
|
|
288
|
+
// Signal callback interfaces
|
|
289
|
+
|
|
290
|
+
interface Authenticate {
|
|
291
|
+
(object: string, p0: Soup.Session, p1: Soup.Message, p2: Soup.Auth, p3: boolean): void;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
interface Connected {
|
|
295
|
+
(): void;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
interface Connecting {
|
|
299
|
+
(object: number, p0: number): void;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
interface Disconnected {
|
|
303
|
+
(): void;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
interface OperationDone {
|
|
307
|
+
(): void;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// Constructor properties interface
|
|
311
|
+
|
|
312
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
313
|
+
base_uri: any;
|
|
314
|
+
baseUri: any;
|
|
315
|
+
database_id: number;
|
|
316
|
+
databaseId: number;
|
|
317
|
+
db: any;
|
|
318
|
+
dmap_version: number;
|
|
319
|
+
dmapVersion: number;
|
|
320
|
+
factory: any;
|
|
321
|
+
host: string;
|
|
322
|
+
name: string;
|
|
323
|
+
password: string;
|
|
324
|
+
port: number;
|
|
325
|
+
revision_number: number;
|
|
326
|
+
revisionNumber: number;
|
|
327
|
+
session_id: number;
|
|
328
|
+
sessionId: number;
|
|
329
|
+
username: string;
|
|
330
|
+
}
|
|
587
331
|
}
|
|
588
332
|
|
|
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
|
-
|
|
333
|
+
class Connection extends GObject.Object {
|
|
334
|
+
static $gtype: GObject.GType<Connection>;
|
|
335
|
+
|
|
336
|
+
// Own properties of DMAP.Connection
|
|
337
|
+
|
|
338
|
+
get base_uri(): any;
|
|
339
|
+
set base_uri(val: any);
|
|
340
|
+
get baseUri(): any;
|
|
341
|
+
set baseUri(val: any);
|
|
342
|
+
get database_id(): number;
|
|
343
|
+
set database_id(val: number);
|
|
344
|
+
get databaseId(): number;
|
|
345
|
+
set databaseId(val: number);
|
|
346
|
+
get db(): any;
|
|
347
|
+
get dmap_version(): number;
|
|
348
|
+
set dmap_version(val: number);
|
|
349
|
+
get dmapVersion(): number;
|
|
350
|
+
set dmapVersion(val: number);
|
|
351
|
+
get factory(): any;
|
|
352
|
+
get host(): string;
|
|
353
|
+
get name(): string;
|
|
354
|
+
set password(val: string);
|
|
355
|
+
get port(): number;
|
|
356
|
+
get revision_number(): number;
|
|
357
|
+
set revision_number(val: number);
|
|
358
|
+
get revisionNumber(): number;
|
|
359
|
+
set revisionNumber(val: number);
|
|
360
|
+
get session_id(): number;
|
|
361
|
+
set session_id(val: number);
|
|
362
|
+
get sessionId(): number;
|
|
363
|
+
set sessionId(val: number);
|
|
364
|
+
get username(): string;
|
|
365
|
+
|
|
366
|
+
// Constructors of DMAP.Connection
|
|
367
|
+
|
|
368
|
+
constructor(properties?: Partial<Connection.ConstructorProps>, ...args: any[]);
|
|
369
|
+
|
|
370
|
+
_init(...args: any[]): void;
|
|
371
|
+
|
|
372
|
+
// Own signals of DMAP.Connection
|
|
373
|
+
|
|
374
|
+
connect(id: string, callback: (...args: any[]) => any): number;
|
|
375
|
+
connect_after(id: string, callback: (...args: any[]) => any): number;
|
|
376
|
+
emit(id: string, ...args: any[]): void;
|
|
377
|
+
connect(
|
|
378
|
+
signal: 'authenticate',
|
|
379
|
+
callback: (
|
|
380
|
+
_source: this,
|
|
381
|
+
object: string,
|
|
382
|
+
p0: Soup.Session,
|
|
383
|
+
p1: Soup.Message,
|
|
384
|
+
p2: Soup.Auth,
|
|
385
|
+
p3: boolean,
|
|
386
|
+
) => void,
|
|
387
|
+
): number;
|
|
388
|
+
connect_after(
|
|
389
|
+
signal: 'authenticate',
|
|
390
|
+
callback: (
|
|
391
|
+
_source: this,
|
|
392
|
+
object: string,
|
|
393
|
+
p0: Soup.Session,
|
|
394
|
+
p1: Soup.Message,
|
|
395
|
+
p2: Soup.Auth,
|
|
396
|
+
p3: boolean,
|
|
397
|
+
) => void,
|
|
398
|
+
): number;
|
|
399
|
+
emit(
|
|
400
|
+
signal: 'authenticate',
|
|
401
|
+
object: string,
|
|
402
|
+
p0: Soup.Session,
|
|
403
|
+
p1: Soup.Message,
|
|
404
|
+
p2: Soup.Auth,
|
|
405
|
+
p3: boolean,
|
|
406
|
+
): void;
|
|
407
|
+
connect(signal: 'connected', callback: (_source: this) => void): number;
|
|
408
|
+
connect_after(signal: 'connected', callback: (_source: this) => void): number;
|
|
409
|
+
emit(signal: 'connected'): void;
|
|
410
|
+
connect(signal: 'connecting', callback: (_source: this, object: number, p0: number) => void): number;
|
|
411
|
+
connect_after(signal: 'connecting', callback: (_source: this, object: number, p0: number) => void): number;
|
|
412
|
+
emit(signal: 'connecting', object: number, p0: number): void;
|
|
413
|
+
connect(signal: 'disconnected', callback: (_source: this) => void): number;
|
|
414
|
+
connect_after(signal: 'disconnected', callback: (_source: this) => void): number;
|
|
415
|
+
emit(signal: 'disconnected'): void;
|
|
416
|
+
connect(signal: 'operation-done', callback: (_source: this) => void): number;
|
|
417
|
+
connect_after(signal: 'operation-done', callback: (_source: this) => void): number;
|
|
418
|
+
emit(signal: 'operation-done'): void;
|
|
419
|
+
|
|
420
|
+
// Own virtual methods of DMAP.Connection
|
|
421
|
+
|
|
422
|
+
vfunc_authenticate(name: string): string;
|
|
423
|
+
vfunc_connected(): void;
|
|
424
|
+
vfunc_connecting(state: ConnectionState, progress: number): void;
|
|
425
|
+
vfunc_disconnected(): void;
|
|
426
|
+
vfunc_get_protocol_version_cc(): ContentCode;
|
|
427
|
+
vfunc_get_query_metadata(): string;
|
|
428
|
+
vfunc_operation_done(): void;
|
|
429
|
+
|
|
430
|
+
// Own methods of DMAP.Connection
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Attach an authentication credential to a request. This
|
|
434
|
+
* method should be called by a function that is connected to the
|
|
435
|
+
* #DMAPConnection::authenticate signal. The signal will provide the
|
|
436
|
+
* connection, session, message and auth to that function. That function
|
|
437
|
+
* should obtain a password and provide it to this method.
|
|
438
|
+
* @param session A #SoupSession
|
|
439
|
+
* @param message A #SoupMessage
|
|
440
|
+
* @param auth A #SoupAuth
|
|
441
|
+
* @param password A password
|
|
442
|
+
*/
|
|
443
|
+
authenticate_message(session: Soup.Session, message: Soup.Message, auth: Soup.Auth, password: string): void;
|
|
444
|
+
get_headers(uri: string): Soup.MessageHeaders;
|
|
445
|
+
is_connected(): boolean;
|
|
446
|
+
setup(): void;
|
|
447
|
+
}
|
|
702
448
|
|
|
703
|
-
|
|
449
|
+
module GstInputStream {
|
|
450
|
+
// Constructor properties interface
|
|
704
451
|
|
|
705
|
-
|
|
452
|
+
interface ConstructorProps extends Gio.InputStream.ConstructorProps, Gio.Seekable.ConstructorProps {}
|
|
453
|
+
}
|
|
706
454
|
|
|
707
|
-
|
|
708
|
-
|
|
455
|
+
class GstInputStream extends Gio.InputStream implements Gio.Seekable {
|
|
456
|
+
static $gtype: GObject.GType<GstInputStream>;
|
|
457
|
+
|
|
458
|
+
// Constructors of DMAP.GstInputStream
|
|
459
|
+
|
|
460
|
+
constructor(properties?: Partial<GstInputStream.ConstructorProps>, ...args: any[]);
|
|
461
|
+
|
|
462
|
+
_init(...args: any[]): void;
|
|
463
|
+
|
|
464
|
+
static ['new'](transcode_mimetype: string, src_stream: Gio.InputStream): GstInputStream;
|
|
465
|
+
|
|
466
|
+
// Own virtual methods of DMAP.GstInputStream
|
|
467
|
+
|
|
468
|
+
vfunc_kill_pipeline(): void;
|
|
469
|
+
|
|
470
|
+
// Inherited methods
|
|
471
|
+
/**
|
|
472
|
+
* Tests if the stream supports the #GSeekableIface.
|
|
473
|
+
* @returns %TRUE if @seekable can be seeked. %FALSE otherwise.
|
|
474
|
+
*/
|
|
475
|
+
can_seek(): boolean;
|
|
476
|
+
/**
|
|
477
|
+
* Tests if the length of the stream can be adjusted with
|
|
478
|
+
* g_seekable_truncate().
|
|
479
|
+
* @returns %TRUE if the stream can be truncated, %FALSE otherwise.
|
|
480
|
+
*/
|
|
481
|
+
can_truncate(): boolean;
|
|
482
|
+
/**
|
|
483
|
+
* Seeks in the stream by the given `offset,` modified by `type`.
|
|
484
|
+
*
|
|
485
|
+
* Attempting to seek past the end of the stream will have different
|
|
486
|
+
* results depending on if the stream is fixed-sized or resizable. If
|
|
487
|
+
* the stream is resizable then seeking past the end and then writing
|
|
488
|
+
* will result in zeros filling the empty space. Seeking past the end
|
|
489
|
+
* of a resizable stream and reading will result in EOF. Seeking past
|
|
490
|
+
* the end of a fixed-sized stream will fail.
|
|
491
|
+
*
|
|
492
|
+
* Any operation that would result in a negative offset will fail.
|
|
493
|
+
*
|
|
494
|
+
* If `cancellable` is not %NULL, then the operation can be cancelled by
|
|
495
|
+
* triggering the cancellable object from another thread. If the operation
|
|
496
|
+
* was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
|
|
497
|
+
* @param offset a #goffset.
|
|
498
|
+
* @param type a #GSeekType.
|
|
499
|
+
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
500
|
+
* @returns %TRUE if successful. If an error has occurred, this function will return %FALSE and set @error appropriately if present.
|
|
501
|
+
*/
|
|
502
|
+
seek(offset: number, type: GLib.SeekType, cancellable?: Gio.Cancellable | null): boolean;
|
|
503
|
+
/**
|
|
504
|
+
* Tells the current position within the stream.
|
|
505
|
+
* @returns the (positive or zero) offset from the beginning of the buffer, zero if the target is not seekable.
|
|
506
|
+
*/
|
|
507
|
+
tell(): number;
|
|
508
|
+
/**
|
|
509
|
+
* Sets the length of the stream to `offset`. If the stream was previously
|
|
510
|
+
* larger than `offset,` the extra data is discarded. If the stream was
|
|
511
|
+
* previously shorter than `offset,` it is extended with NUL ('\0') bytes.
|
|
512
|
+
*
|
|
513
|
+
* If `cancellable` is not %NULL, then the operation can be cancelled by
|
|
514
|
+
* triggering the cancellable object from another thread. If the operation
|
|
515
|
+
* was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. If an
|
|
516
|
+
* operation was partially finished when the operation was cancelled the
|
|
517
|
+
* partial result will be returned, without an error.
|
|
518
|
+
* @param offset new length for @seekable, in bytes.
|
|
519
|
+
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
520
|
+
* @returns %TRUE if successful. If an error has occurred, this function will return %FALSE and set @error appropriately if present.
|
|
521
|
+
*/
|
|
522
|
+
truncate(offset: number, cancellable?: Gio.Cancellable | null): boolean;
|
|
523
|
+
/**
|
|
524
|
+
* Tests if the stream supports the #GSeekableIface.
|
|
525
|
+
*/
|
|
526
|
+
vfunc_can_seek(): boolean;
|
|
527
|
+
/**
|
|
528
|
+
* Tests if the length of the stream can be adjusted with
|
|
529
|
+
* g_seekable_truncate().
|
|
530
|
+
*/
|
|
531
|
+
vfunc_can_truncate(): boolean;
|
|
532
|
+
/**
|
|
533
|
+
* Seeks in the stream by the given `offset,` modified by `type`.
|
|
534
|
+
*
|
|
535
|
+
* Attempting to seek past the end of the stream will have different
|
|
536
|
+
* results depending on if the stream is fixed-sized or resizable. If
|
|
537
|
+
* the stream is resizable then seeking past the end and then writing
|
|
538
|
+
* will result in zeros filling the empty space. Seeking past the end
|
|
539
|
+
* of a resizable stream and reading will result in EOF. Seeking past
|
|
540
|
+
* the end of a fixed-sized stream will fail.
|
|
541
|
+
*
|
|
542
|
+
* Any operation that would result in a negative offset will fail.
|
|
543
|
+
*
|
|
544
|
+
* If `cancellable` is not %NULL, then the operation can be cancelled by
|
|
545
|
+
* triggering the cancellable object from another thread. If the operation
|
|
546
|
+
* was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
|
|
547
|
+
* @param offset a #goffset.
|
|
548
|
+
* @param type a #GSeekType.
|
|
549
|
+
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
550
|
+
*/
|
|
551
|
+
vfunc_seek(offset: number, type: GLib.SeekType, cancellable?: Gio.Cancellable | null): boolean;
|
|
552
|
+
/**
|
|
553
|
+
* Tells the current position within the stream.
|
|
554
|
+
*/
|
|
555
|
+
vfunc_tell(): number;
|
|
556
|
+
/**
|
|
557
|
+
* Sets the length of the stream to `offset`. If the stream was previously
|
|
558
|
+
* larger than `offset,` the extra data is discarded. If the stream was
|
|
559
|
+
* previously shorter than `offset,` it is extended with NUL ('\0') bytes.
|
|
560
|
+
*
|
|
561
|
+
* If `cancellable` is not %NULL, then the operation can be cancelled by
|
|
562
|
+
* triggering the cancellable object from another thread. If the operation
|
|
563
|
+
* was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. If an
|
|
564
|
+
* operation was partially finished when the operation was cancelled the
|
|
565
|
+
* partial result will be returned, without an error.
|
|
566
|
+
* @param offset new length for @seekable, in bytes.
|
|
567
|
+
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
568
|
+
*/
|
|
569
|
+
vfunc_truncate_fn(offset: number, cancellable?: Gio.Cancellable | null): boolean;
|
|
570
|
+
/**
|
|
571
|
+
* Creates a binding between `source_property` on `source` and `target_property`
|
|
572
|
+
* on `target`.
|
|
573
|
+
*
|
|
574
|
+
* Whenever the `source_property` is changed the `target_property` is
|
|
575
|
+
* updated using the same value. For instance:
|
|
576
|
+
*
|
|
577
|
+
*
|
|
578
|
+
* ```c
|
|
579
|
+
* g_object_bind_property (action, "active", widget, "sensitive", 0);
|
|
580
|
+
* ```
|
|
581
|
+
*
|
|
582
|
+
*
|
|
583
|
+
* Will result in the "sensitive" property of the widget #GObject instance to be
|
|
584
|
+
* updated with the same value of the "active" property of the action #GObject
|
|
585
|
+
* instance.
|
|
586
|
+
*
|
|
587
|
+
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
|
|
588
|
+
* if `target_property` on `target` changes then the `source_property` on `source`
|
|
589
|
+
* will be updated as well.
|
|
590
|
+
*
|
|
591
|
+
* The binding will automatically be removed when either the `source` or the
|
|
592
|
+
* `target` instances are finalized. To remove the binding without affecting the
|
|
593
|
+
* `source` and the `target` you can just call g_object_unref() on the returned
|
|
594
|
+
* #GBinding instance.
|
|
595
|
+
*
|
|
596
|
+
* Removing the binding by calling g_object_unref() on it must only be done if
|
|
597
|
+
* the binding, `source` and `target` are only used from a single thread and it
|
|
598
|
+
* is clear that both `source` and `target` outlive the binding. Especially it
|
|
599
|
+
* is not safe to rely on this if the binding, `source` or `target` can be
|
|
600
|
+
* finalized from different threads. Keep another reference to the binding and
|
|
601
|
+
* use g_binding_unbind() instead to be on the safe side.
|
|
602
|
+
*
|
|
603
|
+
* A #GObject can have multiple bindings.
|
|
604
|
+
* @param source_property the property on @source to bind
|
|
605
|
+
* @param target the target #GObject
|
|
606
|
+
* @param target_property the property on @target to bind
|
|
607
|
+
* @param flags flags to pass to #GBinding
|
|
608
|
+
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
|
|
609
|
+
*/
|
|
610
|
+
bind_property(
|
|
611
|
+
source_property: string,
|
|
612
|
+
target: GObject.Object,
|
|
613
|
+
target_property: string,
|
|
614
|
+
flags: GObject.BindingFlags,
|
|
615
|
+
): GObject.Binding;
|
|
616
|
+
/**
|
|
617
|
+
* Complete version of g_object_bind_property().
|
|
618
|
+
*
|
|
619
|
+
* Creates a binding between `source_property` on `source` and `target_property`
|
|
620
|
+
* on `target,` allowing you to set the transformation functions to be used by
|
|
621
|
+
* the binding.
|
|
622
|
+
*
|
|
623
|
+
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
|
|
624
|
+
* if `target_property` on `target` changes then the `source_property` on `source`
|
|
625
|
+
* will be updated as well. The `transform_from` function is only used in case
|
|
626
|
+
* of bidirectional bindings, otherwise it will be ignored
|
|
627
|
+
*
|
|
628
|
+
* The binding will automatically be removed when either the `source` or the
|
|
629
|
+
* `target` instances are finalized. This will release the reference that is
|
|
630
|
+
* being held on the #GBinding instance; if you want to hold on to the
|
|
631
|
+
* #GBinding instance, you will need to hold a reference to it.
|
|
632
|
+
*
|
|
633
|
+
* To remove the binding, call g_binding_unbind().
|
|
634
|
+
*
|
|
635
|
+
* A #GObject can have multiple bindings.
|
|
636
|
+
*
|
|
637
|
+
* The same `user_data` parameter will be used for both `transform_to`
|
|
638
|
+
* and `transform_from` transformation functions; the `notify` function will
|
|
639
|
+
* be called once, when the binding is removed. If you need different data
|
|
640
|
+
* for each transformation function, please use
|
|
641
|
+
* g_object_bind_property_with_closures() instead.
|
|
642
|
+
* @param source_property the property on @source to bind
|
|
643
|
+
* @param target the target #GObject
|
|
644
|
+
* @param target_property the property on @target to bind
|
|
645
|
+
* @param flags flags to pass to #GBinding
|
|
646
|
+
* @param transform_to the transformation function from the @source to the @target, or %NULL to use the default
|
|
647
|
+
* @param transform_from the transformation function from the @target to the @source, or %NULL to use the default
|
|
648
|
+
* @param notify a function to call when disposing the binding, to free resources used by the transformation functions, or %NULL if not required
|
|
649
|
+
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
|
|
650
|
+
*/
|
|
651
|
+
bind_property_full(
|
|
652
|
+
source_property: string,
|
|
653
|
+
target: GObject.Object,
|
|
654
|
+
target_property: string,
|
|
655
|
+
flags: GObject.BindingFlags,
|
|
656
|
+
transform_to?: GObject.BindingTransformFunc | null,
|
|
657
|
+
transform_from?: GObject.BindingTransformFunc | null,
|
|
658
|
+
notify?: GLib.DestroyNotify | null,
|
|
659
|
+
): GObject.Binding;
|
|
660
|
+
// Conflicted with GObject.Object.bind_property_full
|
|
661
|
+
bind_property_full(...args: never[]): any;
|
|
662
|
+
/**
|
|
663
|
+
* This function is intended for #GObject implementations to re-enforce
|
|
664
|
+
* a [floating][floating-ref] object reference. Doing this is seldom
|
|
665
|
+
* required: all #GInitiallyUnowneds are created with a floating reference
|
|
666
|
+
* which usually just needs to be sunken by calling g_object_ref_sink().
|
|
667
|
+
*/
|
|
668
|
+
force_floating(): void;
|
|
669
|
+
/**
|
|
670
|
+
* Increases the freeze count on `object`. If the freeze count is
|
|
671
|
+
* non-zero, the emission of "notify" signals on `object` is
|
|
672
|
+
* stopped. The signals are queued until the freeze count is decreased
|
|
673
|
+
* to zero. Duplicate notifications are squashed so that at most one
|
|
674
|
+
* #GObject::notify signal is emitted for each property modified while the
|
|
675
|
+
* object is frozen.
|
|
676
|
+
*
|
|
677
|
+
* This is necessary for accessors that modify multiple properties to prevent
|
|
678
|
+
* premature notification while the object is still being modified.
|
|
679
|
+
*/
|
|
680
|
+
freeze_notify(): void;
|
|
681
|
+
/**
|
|
682
|
+
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
683
|
+
* @param key name of the key for that association
|
|
684
|
+
* @returns the data if found, or %NULL if no such data exists.
|
|
685
|
+
*/
|
|
686
|
+
get_data(key: string): any | null;
|
|
687
|
+
get_property(property_name: string): any;
|
|
688
|
+
/**
|
|
689
|
+
* This function gets back user data pointers stored via
|
|
690
|
+
* g_object_set_qdata().
|
|
691
|
+
* @param quark A #GQuark, naming the user data pointer
|
|
692
|
+
* @returns The user data pointer set, or %NULL
|
|
693
|
+
*/
|
|
694
|
+
get_qdata(quark: GLib.Quark): any | null;
|
|
695
|
+
/**
|
|
696
|
+
* Gets `n_properties` properties for an `object`.
|
|
697
|
+
* Obtained properties will be set to `values`. All properties must be valid.
|
|
698
|
+
* Warnings will be emitted and undefined behaviour may result if invalid
|
|
699
|
+
* properties are passed in.
|
|
700
|
+
* @param names the names of each property to get
|
|
701
|
+
* @param values the values of each property to get
|
|
702
|
+
*/
|
|
703
|
+
getv(names: string[], values: (GObject.Value | any)[]): void;
|
|
704
|
+
/**
|
|
705
|
+
* Checks whether `object` has a [floating][floating-ref] reference.
|
|
706
|
+
* @returns %TRUE if @object has a floating reference
|
|
707
|
+
*/
|
|
708
|
+
is_floating(): boolean;
|
|
709
|
+
/**
|
|
710
|
+
* Emits a "notify" signal for the property `property_name` on `object`.
|
|
711
|
+
*
|
|
712
|
+
* When possible, eg. when signaling a property change from within the class
|
|
713
|
+
* that registered the property, you should use g_object_notify_by_pspec()
|
|
714
|
+
* instead.
|
|
715
|
+
*
|
|
716
|
+
* Note that emission of the notify signal may be blocked with
|
|
717
|
+
* g_object_freeze_notify(). In this case, the signal emissions are queued
|
|
718
|
+
* and will be emitted (in reverse order) when g_object_thaw_notify() is
|
|
719
|
+
* called.
|
|
720
|
+
* @param property_name the name of a property installed on the class of @object.
|
|
721
|
+
*/
|
|
722
|
+
notify(property_name: string): void;
|
|
723
|
+
/**
|
|
724
|
+
* Emits a "notify" signal for the property specified by `pspec` on `object`.
|
|
725
|
+
*
|
|
726
|
+
* This function omits the property name lookup, hence it is faster than
|
|
727
|
+
* g_object_notify().
|
|
728
|
+
*
|
|
729
|
+
* One way to avoid using g_object_notify() from within the
|
|
730
|
+
* class that registered the properties, and using g_object_notify_by_pspec()
|
|
731
|
+
* instead, is to store the GParamSpec used with
|
|
732
|
+
* g_object_class_install_property() inside a static array, e.g.:
|
|
733
|
+
*
|
|
734
|
+
*
|
|
735
|
+
* ```c
|
|
736
|
+
* typedef enum
|
|
737
|
+
* {
|
|
738
|
+
* PROP_FOO = 1,
|
|
739
|
+
* PROP_LAST
|
|
740
|
+
* } MyObjectProperty;
|
|
741
|
+
*
|
|
742
|
+
* static GParamSpec *properties[PROP_LAST];
|
|
743
|
+
*
|
|
744
|
+
* static void
|
|
745
|
+
* my_object_class_init (MyObjectClass *klass)
|
|
746
|
+
* {
|
|
747
|
+
* properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
|
|
748
|
+
* 0, 100,
|
|
749
|
+
* 50,
|
|
750
|
+
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
|
|
751
|
+
* g_object_class_install_property (gobject_class,
|
|
752
|
+
* PROP_FOO,
|
|
753
|
+
* properties[PROP_FOO]);
|
|
754
|
+
* }
|
|
755
|
+
* ```
|
|
756
|
+
*
|
|
757
|
+
*
|
|
758
|
+
* and then notify a change on the "foo" property with:
|
|
759
|
+
*
|
|
760
|
+
*
|
|
761
|
+
* ```c
|
|
762
|
+
* g_object_notify_by_pspec (self, properties[PROP_FOO]);
|
|
763
|
+
* ```
|
|
764
|
+
*
|
|
765
|
+
* @param pspec the #GParamSpec of a property installed on the class of @object.
|
|
766
|
+
*/
|
|
767
|
+
notify_by_pspec(pspec: GObject.ParamSpec): void;
|
|
768
|
+
/**
|
|
769
|
+
* Increases the reference count of `object`.
|
|
770
|
+
*
|
|
771
|
+
* Since GLib 2.56, if `GLIB_VERSION_MAX_ALLOWED` is 2.56 or greater, the type
|
|
772
|
+
* of `object` will be propagated to the return type (using the GCC typeof()
|
|
773
|
+
* extension), so any casting the caller needs to do on the return type must be
|
|
774
|
+
* explicit.
|
|
775
|
+
* @returns the same @object
|
|
776
|
+
*/
|
|
777
|
+
ref(): GObject.Object;
|
|
778
|
+
/**
|
|
779
|
+
* Increase the reference count of `object,` and possibly remove the
|
|
780
|
+
* [floating][floating-ref] reference, if `object` has a floating reference.
|
|
781
|
+
*
|
|
782
|
+
* In other words, if the object is floating, then this call "assumes
|
|
783
|
+
* ownership" of the floating reference, converting it to a normal
|
|
784
|
+
* reference by clearing the floating flag while leaving the reference
|
|
785
|
+
* count unchanged. If the object is not floating, then this call
|
|
786
|
+
* adds a new normal reference increasing the reference count by one.
|
|
787
|
+
*
|
|
788
|
+
* Since GLib 2.56, the type of `object` will be propagated to the return type
|
|
789
|
+
* under the same conditions as for g_object_ref().
|
|
790
|
+
* @returns @object
|
|
791
|
+
*/
|
|
792
|
+
ref_sink(): GObject.Object;
|
|
793
|
+
/**
|
|
794
|
+
* Releases all references to other objects. This can be used to break
|
|
795
|
+
* reference cycles.
|
|
796
|
+
*
|
|
797
|
+
* This function should only be called from object system implementations.
|
|
798
|
+
*/
|
|
799
|
+
run_dispose(): void;
|
|
800
|
+
/**
|
|
801
|
+
* Each object carries around a table of associations from
|
|
802
|
+
* strings to pointers. This function lets you set an association.
|
|
803
|
+
*
|
|
804
|
+
* If the object already had an association with that name,
|
|
805
|
+
* the old association will be destroyed.
|
|
806
|
+
*
|
|
807
|
+
* Internally, the `key` is converted to a #GQuark using g_quark_from_string().
|
|
808
|
+
* This means a copy of `key` is kept permanently (even after `object` has been
|
|
809
|
+
* finalized) — so it is recommended to only use a small, bounded set of values
|
|
810
|
+
* for `key` in your program, to avoid the #GQuark storage growing unbounded.
|
|
811
|
+
* @param key name of the key
|
|
812
|
+
* @param data data to associate with that key
|
|
813
|
+
*/
|
|
814
|
+
set_data(key: string, data?: any | null): void;
|
|
815
|
+
set_property(property_name: string, value: any): void;
|
|
816
|
+
/**
|
|
817
|
+
* Remove a specified datum from the object's data associations,
|
|
818
|
+
* without invoking the association's destroy handler.
|
|
819
|
+
* @param key name of the key
|
|
820
|
+
* @returns the data if found, or %NULL if no such data exists.
|
|
821
|
+
*/
|
|
822
|
+
steal_data(key: string): any | null;
|
|
823
|
+
/**
|
|
824
|
+
* This function gets back user data pointers stored via
|
|
825
|
+
* g_object_set_qdata() and removes the `data` from object
|
|
826
|
+
* without invoking its destroy() function (if any was
|
|
827
|
+
* set).
|
|
828
|
+
* Usually, calling this function is only required to update
|
|
829
|
+
* user data pointers with a destroy notifier, for example:
|
|
830
|
+
*
|
|
831
|
+
* ```c
|
|
832
|
+
* void
|
|
833
|
+
* object_add_to_user_list (GObject *object,
|
|
834
|
+
* const gchar *new_string)
|
|
835
|
+
* {
|
|
836
|
+
* // the quark, naming the object data
|
|
837
|
+
* GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
|
|
838
|
+
* // retrieve the old string list
|
|
839
|
+
* GList *list = g_object_steal_qdata (object, quark_string_list);
|
|
840
|
+
*
|
|
841
|
+
* // prepend new string
|
|
842
|
+
* list = g_list_prepend (list, g_strdup (new_string));
|
|
843
|
+
* // this changed 'list', so we need to set it again
|
|
844
|
+
* g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
|
|
845
|
+
* }
|
|
846
|
+
* static void
|
|
847
|
+
* free_string_list (gpointer data)
|
|
848
|
+
* {
|
|
849
|
+
* GList *node, *list = data;
|
|
850
|
+
*
|
|
851
|
+
* for (node = list; node; node = node->next)
|
|
852
|
+
* g_free (node->data);
|
|
853
|
+
* g_list_free (list);
|
|
854
|
+
* }
|
|
855
|
+
* ```
|
|
856
|
+
*
|
|
857
|
+
* Using g_object_get_qdata() in the above example, instead of
|
|
858
|
+
* g_object_steal_qdata() would have left the destroy function set,
|
|
859
|
+
* and thus the partial string list would have been freed upon
|
|
860
|
+
* g_object_set_qdata_full().
|
|
861
|
+
* @param quark A #GQuark, naming the user data pointer
|
|
862
|
+
* @returns The user data pointer set, or %NULL
|
|
863
|
+
*/
|
|
864
|
+
steal_qdata(quark: GLib.Quark): any | null;
|
|
865
|
+
/**
|
|
866
|
+
* Reverts the effect of a previous call to
|
|
867
|
+
* g_object_freeze_notify(). The freeze count is decreased on `object`
|
|
868
|
+
* and when it reaches zero, queued "notify" signals are emitted.
|
|
869
|
+
*
|
|
870
|
+
* Duplicate notifications for each property are squashed so that at most one
|
|
871
|
+
* #GObject::notify signal is emitted for each property, in the reverse order
|
|
872
|
+
* in which they have been queued.
|
|
873
|
+
*
|
|
874
|
+
* It is an error to call this function when the freeze count is zero.
|
|
875
|
+
*/
|
|
876
|
+
thaw_notify(): void;
|
|
877
|
+
/**
|
|
878
|
+
* Decreases the reference count of `object`. When its reference count
|
|
879
|
+
* drops to 0, the object is finalized (i.e. its memory is freed).
|
|
880
|
+
*
|
|
881
|
+
* If the pointer to the #GObject may be reused in future (for example, if it is
|
|
882
|
+
* an instance variable of another object), it is recommended to clear the
|
|
883
|
+
* pointer to %NULL rather than retain a dangling pointer to a potentially
|
|
884
|
+
* invalid #GObject instance. Use g_clear_object() for this.
|
|
885
|
+
*/
|
|
886
|
+
unref(): void;
|
|
887
|
+
/**
|
|
888
|
+
* This function essentially limits the life time of the `closure` to
|
|
889
|
+
* the life time of the object. That is, when the object is finalized,
|
|
890
|
+
* the `closure` is invalidated by calling g_closure_invalidate() on
|
|
891
|
+
* it, in order to prevent invocations of the closure with a finalized
|
|
892
|
+
* (nonexisting) object. Also, g_object_ref() and g_object_unref() are
|
|
893
|
+
* added as marshal guards to the `closure,` to ensure that an extra
|
|
894
|
+
* reference count is held on `object` during invocation of the
|
|
895
|
+
* `closure`. Usually, this function will be called on closures that
|
|
896
|
+
* use this `object` as closure data.
|
|
897
|
+
* @param closure #GClosure to watch
|
|
898
|
+
*/
|
|
899
|
+
watch_closure(closure: GObject.Closure): void;
|
|
900
|
+
vfunc_constructed(): void;
|
|
901
|
+
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
|
|
902
|
+
vfunc_dispose(): void;
|
|
903
|
+
vfunc_finalize(): void;
|
|
904
|
+
vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
905
|
+
/**
|
|
906
|
+
* Emits a "notify" signal for the property `property_name` on `object`.
|
|
907
|
+
*
|
|
908
|
+
* When possible, eg. when signaling a property change from within the class
|
|
909
|
+
* that registered the property, you should use g_object_notify_by_pspec()
|
|
910
|
+
* instead.
|
|
911
|
+
*
|
|
912
|
+
* Note that emission of the notify signal may be blocked with
|
|
913
|
+
* g_object_freeze_notify(). In this case, the signal emissions are queued
|
|
914
|
+
* and will be emitted (in reverse order) when g_object_thaw_notify() is
|
|
915
|
+
* called.
|
|
916
|
+
* @param pspec
|
|
917
|
+
*/
|
|
918
|
+
vfunc_notify(pspec: GObject.ParamSpec): void;
|
|
919
|
+
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
920
|
+
disconnect(id: number): void;
|
|
921
|
+
set(properties: { [key: string]: any }): void;
|
|
922
|
+
block_signal_handler(id: number): any;
|
|
923
|
+
unblock_signal_handler(id: number): any;
|
|
924
|
+
stop_emission_by_name(detailedName: string): any;
|
|
925
|
+
}
|
|
709
926
|
|
|
710
|
-
|
|
927
|
+
module MdnsBrowser {
|
|
928
|
+
// Signal callback interfaces
|
|
711
929
|
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
}
|
|
930
|
+
interface ServiceAdded {
|
|
931
|
+
(service: any): void;
|
|
932
|
+
}
|
|
715
933
|
|
|
716
|
-
|
|
934
|
+
interface ServiceRemoved {
|
|
935
|
+
(object: string): void;
|
|
936
|
+
}
|
|
717
937
|
|
|
718
|
-
|
|
938
|
+
// Constructor properties interface
|
|
719
939
|
|
|
720
|
-
|
|
940
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
721
941
|
}
|
|
722
942
|
|
|
723
|
-
|
|
943
|
+
class MdnsBrowser extends GObject.Object {
|
|
944
|
+
static $gtype: GObject.GType<MdnsBrowser>;
|
|
724
945
|
|
|
725
|
-
|
|
946
|
+
// Own fields of DMAP.MdnsBrowser
|
|
726
947
|
|
|
727
|
-
|
|
948
|
+
object: GObject.Object;
|
|
728
949
|
|
|
729
|
-
|
|
730
|
-
priv: GstInputStreamPrivate
|
|
950
|
+
// Constructors of DMAP.MdnsBrowser
|
|
731
951
|
|
|
732
|
-
|
|
952
|
+
constructor(properties?: Partial<MdnsBrowser.ConstructorProps>, ...args: any[]);
|
|
733
953
|
|
|
734
|
-
|
|
954
|
+
_init(...args: any[]): void;
|
|
735
955
|
|
|
736
|
-
|
|
956
|
+
static ['new'](type: MdnsBrowserServiceType): MdnsBrowser;
|
|
737
957
|
|
|
738
|
-
|
|
739
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
740
|
-
emit(sigName: string, ...args: any[]): void
|
|
741
|
-
disconnect(id: number): void
|
|
742
|
-
}
|
|
958
|
+
// Own signals of DMAP.MdnsBrowser
|
|
743
959
|
|
|
744
|
-
|
|
960
|
+
connect(id: string, callback: (...args: any[]) => any): number;
|
|
961
|
+
connect_after(id: string, callback: (...args: any[]) => any): number;
|
|
962
|
+
emit(id: string, ...args: any[]): void;
|
|
963
|
+
connect(signal: 'service-added', callback: (_source: this, service: any) => void): number;
|
|
964
|
+
connect_after(signal: 'service-added', callback: (_source: this, service: any) => void): number;
|
|
965
|
+
emit(signal: 'service-added', service: any): void;
|
|
966
|
+
connect(signal: 'service-removed', callback: (_source: this, object: string) => void): number;
|
|
967
|
+
connect_after(signal: 'service-removed', callback: (_source: this, object: string) => void): number;
|
|
968
|
+
emit(signal: 'service-removed', object: string): void;
|
|
745
969
|
|
|
746
|
-
|
|
970
|
+
// Own virtual methods of DMAP.MdnsBrowser
|
|
747
971
|
|
|
748
|
-
|
|
749
|
-
|
|
972
|
+
vfunc_service_added(service: MdnsBrowserService): void;
|
|
973
|
+
vfunc_service_removed(service: MdnsBrowserService): void;
|
|
750
974
|
|
|
751
|
-
|
|
975
|
+
// Own methods of DMAP.MdnsBrowser
|
|
752
976
|
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
* Signal callback interface for `service-added`
|
|
765
|
-
*/
|
|
766
|
-
interface ServiceAddedSignalCallback {
|
|
767
|
-
($obj: MdnsBrowser, service: any): void
|
|
977
|
+
get_service_type(): MdnsBrowserServiceType;
|
|
978
|
+
/**
|
|
979
|
+
* Starts a DMAPMdnsBrowser.
|
|
980
|
+
* @returns TRUE on success, else FALSE.
|
|
981
|
+
*/
|
|
982
|
+
start(): boolean;
|
|
983
|
+
/**
|
|
984
|
+
* Stops a DMAPMdnsBrowser.
|
|
985
|
+
* @returns TRUE on success, else FALSE.
|
|
986
|
+
*/
|
|
987
|
+
stop(): boolean;
|
|
768
988
|
}
|
|
769
989
|
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
*/
|
|
773
|
-
interface ServiceRemovedSignalCallback {
|
|
774
|
-
($obj: MdnsBrowser, object: string | null): void
|
|
775
|
-
}
|
|
990
|
+
module MdnsPublisher {
|
|
991
|
+
// Signal callback interfaces
|
|
776
992
|
|
|
993
|
+
interface NameCollision {
|
|
994
|
+
(object: string): void;
|
|
995
|
+
}
|
|
777
996
|
|
|
778
|
-
|
|
997
|
+
interface Published {
|
|
998
|
+
(object: string): void;
|
|
999
|
+
}
|
|
779
1000
|
|
|
780
|
-
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
}
|
|
1001
|
+
// Constructor properties interface
|
|
784
1002
|
|
|
785
|
-
interface
|
|
786
|
-
|
|
787
|
-
// Own fields of DMAP-3.0.DMAP.MdnsBrowser
|
|
788
|
-
|
|
789
|
-
object: GObject.Object
|
|
790
|
-
priv: MdnsBrowserPrivate
|
|
1003
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
1004
|
+
}
|
|
791
1005
|
|
|
792
|
-
|
|
1006
|
+
class MdnsPublisher extends GObject.Object {
|
|
1007
|
+
static $gtype: GObject.GType<MdnsPublisher>;
|
|
793
1008
|
|
|
794
|
-
|
|
795
|
-
/**
|
|
796
|
-
* Starts a DMAPMdnsBrowser.
|
|
797
|
-
* @returns TRUE on success, else FALSE.
|
|
798
|
-
*/
|
|
799
|
-
start(): boolean
|
|
800
|
-
/**
|
|
801
|
-
* Stops a DMAPMdnsBrowser.
|
|
802
|
-
* @returns TRUE on success, else FALSE.
|
|
803
|
-
*/
|
|
804
|
-
stop(): boolean
|
|
1009
|
+
// Own fields of DMAP.MdnsPublisher
|
|
805
1010
|
|
|
806
|
-
|
|
1011
|
+
object: GObject.Object;
|
|
807
1012
|
|
|
808
|
-
|
|
809
|
-
vfunc_service_removed(service: MdnsBrowserService): void
|
|
1013
|
+
// Constructors of DMAP.MdnsPublisher
|
|
810
1014
|
|
|
811
|
-
|
|
1015
|
+
constructor(properties?: Partial<MdnsPublisher.ConstructorProps>, ...args: any[]);
|
|
812
1016
|
|
|
813
|
-
|
|
814
|
-
connect_after(sigName: "service-added", callback: MdnsBrowser.ServiceAddedSignalCallback): number
|
|
815
|
-
emit(sigName: "service-added", service: any, ...args: any[]): void
|
|
816
|
-
connect(sigName: "service-removed", callback: MdnsBrowser.ServiceRemovedSignalCallback): number
|
|
817
|
-
connect_after(sigName: "service-removed", callback: MdnsBrowser.ServiceRemovedSignalCallback): number
|
|
818
|
-
emit(sigName: "service-removed", object: string | null, ...args: any[]): void
|
|
1017
|
+
_init(...args: any[]): void;
|
|
819
1018
|
|
|
820
|
-
|
|
1019
|
+
static ['new'](): MdnsPublisher;
|
|
821
1020
|
|
|
822
|
-
|
|
823
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
824
|
-
emit(sigName: string, ...args: any[]): void
|
|
825
|
-
disconnect(id: number): void
|
|
826
|
-
}
|
|
1021
|
+
// Own signals of DMAP.MdnsPublisher
|
|
827
1022
|
|
|
828
|
-
|
|
1023
|
+
connect(id: string, callback: (...args: any[]) => any): number;
|
|
1024
|
+
connect_after(id: string, callback: (...args: any[]) => any): number;
|
|
1025
|
+
emit(id: string, ...args: any[]): void;
|
|
1026
|
+
connect(signal: 'name-collision', callback: (_source: this, object: string) => void): number;
|
|
1027
|
+
connect_after(signal: 'name-collision', callback: (_source: this, object: string) => void): number;
|
|
1028
|
+
emit(signal: 'name-collision', object: string): void;
|
|
1029
|
+
connect(signal: 'published', callback: (_source: this, object: string) => void): number;
|
|
1030
|
+
connect_after(signal: 'published', callback: (_source: this, object: string) => void): number;
|
|
1031
|
+
emit(signal: 'published', object: string): void;
|
|
829
1032
|
|
|
830
|
-
|
|
1033
|
+
// Own virtual methods of DMAP.MdnsPublisher
|
|
831
1034
|
|
|
832
|
-
|
|
833
|
-
|
|
1035
|
+
vfunc_name_collision(name: string): void;
|
|
1036
|
+
vfunc_published(name: string): void;
|
|
834
1037
|
|
|
835
|
-
|
|
1038
|
+
// Own methods of DMAP.MdnsPublisher
|
|
836
1039
|
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
* Creates a new mDNS browser.
|
|
847
|
-
* @constructor
|
|
848
|
-
* @param type The type of service to browse.
|
|
849
|
-
* @returns a pointer to a DMAPMdnsBrowser.
|
|
850
|
-
*/
|
|
851
|
-
static new(type: MdnsBrowserServiceType): MdnsBrowser
|
|
852
|
-
_init(config?: MdnsBrowser.ConstructorProperties): void
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
module MdnsPublisher {
|
|
856
|
-
|
|
857
|
-
// Signal callback interfaces
|
|
858
|
-
|
|
859
|
-
/**
|
|
860
|
-
* Signal callback interface for `name-collision`
|
|
861
|
-
*/
|
|
862
|
-
interface NameCollisionSignalCallback {
|
|
863
|
-
($obj: MdnsPublisher, object: string | null): void
|
|
1040
|
+
publish(
|
|
1041
|
+
name: string,
|
|
1042
|
+
port: number,
|
|
1043
|
+
type_of_service: string,
|
|
1044
|
+
password_required: boolean,
|
|
1045
|
+
txt_records: string,
|
|
1046
|
+
): boolean;
|
|
1047
|
+
rename_at_port(port: number, name: string): boolean;
|
|
1048
|
+
withdraw(port: number): boolean;
|
|
864
1049
|
}
|
|
865
1050
|
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
1051
|
+
module Share {
|
|
1052
|
+
// Constructor properties interface
|
|
1053
|
+
|
|
1054
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1055
|
+
auth_method: number;
|
|
1056
|
+
authMethod: number;
|
|
1057
|
+
container_db: any;
|
|
1058
|
+
containerDb: any;
|
|
1059
|
+
db: any;
|
|
1060
|
+
name: string;
|
|
1061
|
+
password: string;
|
|
1062
|
+
revision_number: number;
|
|
1063
|
+
revisionNumber: number;
|
|
1064
|
+
server_ipv4: Soup.Server;
|
|
1065
|
+
serverIpv4: Soup.Server;
|
|
1066
|
+
server_ipv6: Soup.Server;
|
|
1067
|
+
serverIpv6: Soup.Server;
|
|
1068
|
+
transcode_mimetype: string;
|
|
1069
|
+
transcodeMimetype: string;
|
|
1070
|
+
txt_records: string[];
|
|
1071
|
+
txtRecords: string[];
|
|
1072
|
+
}
|
|
871
1073
|
}
|
|
872
1074
|
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
1075
|
+
abstract class Share extends GObject.Object {
|
|
1076
|
+
static $gtype: GObject.GType<Share>;
|
|
1077
|
+
|
|
1078
|
+
// Own properties of DMAP.Share
|
|
1079
|
+
|
|
1080
|
+
get auth_method(): number;
|
|
1081
|
+
set auth_method(val: number);
|
|
1082
|
+
get authMethod(): number;
|
|
1083
|
+
set authMethod(val: number);
|
|
1084
|
+
get container_db(): any;
|
|
1085
|
+
get containerDb(): any;
|
|
1086
|
+
get db(): any;
|
|
1087
|
+
get name(): string;
|
|
1088
|
+
set name(val: string);
|
|
1089
|
+
get password(): string;
|
|
1090
|
+
set password(val: string);
|
|
1091
|
+
get revision_number(): number;
|
|
1092
|
+
set revision_number(val: number);
|
|
1093
|
+
get revisionNumber(): number;
|
|
1094
|
+
set revisionNumber(val: number);
|
|
1095
|
+
get server_ipv4(): Soup.Server;
|
|
1096
|
+
get serverIpv4(): Soup.Server;
|
|
1097
|
+
get server_ipv6(): Soup.Server;
|
|
1098
|
+
get serverIpv6(): Soup.Server;
|
|
1099
|
+
get transcode_mimetype(): string;
|
|
1100
|
+
get transcodeMimetype(): string;
|
|
1101
|
+
get txt_records(): string[];
|
|
1102
|
+
set txt_records(val: string[]);
|
|
1103
|
+
get txtRecords(): string[];
|
|
1104
|
+
set txtRecords(val: string[]);
|
|
1105
|
+
|
|
1106
|
+
// Constructors of DMAP.Share
|
|
1107
|
+
|
|
1108
|
+
constructor(properties?: Partial<Share.ConstructorProps>, ...args: any[]);
|
|
1109
|
+
|
|
1110
|
+
_init(...args: any[]): void;
|
|
1111
|
+
|
|
1112
|
+
// Own virtual methods of DMAP.Share
|
|
1113
|
+
|
|
1114
|
+
vfunc_content_codes(
|
|
1115
|
+
server: Soup.Server,
|
|
1116
|
+
message: Soup.Message,
|
|
1117
|
+
path: string,
|
|
1118
|
+
query: { [key: string]: any } | GLib.HashTable<any, any>,
|
|
1119
|
+
ctx: Soup.ClientContext,
|
|
1120
|
+
): void;
|
|
1121
|
+
vfunc_ctrl_int(
|
|
1122
|
+
server: Soup.Server,
|
|
1123
|
+
message: Soup.Message,
|
|
1124
|
+
path: string,
|
|
1125
|
+
query: { [key: string]: any } | GLib.HashTable<any, any>,
|
|
1126
|
+
ctx: Soup.ClientContext,
|
|
1127
|
+
): void;
|
|
1128
|
+
vfunc_databases(
|
|
1129
|
+
server: Soup.Server,
|
|
1130
|
+
message: Soup.Message,
|
|
1131
|
+
path: string,
|
|
1132
|
+
query: { [key: string]: any } | GLib.HashTable<any, any>,
|
|
1133
|
+
context: Soup.ClientContext,
|
|
1134
|
+
): void;
|
|
1135
|
+
vfunc_databases_browse_xxx(
|
|
1136
|
+
server: Soup.Server,
|
|
1137
|
+
msg: Soup.Message,
|
|
1138
|
+
path: string,
|
|
1139
|
+
query: { [key: string]: any } | GLib.HashTable<any, any>,
|
|
1140
|
+
context: Soup.ClientContext,
|
|
1141
|
+
): void;
|
|
1142
|
+
vfunc_databases_items_xxx(
|
|
1143
|
+
server: Soup.Server,
|
|
1144
|
+
msg: Soup.Message,
|
|
1145
|
+
path: string,
|
|
1146
|
+
query: { [key: string]: any } | GLib.HashTable<any, any>,
|
|
1147
|
+
context: Soup.ClientContext,
|
|
1148
|
+
): void;
|
|
1149
|
+
vfunc_get_desired_port(): number;
|
|
1150
|
+
vfunc_get_type_of_service(): string;
|
|
1151
|
+
vfunc_login(
|
|
1152
|
+
server: Soup.Server,
|
|
1153
|
+
message: Soup.Message,
|
|
1154
|
+
path: string,
|
|
1155
|
+
query: { [key: string]: any } | GLib.HashTable<any, any>,
|
|
1156
|
+
ctx: Soup.ClientContext,
|
|
1157
|
+
): void;
|
|
1158
|
+
vfunc_logout(
|
|
1159
|
+
server: Soup.Server,
|
|
1160
|
+
message: Soup.Message,
|
|
1161
|
+
path: string,
|
|
1162
|
+
query: { [key: string]: any } | GLib.HashTable<any, any>,
|
|
1163
|
+
ctx: Soup.ClientContext,
|
|
1164
|
+
): void;
|
|
1165
|
+
vfunc_message_add_standard_headers(msg: Soup.Message): void;
|
|
1166
|
+
vfunc_name_collision(publisher: MdnsPublisher, name: string): void;
|
|
1167
|
+
vfunc_published(publisher: MdnsPublisher, name: string): void;
|
|
1168
|
+
vfunc_server_info(
|
|
1169
|
+
server: Soup.Server,
|
|
1170
|
+
message: Soup.Message,
|
|
1171
|
+
path: string,
|
|
1172
|
+
query: { [key: string]: any } | GLib.HashTable<any, any>,
|
|
1173
|
+
ctx: Soup.ClientContext,
|
|
1174
|
+
): void;
|
|
1175
|
+
vfunc_update(
|
|
1176
|
+
server: Soup.Server,
|
|
1177
|
+
message: Soup.Message,
|
|
1178
|
+
path: string,
|
|
1179
|
+
query: { [key: string]: any } | GLib.HashTable<any, any>,
|
|
1180
|
+
ctx: Soup.ClientContext,
|
|
1181
|
+
): void;
|
|
877
1182
|
}
|
|
878
1183
|
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
// Own fields of DMAP-3.0.DMAP.MdnsPublisher
|
|
884
|
-
|
|
885
|
-
object: GObject.Object
|
|
886
|
-
priv: MdnsPublisherPrivate
|
|
887
|
-
|
|
888
|
-
// Owm methods of DMAP-3.0.DMAP.MdnsPublisher
|
|
889
|
-
|
|
890
|
-
publish(name: string, port: number, type_of_service: string, password_required: boolean, txt_records: string | null): boolean
|
|
891
|
-
rename_at_port(port: number, name: string): boolean
|
|
892
|
-
withdraw(port: number): boolean
|
|
893
|
-
|
|
894
|
-
// Own virtual methods of DMAP-3.0.DMAP.MdnsPublisher
|
|
895
|
-
|
|
896
|
-
vfunc_name_collision(name: string): void
|
|
897
|
-
vfunc_published(name: string): void
|
|
898
|
-
|
|
899
|
-
// Own signals of DMAP-3.0.DMAP.MdnsPublisher
|
|
900
|
-
|
|
901
|
-
connect(sigName: "name-collision", callback: MdnsPublisher.NameCollisionSignalCallback): number
|
|
902
|
-
connect_after(sigName: "name-collision", callback: MdnsPublisher.NameCollisionSignalCallback): number
|
|
903
|
-
emit(sigName: "name-collision", object: string | null, ...args: any[]): void
|
|
904
|
-
connect(sigName: "published", callback: MdnsPublisher.PublishedSignalCallback): number
|
|
905
|
-
connect_after(sigName: "published", callback: MdnsPublisher.PublishedSignalCallback): number
|
|
906
|
-
emit(sigName: "published", object: string | null, ...args: any[]): void
|
|
1184
|
+
type ConnectionClass = typeof Connection;
|
|
1185
|
+
abstract class ConnectionPrivate {
|
|
1186
|
+
static $gtype: GObject.GType<ConnectionPrivate>;
|
|
907
1187
|
|
|
908
|
-
|
|
1188
|
+
// Constructors of DMAP.ConnectionPrivate
|
|
909
1189
|
|
|
910
|
-
|
|
911
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
912
|
-
emit(sigName: string, ...args: any[]): void
|
|
913
|
-
disconnect(id: number): void
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
class MdnsPublisher extends GObject.Object {
|
|
917
|
-
|
|
918
|
-
// Own properties of DMAP-3.0.DMAP.MdnsPublisher
|
|
919
|
-
|
|
920
|
-
static name: string
|
|
921
|
-
static $gtype: GObject.GType<MdnsPublisher>
|
|
922
|
-
|
|
923
|
-
// Constructors of DMAP-3.0.DMAP.MdnsPublisher
|
|
924
|
-
|
|
925
|
-
constructor(config?: MdnsPublisher.ConstructorProperties)
|
|
926
|
-
constructor()
|
|
927
|
-
static new(): MdnsPublisher
|
|
928
|
-
_init(config?: MdnsPublisher.ConstructorProperties): void
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
module Share {
|
|
932
|
-
|
|
933
|
-
// Constructor properties interface
|
|
934
|
-
|
|
935
|
-
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
936
|
-
|
|
937
|
-
// Own constructor properties of DMAP-3.0.DMAP.Share
|
|
938
|
-
|
|
939
|
-
authMethod?: number | null
|
|
940
|
-
containerDb?: any | null
|
|
941
|
-
db?: any | null
|
|
942
|
-
name?: string | null
|
|
943
|
-
password?: string | null
|
|
944
|
-
revisionNumber?: number | null
|
|
945
|
-
transcodeMimetype?: string | null
|
|
946
|
-
txtRecords?: string[] | null
|
|
1190
|
+
_init(...args: any[]): void;
|
|
947
1191
|
}
|
|
948
1192
|
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
// Own properties of DMAP-3.0.DMAP.Share
|
|
954
|
-
|
|
955
|
-
authMethod: number
|
|
956
|
-
readonly containerDb: any
|
|
957
|
-
readonly db: any
|
|
958
|
-
name: string | null
|
|
959
|
-
password: string | null
|
|
960
|
-
revisionNumber: number
|
|
961
|
-
readonly serverIpv4: Soup.Server
|
|
962
|
-
readonly serverIpv6: Soup.Server
|
|
963
|
-
readonly transcodeMimetype: string | null
|
|
964
|
-
txtRecords: string[]
|
|
965
|
-
|
|
966
|
-
// Own fields of DMAP-3.0.DMAP.Share
|
|
967
|
-
|
|
968
|
-
parent: GObject.Object
|
|
969
|
-
priv: SharePrivate
|
|
970
|
-
|
|
971
|
-
// Own virtual methods of DMAP-3.0.DMAP.Share
|
|
972
|
-
|
|
973
|
-
vfunc_content_codes(server: Soup.Server, message: Soup.Message, path: string, query: GLib.HashTable, ctx: Soup.ClientContext): void
|
|
974
|
-
vfunc_ctrl_int(server: Soup.Server, message: Soup.Message, path: string, query: GLib.HashTable, ctx: Soup.ClientContext): void
|
|
975
|
-
vfunc_databases(server: Soup.Server, message: Soup.Message, path: string, query: GLib.HashTable, context: Soup.ClientContext): void
|
|
976
|
-
vfunc_databases_browse_xxx(server: Soup.Server, msg: Soup.Message, path: string, query: GLib.HashTable, context: Soup.ClientContext): void
|
|
977
|
-
vfunc_databases_items_xxx(server: Soup.Server, msg: Soup.Message, path: string, query: GLib.HashTable, context: Soup.ClientContext): void
|
|
978
|
-
vfunc_get_desired_port(): number
|
|
979
|
-
vfunc_get_type_of_service(): string
|
|
980
|
-
vfunc_login(server: Soup.Server, message: Soup.Message, path: string, query: GLib.HashTable, ctx: Soup.ClientContext): void
|
|
981
|
-
vfunc_logout(server: Soup.Server, message: Soup.Message, path: string, query: GLib.HashTable, ctx: Soup.ClientContext): void
|
|
982
|
-
vfunc_message_add_standard_headers(msg: Soup.Message): void
|
|
983
|
-
vfunc_name_collision(publisher: MdnsPublisher, name: string): void
|
|
984
|
-
vfunc_published(publisher: MdnsPublisher, name: string): void
|
|
985
|
-
vfunc_server_info(server: Soup.Server, message: Soup.Message, path: string, query: GLib.HashTable, ctx: Soup.ClientContext): void
|
|
986
|
-
vfunc_update(server: Soup.Server, message: Soup.Message, path: string, query: GLib.HashTable, ctx: Soup.ClientContext): void
|
|
987
|
-
|
|
988
|
-
// Class property signals of DMAP-3.0.DMAP.Share
|
|
989
|
-
|
|
990
|
-
connect(sigName: "notify::auth-method", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
991
|
-
connect_after(sigName: "notify::auth-method", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
992
|
-
emit(sigName: "notify::auth-method", ...args: any[]): void
|
|
993
|
-
connect(sigName: "notify::container-db", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
994
|
-
connect_after(sigName: "notify::container-db", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
995
|
-
emit(sigName: "notify::container-db", ...args: any[]): void
|
|
996
|
-
connect(sigName: "notify::db", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
997
|
-
connect_after(sigName: "notify::db", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
998
|
-
emit(sigName: "notify::db", ...args: any[]): void
|
|
999
|
-
connect(sigName: "notify::name", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
1000
|
-
connect_after(sigName: "notify::name", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
1001
|
-
emit(sigName: "notify::name", ...args: any[]): void
|
|
1002
|
-
connect(sigName: "notify::password", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
1003
|
-
connect_after(sigName: "notify::password", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
1004
|
-
emit(sigName: "notify::password", ...args: any[]): void
|
|
1005
|
-
connect(sigName: "notify::revision-number", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
1006
|
-
connect_after(sigName: "notify::revision-number", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
1007
|
-
emit(sigName: "notify::revision-number", ...args: any[]): void
|
|
1008
|
-
connect(sigName: "notify::server-ipv4", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
1009
|
-
connect_after(sigName: "notify::server-ipv4", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
1010
|
-
emit(sigName: "notify::server-ipv4", ...args: any[]): void
|
|
1011
|
-
connect(sigName: "notify::server-ipv6", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
1012
|
-
connect_after(sigName: "notify::server-ipv6", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
1013
|
-
emit(sigName: "notify::server-ipv6", ...args: any[]): void
|
|
1014
|
-
connect(sigName: "notify::transcode-mimetype", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
1015
|
-
connect_after(sigName: "notify::transcode-mimetype", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
1016
|
-
emit(sigName: "notify::transcode-mimetype", ...args: any[]): void
|
|
1017
|
-
connect(sigName: "notify::txt-records", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
1018
|
-
connect_after(sigName: "notify::txt-records", callback: (($obj: Share, pspec: GObject.ParamSpec) => void)): number
|
|
1019
|
-
emit(sigName: "notify::txt-records", ...args: any[]): void
|
|
1020
|
-
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1021
|
-
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1022
|
-
emit(sigName: string, ...args: any[]): void
|
|
1023
|
-
disconnect(id: number): void
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
class Share extends GObject.Object {
|
|
1027
|
-
|
|
1028
|
-
// Own properties of DMAP-3.0.DMAP.Share
|
|
1029
|
-
|
|
1030
|
-
static name: string
|
|
1031
|
-
static $gtype: GObject.GType<Share>
|
|
1032
|
-
|
|
1033
|
-
// Constructors of DMAP-3.0.DMAP.Share
|
|
1034
|
-
|
|
1035
|
-
constructor(config?: Share.ConstructorProperties)
|
|
1036
|
-
_init(config?: Share.ConstructorProperties): void
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
interface ConnectionClass {
|
|
1040
|
-
|
|
1041
|
-
// Own fields of DMAP-3.0.DMAP.ConnectionClass
|
|
1042
|
-
|
|
1043
|
-
parent: GObject.ObjectClass
|
|
1044
|
-
get_protocol_version_cc: (connection: Connection) => ContentCode
|
|
1045
|
-
get_query_metadata: (connection: Connection) => string | null
|
|
1046
|
-
connected: (connection: Connection) => void
|
|
1047
|
-
disconnected: (connection: Connection) => void
|
|
1048
|
-
authenticate: (connection: Connection, name: string) => string | null
|
|
1049
|
-
connecting: (connection: Connection, state: ConnectionState, progress: number) => void
|
|
1050
|
-
operation_done: (connection: Connection) => void
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
abstract class ConnectionClass {
|
|
1054
|
-
|
|
1055
|
-
// Own properties of DMAP-3.0.DMAP.ConnectionClass
|
|
1056
|
-
|
|
1057
|
-
static name: string
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
|
-
interface ConnectionPrivate {
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
class ConnectionPrivate {
|
|
1064
|
-
|
|
1065
|
-
// Own properties of DMAP-3.0.DMAP.ConnectionPrivate
|
|
1066
|
-
|
|
1067
|
-
static name: string
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
interface ContainerDbIface {
|
|
1071
|
-
|
|
1072
|
-
// Own fields of DMAP-3.0.DMAP.ContainerDbIface
|
|
1073
|
-
|
|
1074
|
-
parent: GObject.TypeInterface
|
|
1075
|
-
add: (db: ContainerDb, record: ContainerRecord) => void
|
|
1076
|
-
count: (db: ContainerDb) => number
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
abstract class ContainerDbIface {
|
|
1080
|
-
|
|
1081
|
-
// Own properties of DMAP-3.0.DMAP.ContainerDbIface
|
|
1082
|
-
|
|
1083
|
-
static name: string
|
|
1084
|
-
}
|
|
1193
|
+
type ContainerDbIface = typeof ContainerDb;
|
|
1194
|
+
type ContainerRecordIface = typeof ContainerRecord;
|
|
1195
|
+
class ContentCodeDefinition {
|
|
1196
|
+
static $gtype: GObject.GType<ContentCodeDefinition>;
|
|
1085
1197
|
|
|
1086
|
-
|
|
1198
|
+
// Own fields of DMAP.ContentCodeDefinition
|
|
1087
1199
|
|
|
1088
|
-
|
|
1200
|
+
code: ContentCode;
|
|
1201
|
+
int_code: number;
|
|
1202
|
+
name: string;
|
|
1203
|
+
string: string;
|
|
1204
|
+
type: Type;
|
|
1089
1205
|
|
|
1090
|
-
|
|
1091
|
-
get_id: (record: ContainerRecord) => number
|
|
1092
|
-
add_entry: (container_record: ContainerRecord, record: Record, id: number) => void
|
|
1093
|
-
get_entry_count: (record: ContainerRecord) => number
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
abstract class ContainerRecordIface {
|
|
1097
|
-
|
|
1098
|
-
// Own properties of DMAP-3.0.DMAP.ContainerRecordIface
|
|
1099
|
-
|
|
1100
|
-
static name: string
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
interface ContentCodeDefinition {
|
|
1104
|
-
|
|
1105
|
-
// Own fields of DMAP-3.0.DMAP.ContentCodeDefinition
|
|
1106
|
-
|
|
1107
|
-
code: ContentCode
|
|
1108
|
-
int_code: number
|
|
1109
|
-
name: string
|
|
1110
|
-
string: string
|
|
1111
|
-
type: Type
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
class ContentCodeDefinition {
|
|
1115
|
-
|
|
1116
|
-
// Own properties of DMAP-3.0.DMAP.ContentCodeDefinition
|
|
1117
|
-
|
|
1118
|
-
static name: string
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
interface DbFilterDefinition {
|
|
1122
|
-
|
|
1123
|
-
// Own fields of DMAP-3.0.DMAP.DbFilterDefinition
|
|
1124
|
-
|
|
1125
|
-
key: string | null
|
|
1126
|
-
value: string | null
|
|
1127
|
-
negate: boolean
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
class DbFilterDefinition {
|
|
1131
|
-
|
|
1132
|
-
// Own properties of DMAP-3.0.DMAP.DbFilterDefinition
|
|
1133
|
-
|
|
1134
|
-
static name: string
|
|
1135
|
-
}
|
|
1206
|
+
// Constructors of DMAP.ContentCodeDefinition
|
|
1136
1207
|
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
// Own fields of DMAP-3.0.DMAP.DbIface
|
|
1140
|
-
|
|
1141
|
-
parent: GObject.TypeInterface
|
|
1142
|
-
add: (db: Db, record: Record) => number
|
|
1143
|
-
add_with_id: (db: Db, record: Record, id: number) => number
|
|
1144
|
-
add_path: (db: Db, path: string) => number
|
|
1145
|
-
lookup_id_by_location: (db: Db, location: string) => number
|
|
1146
|
-
count: (db: Db) => number
|
|
1147
|
-
}
|
|
1148
|
-
|
|
1149
|
-
abstract class DbIface {
|
|
1150
|
-
|
|
1151
|
-
// Own properties of DMAP-3.0.DMAP.DbIface
|
|
1152
|
-
|
|
1153
|
-
static name: string
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
interface GstInputStreamClass {
|
|
1157
|
-
|
|
1158
|
-
// Own fields of DMAP-3.0.DMAP.GstInputStreamClass
|
|
1159
|
-
|
|
1160
|
-
parent: Gio.InputStreamClass
|
|
1161
|
-
kill_pipeline: (arg0: GstInputStream) => void
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
abstract class GstInputStreamClass {
|
|
1165
|
-
|
|
1166
|
-
// Own properties of DMAP-3.0.DMAP.GstInputStreamClass
|
|
1167
|
-
|
|
1168
|
-
static name: string
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
interface GstInputStreamPrivate {
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
class GstInputStreamPrivate {
|
|
1175
|
-
|
|
1176
|
-
// Own properties of DMAP-3.0.DMAP.GstInputStreamPrivate
|
|
1177
|
-
|
|
1178
|
-
static name: string
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
interface HashContext {
|
|
1182
|
-
|
|
1183
|
-
// Own fields of DMAP-3.0.DMAP.HashContext
|
|
1184
|
-
|
|
1185
|
-
buf: number[]
|
|
1186
|
-
bits: number[]
|
|
1187
|
-
in_: number[]
|
|
1188
|
-
version: number
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
class HashContext {
|
|
1208
|
+
_init(...args: any[]): void;
|
|
1209
|
+
}
|
|
1192
1210
|
|
|
1193
|
-
|
|
1211
|
+
class DbFilterDefinition {
|
|
1212
|
+
static $gtype: GObject.GType<DbFilterDefinition>;
|
|
1194
1213
|
|
|
1195
|
-
|
|
1196
|
-
}
|
|
1214
|
+
// Own fields of DMAP.DbFilterDefinition
|
|
1197
1215
|
|
|
1198
|
-
|
|
1216
|
+
key: string;
|
|
1217
|
+
value: string;
|
|
1218
|
+
negate: boolean;
|
|
1199
1219
|
|
|
1200
|
-
|
|
1220
|
+
// Constructors of DMAP.DbFilterDefinition
|
|
1201
1221
|
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1222
|
+
constructor(
|
|
1223
|
+
properties?: Partial<{
|
|
1224
|
+
key: string;
|
|
1225
|
+
value: string;
|
|
1226
|
+
negate: boolean;
|
|
1227
|
+
}>,
|
|
1228
|
+
);
|
|
1229
|
+
_init(...args: any[]): void;
|
|
1230
|
+
}
|
|
1206
1231
|
|
|
1207
|
-
|
|
1232
|
+
type DbIface = typeof Db;
|
|
1233
|
+
type GstInputStreamClass = typeof GstInputStream;
|
|
1234
|
+
abstract class GstInputStreamPrivate {
|
|
1235
|
+
static $gtype: GObject.GType<GstInputStreamPrivate>;
|
|
1208
1236
|
|
|
1209
|
-
|
|
1237
|
+
// Constructors of DMAP.GstInputStreamPrivate
|
|
1210
1238
|
|
|
1211
|
-
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
interface MdnsBrowserPrivate {
|
|
1215
|
-
}
|
|
1239
|
+
_init(...args: any[]): void;
|
|
1240
|
+
}
|
|
1216
1241
|
|
|
1217
|
-
class
|
|
1242
|
+
class HashContext {
|
|
1243
|
+
static $gtype: GObject.GType<HashContext>;
|
|
1218
1244
|
|
|
1219
|
-
|
|
1245
|
+
// Own fields of DMAP.HashContext
|
|
1220
1246
|
|
|
1221
|
-
|
|
1222
|
-
|
|
1247
|
+
buf: number[];
|
|
1248
|
+
bits: number[];
|
|
1249
|
+
'in': number[];
|
|
1250
|
+
version: number;
|
|
1223
1251
|
|
|
1224
|
-
|
|
1252
|
+
// Constructors of DMAP.HashContext
|
|
1225
1253
|
|
|
1226
|
-
|
|
1254
|
+
constructor(
|
|
1255
|
+
properties?: Partial<{
|
|
1256
|
+
buf: number[];
|
|
1257
|
+
bits: number[];
|
|
1258
|
+
in: number[];
|
|
1259
|
+
version: number;
|
|
1260
|
+
}>,
|
|
1261
|
+
);
|
|
1262
|
+
_init(...args: any[]): void;
|
|
1263
|
+
}
|
|
1227
1264
|
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
port: number
|
|
1232
|
-
password_protected: boolean
|
|
1233
|
-
pair: string | null
|
|
1234
|
-
transport_protocol: MdnsBrowserTransportProtocol
|
|
1235
|
-
}
|
|
1265
|
+
type MdnsBrowserClass = typeof MdnsBrowser;
|
|
1266
|
+
abstract class MdnsBrowserPrivate {
|
|
1267
|
+
static $gtype: GObject.GType<MdnsBrowserPrivate>;
|
|
1236
1268
|
|
|
1237
|
-
|
|
1269
|
+
// Constructors of DMAP.MdnsBrowserPrivate
|
|
1238
1270
|
|
|
1239
|
-
|
|
1271
|
+
_init(...args: any[]): void;
|
|
1272
|
+
}
|
|
1240
1273
|
|
|
1241
|
-
|
|
1242
|
-
|
|
1274
|
+
class MdnsBrowserService {
|
|
1275
|
+
static $gtype: GObject.GType<MdnsBrowserService>;
|
|
1243
1276
|
|
|
1244
|
-
|
|
1277
|
+
// Own fields of DMAP.MdnsBrowserService
|
|
1245
1278
|
|
|
1246
|
-
|
|
1279
|
+
service_name: string;
|
|
1280
|
+
name: string;
|
|
1281
|
+
host: string;
|
|
1282
|
+
port: number;
|
|
1283
|
+
password_protected: boolean;
|
|
1284
|
+
pair: string;
|
|
1285
|
+
transport_protocol: MdnsBrowserTransportProtocol;
|
|
1247
1286
|
|
|
1248
|
-
|
|
1249
|
-
published: (publisher: MdnsPublisher, name: string) => void
|
|
1250
|
-
name_collision: (publisher: MdnsPublisher, name: string) => void
|
|
1251
|
-
}
|
|
1287
|
+
// Constructors of DMAP.MdnsBrowserService
|
|
1252
1288
|
|
|
1253
|
-
|
|
1289
|
+
_init(...args: any[]): void;
|
|
1290
|
+
}
|
|
1254
1291
|
|
|
1255
|
-
|
|
1292
|
+
type MdnsPublisherClass = typeof MdnsPublisher;
|
|
1293
|
+
abstract class MdnsPublisherPrivate {
|
|
1294
|
+
static $gtype: GObject.GType<MdnsPublisherPrivate>;
|
|
1256
1295
|
|
|
1257
|
-
|
|
1258
|
-
}
|
|
1296
|
+
// Constructors of DMAP.MdnsPublisherPrivate
|
|
1259
1297
|
|
|
1260
|
-
|
|
1261
|
-
}
|
|
1298
|
+
_init(...args: any[]): void;
|
|
1299
|
+
}
|
|
1262
1300
|
|
|
1263
|
-
class
|
|
1301
|
+
class MetaDataMap {
|
|
1302
|
+
static $gtype: GObject.GType<MetaDataMap>;
|
|
1264
1303
|
|
|
1265
|
-
|
|
1304
|
+
// Own fields of DMAP.MetaDataMap
|
|
1266
1305
|
|
|
1267
|
-
|
|
1268
|
-
|
|
1306
|
+
tag: string;
|
|
1307
|
+
md: number;
|
|
1269
1308
|
|
|
1270
|
-
|
|
1309
|
+
// Constructors of DMAP.MetaDataMap
|
|
1271
1310
|
|
|
1272
|
-
|
|
1311
|
+
constructor(
|
|
1312
|
+
properties?: Partial<{
|
|
1313
|
+
tag: string;
|
|
1314
|
+
md: number;
|
|
1315
|
+
}>,
|
|
1316
|
+
);
|
|
1317
|
+
_init(...args: any[]): void;
|
|
1318
|
+
}
|
|
1273
1319
|
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
}
|
|
1320
|
+
class Playlist {
|
|
1321
|
+
static $gtype: GObject.GType<Playlist>;
|
|
1277
1322
|
|
|
1278
|
-
|
|
1323
|
+
// Own fields of DMAP.Playlist
|
|
1279
1324
|
|
|
1280
|
-
|
|
1325
|
+
name: string;
|
|
1326
|
+
id: number;
|
|
1327
|
+
uris: any[];
|
|
1281
1328
|
|
|
1282
|
-
|
|
1283
|
-
}
|
|
1329
|
+
// Constructors of DMAP.Playlist
|
|
1284
1330
|
|
|
1285
|
-
|
|
1331
|
+
constructor(
|
|
1332
|
+
properties?: Partial<{
|
|
1333
|
+
name: string;
|
|
1334
|
+
id: number;
|
|
1335
|
+
}>,
|
|
1336
|
+
);
|
|
1337
|
+
_init(...args: any[]): void;
|
|
1338
|
+
}
|
|
1286
1339
|
|
|
1287
|
-
|
|
1340
|
+
type RecordFactoryIface = typeof RecordFactory;
|
|
1341
|
+
type RecordIface = typeof Record;
|
|
1342
|
+
type ShareClass = typeof Share;
|
|
1343
|
+
abstract class SharePrivate {
|
|
1344
|
+
static $gtype: GObject.GType<SharePrivate>;
|
|
1288
1345
|
|
|
1289
|
-
|
|
1290
|
-
id: number
|
|
1291
|
-
uris: any[]
|
|
1292
|
-
}
|
|
1346
|
+
// Constructors of DMAP.SharePrivate
|
|
1293
1347
|
|
|
1294
|
-
|
|
1348
|
+
_init(...args: any[]): void;
|
|
1349
|
+
}
|
|
1295
1350
|
|
|
1296
|
-
|
|
1351
|
+
class StructureItem {
|
|
1352
|
+
static $gtype: GObject.GType<StructureItem>;
|
|
1297
1353
|
|
|
1298
|
-
|
|
1299
|
-
}
|
|
1354
|
+
// Own fields of DMAP.StructureItem
|
|
1300
1355
|
|
|
1301
|
-
|
|
1356
|
+
content_code: ContentCode;
|
|
1357
|
+
size: number;
|
|
1302
1358
|
|
|
1303
|
-
|
|
1359
|
+
// Constructors of DMAP.StructureItem
|
|
1304
1360
|
|
|
1305
|
-
|
|
1306
|
-
}
|
|
1361
|
+
_init(...args: any[]): void;
|
|
1362
|
+
}
|
|
1307
1363
|
|
|
1308
|
-
|
|
1364
|
+
module ContainerDb {
|
|
1365
|
+
// Constructor properties interface
|
|
1309
1366
|
|
|
1310
|
-
|
|
1367
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
1368
|
+
}
|
|
1311
1369
|
|
|
1312
|
-
|
|
1313
|
-
|
|
1370
|
+
export interface ContainerDbNamespace {
|
|
1371
|
+
$gtype: GObject.GType<ContainerDb>;
|
|
1372
|
+
prototype: ContainerDb;
|
|
1373
|
+
}
|
|
1374
|
+
interface ContainerDb extends GObject.Object {
|
|
1375
|
+
// Own methods of DMAP.ContainerDb
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
* Add a record to the database.
|
|
1379
|
+
* @param record A record.
|
|
1380
|
+
*/
|
|
1381
|
+
add(record: ContainerRecord): void;
|
|
1382
|
+
count(): number;
|
|
1383
|
+
|
|
1384
|
+
// Own virtual methods of DMAP.ContainerDb
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* Add a record to the database.
|
|
1388
|
+
* @param record A record.
|
|
1389
|
+
*/
|
|
1390
|
+
vfunc_add(record: ContainerRecord): void;
|
|
1391
|
+
vfunc_count(): number;
|
|
1392
|
+
}
|
|
1314
1393
|
|
|
1315
|
-
|
|
1394
|
+
export const ContainerDb: ContainerDbNamespace;
|
|
1316
1395
|
|
|
1317
|
-
|
|
1396
|
+
module ContainerRecord {
|
|
1397
|
+
// Constructor properties interface
|
|
1318
1398
|
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
}
|
|
1399
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1400
|
+
name: string;
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1322
1403
|
|
|
1323
|
-
|
|
1404
|
+
export interface ContainerRecordNamespace {
|
|
1405
|
+
$gtype: GObject.GType<ContainerRecord>;
|
|
1406
|
+
prototype: ContainerRecord;
|
|
1407
|
+
}
|
|
1408
|
+
interface ContainerRecord extends GObject.Object {
|
|
1409
|
+
// Own properties of DMAP.ContainerRecord
|
|
1410
|
+
|
|
1411
|
+
get name(): string;
|
|
1412
|
+
set name(val: string);
|
|
1413
|
+
|
|
1414
|
+
// Own methods of DMAP.ContainerRecord
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* Add a record to the database. It is assumed that the record is placed
|
|
1418
|
+
* directly into the database (not copied) and not freed.
|
|
1419
|
+
* @param record A DMAPRecord.
|
|
1420
|
+
* @param id The record's ID.
|
|
1421
|
+
*/
|
|
1422
|
+
add_entry(record: Record, id: number): void;
|
|
1423
|
+
get_entry_count(): number;
|
|
1424
|
+
get_id(): number;
|
|
1425
|
+
|
|
1426
|
+
// Own virtual methods of DMAP.ContainerRecord
|
|
1427
|
+
|
|
1428
|
+
/**
|
|
1429
|
+
* Add a record to the database. It is assumed that the record is placed
|
|
1430
|
+
* directly into the database (not copied) and not freed.
|
|
1431
|
+
* @param record A DMAPRecord.
|
|
1432
|
+
* @param id The record's ID.
|
|
1433
|
+
*/
|
|
1434
|
+
vfunc_add_entry(record: Record, id: number): void;
|
|
1435
|
+
vfunc_get_entry_count(): number;
|
|
1436
|
+
vfunc_get_id(): number;
|
|
1437
|
+
}
|
|
1324
1438
|
|
|
1325
|
-
|
|
1439
|
+
export const ContainerRecord: ContainerRecordNamespace;
|
|
1326
1440
|
|
|
1327
|
-
|
|
1328
|
-
|
|
1441
|
+
module Db {
|
|
1442
|
+
// Constructor properties interface
|
|
1329
1443
|
|
|
1330
|
-
interface
|
|
1331
|
-
|
|
1332
|
-
// Own fields of DMAP-3.0.DMAP.ShareClass
|
|
1333
|
-
|
|
1334
|
-
parent: GObject.ObjectClass
|
|
1335
|
-
get_desired_port: (share: Share) => number
|
|
1336
|
-
get_type_of_service: (share: Share) => string
|
|
1337
|
-
message_add_standard_headers: (share: Share, msg: Soup.Message) => void
|
|
1338
|
-
add_entry_to_mlcl: (id: any, record: Record, mb: any) => void
|
|
1339
|
-
databases_browse_xxx: (share: Share, server: Soup.Server, msg: Soup.Message, path: string, query: GLib.HashTable, context: Soup.ClientContext) => void
|
|
1340
|
-
databases_items_xxx: (share: Share, server: Soup.Server, msg: Soup.Message, path: string, query: GLib.HashTable, context: Soup.ClientContext) => void
|
|
1341
|
-
server_info: (share: Share, server: Soup.Server, message: Soup.Message, path: string, query: GLib.HashTable, ctx: Soup.ClientContext) => void
|
|
1342
|
-
content_codes: (share: Share, server: Soup.Server, message: Soup.Message, path: string, query: GLib.HashTable, ctx: Soup.ClientContext) => void
|
|
1343
|
-
login: (share: Share, server: Soup.Server, message: Soup.Message, path: string, query: GLib.HashTable, ctx: Soup.ClientContext) => void
|
|
1344
|
-
logout: (share: Share, server: Soup.Server, message: Soup.Message, path: string, query: GLib.HashTable, ctx: Soup.ClientContext) => void
|
|
1345
|
-
update: (share: Share, server: Soup.Server, message: Soup.Message, path: string, query: GLib.HashTable, ctx: Soup.ClientContext) => void
|
|
1346
|
-
ctrl_int: (share: Share, server: Soup.Server, message: Soup.Message, path: string, query: GLib.HashTable, ctx: Soup.ClientContext) => void
|
|
1347
|
-
published: (share: Share, publisher: MdnsPublisher, name: string) => void
|
|
1348
|
-
name_collision: (share: Share, publisher: MdnsPublisher, name: string) => void
|
|
1349
|
-
databases: (share: Share, server: Soup.Server, message: Soup.Message, path: string, query: GLib.HashTable, context: Soup.ClientContext) => void
|
|
1350
|
-
}
|
|
1444
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
1445
|
+
}
|
|
1351
1446
|
|
|
1352
|
-
|
|
1447
|
+
export interface DbNamespace {
|
|
1448
|
+
$gtype: GObject.GType<Db>;
|
|
1449
|
+
prototype: Db;
|
|
1450
|
+
}
|
|
1451
|
+
interface Db extends GObject.Object {
|
|
1452
|
+
// Own methods of DMAP.Db
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* Add a record to the database.
|
|
1456
|
+
* @param record A database record.
|
|
1457
|
+
* @returns The ID for the newly added record. A reference to the record will be retained by the database (if required; an adapter-type implementation may not want to retain a reference as the record data may be placed elsewhere). In all cases, the record should be unrefed by the calling code.
|
|
1458
|
+
*/
|
|
1459
|
+
add(record: Record): number;
|
|
1460
|
+
/**
|
|
1461
|
+
* Create a record and add it to the database.
|
|
1462
|
+
* @param path A path to an appropriate media file.
|
|
1463
|
+
* @returns The ID for the newly added record. See also the notes for dmap_db_add regarding reference counting.
|
|
1464
|
+
*/
|
|
1465
|
+
add_path(path: string): number;
|
|
1466
|
+
/**
|
|
1467
|
+
* Add a record to the database and assign it the given ID.
|
|
1468
|
+
* @param record A database record.
|
|
1469
|
+
* @param id A database record ID.
|
|
1470
|
+
* @returns The ID for the newly added record. See also the notes for dmap_db_add regarding reference counting.
|
|
1471
|
+
*/
|
|
1472
|
+
add_with_id(record: Record, id: number): number;
|
|
1473
|
+
count(): number;
|
|
1474
|
+
lookup_id_by_location(location: string): number;
|
|
1475
|
+
|
|
1476
|
+
// Own virtual methods of DMAP.Db
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* Add a record to the database.
|
|
1480
|
+
* @param record A database record.
|
|
1481
|
+
*/
|
|
1482
|
+
vfunc_add(record: Record): number;
|
|
1483
|
+
/**
|
|
1484
|
+
* Create a record and add it to the database.
|
|
1485
|
+
* @param path A path to an appropriate media file.
|
|
1486
|
+
*/
|
|
1487
|
+
vfunc_add_path(path: string): number;
|
|
1488
|
+
/**
|
|
1489
|
+
* Add a record to the database and assign it the given ID.
|
|
1490
|
+
* @param record A database record.
|
|
1491
|
+
* @param id A database record ID.
|
|
1492
|
+
*/
|
|
1493
|
+
vfunc_add_with_id(record: Record, id: number): number;
|
|
1494
|
+
vfunc_count(): number;
|
|
1495
|
+
vfunc_lookup_id_by_location(location: string): number;
|
|
1496
|
+
}
|
|
1353
1497
|
|
|
1354
|
-
|
|
1498
|
+
export const Db: DbNamespace;
|
|
1355
1499
|
|
|
1356
|
-
|
|
1357
|
-
|
|
1500
|
+
module Record {
|
|
1501
|
+
// Constructor properties interface
|
|
1358
1502
|
|
|
1359
|
-
interface
|
|
1360
|
-
}
|
|
1503
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
1504
|
+
}
|
|
1361
1505
|
|
|
1362
|
-
|
|
1506
|
+
export interface RecordNamespace {
|
|
1507
|
+
$gtype: GObject.GType<Record>;
|
|
1508
|
+
prototype: Record;
|
|
1509
|
+
}
|
|
1510
|
+
interface Record extends GObject.Object {
|
|
1511
|
+
// Own methods of DMAP.Record
|
|
1363
1512
|
|
|
1364
|
-
|
|
1513
|
+
set_from_blob(blob: Uint8Array | string): boolean;
|
|
1365
1514
|
|
|
1366
|
-
|
|
1367
|
-
}
|
|
1515
|
+
// Own virtual methods of DMAP.Record
|
|
1368
1516
|
|
|
1369
|
-
|
|
1517
|
+
vfunc_set_from_blob(blob: Uint8Array | string): boolean;
|
|
1518
|
+
}
|
|
1370
1519
|
|
|
1371
|
-
|
|
1520
|
+
export const Record: RecordNamespace;
|
|
1372
1521
|
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
size: number
|
|
1376
|
-
}
|
|
1522
|
+
module RecordFactory {
|
|
1523
|
+
// Constructor properties interface
|
|
1377
1524
|
|
|
1378
|
-
|
|
1525
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
1526
|
+
}
|
|
1379
1527
|
|
|
1380
|
-
|
|
1528
|
+
export interface RecordFactoryNamespace {
|
|
1529
|
+
$gtype: GObject.GType<RecordFactory>;
|
|
1530
|
+
prototype: RecordFactory;
|
|
1531
|
+
}
|
|
1532
|
+
interface RecordFactory extends GObject.Object {}
|
|
1381
1533
|
|
|
1382
|
-
|
|
1383
|
-
}
|
|
1534
|
+
export const RecordFactory: RecordFactoryNamespace;
|
|
1384
1535
|
|
|
1385
|
-
/**
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
const __name__: string
|
|
1390
|
-
/**
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
const __version__: string
|
|
1536
|
+
/**
|
|
1537
|
+
* Name of the imported GIR library
|
|
1538
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
1539
|
+
*/
|
|
1540
|
+
const __name__: string;
|
|
1541
|
+
/**
|
|
1542
|
+
* Version of the imported GIR library
|
|
1543
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
1544
|
+
*/
|
|
1545
|
+
const __version__: string;
|
|
1395
1546
|
}
|
|
1396
1547
|
|
|
1397
1548
|
export default DMAP;
|
|
1398
|
-
// END
|
|
1549
|
+
// END
|