@girs/gudev-1.0 4.3.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/gudev-1.0.d.ts +21 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for GUdev-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.
|
|
8
|
+
GJS TypeScript type definitions for GUdev-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
package/gudev-1.0.d.ts
CHANGED
|
@@ -297,6 +297,7 @@ export namespace GUdev {
|
|
|
297
297
|
*
|
|
298
298
|
* https://www.freedesktop.org/software/systemd/man/udev_device_has_current_tag.html
|
|
299
299
|
* @returns A `null` terminated string array of current tags. This array is owned by `device` and should not be freed by the caller.
|
|
300
|
+
* @since 238
|
|
300
301
|
*/
|
|
301
302
|
get_current_tags(): string[];
|
|
302
303
|
|
|
@@ -340,6 +341,7 @@ export namespace GUdev {
|
|
|
340
341
|
/**
|
|
341
342
|
* Gets whether `device` has been initialized.
|
|
342
343
|
* @returns Whether `device` has been initialized.
|
|
344
|
+
* @since 165
|
|
343
345
|
*/
|
|
344
346
|
get_is_initialized(): boolean;
|
|
345
347
|
|
|
@@ -476,6 +478,7 @@ export namespace GUdev {
|
|
|
476
478
|
* Before version 238 the uncached getters would not strip trailing newlines.
|
|
477
479
|
* @param name Name of the sysfs attribute.
|
|
478
480
|
* @returns The value of the sysfs attribute or `false` if there is no such attribute.
|
|
481
|
+
* @since 234
|
|
479
482
|
*/
|
|
480
483
|
get_sysfs_attr_as_boolean_uncached(name: string): boolean;
|
|
481
484
|
|
|
@@ -497,6 +500,7 @@ export namespace GUdev {
|
|
|
497
500
|
* Before version 238 the uncached getters would not strip trailing newlines.
|
|
498
501
|
* @param name Name of the sysfs attribute.
|
|
499
502
|
* @returns The value of the sysfs attribute or 0.0 if there is no such attribute.
|
|
503
|
+
* @since 234
|
|
500
504
|
*/
|
|
501
505
|
get_sysfs_attr_as_double_uncached(name: string): number;
|
|
502
506
|
|
|
@@ -518,6 +522,7 @@ export namespace GUdev {
|
|
|
518
522
|
* Before version 238 the uncached getters would not strip trailing newlines.
|
|
519
523
|
* @param name Name of the sysfs attribute.
|
|
520
524
|
* @returns The value of the sysfs attribute or 0 if there is no such attribute.
|
|
525
|
+
* @since 234
|
|
521
526
|
*/
|
|
522
527
|
get_sysfs_attr_as_int_uncached(name: string): number;
|
|
523
528
|
|
|
@@ -546,6 +551,7 @@ export namespace GUdev {
|
|
|
546
551
|
* This function does blocking I/O, and updates the sysfs attributes cache.
|
|
547
552
|
* @param name Name of the sysfs attribute.
|
|
548
553
|
* @returns The value of the sysfs attribute split into tokens or `null` if there is no such attribute. This array is owned by `device` and should not be freed by the caller. Before version 238 the uncached getters would not strip trailing newlines.
|
|
554
|
+
* @since 234
|
|
549
555
|
*/
|
|
550
556
|
get_sysfs_attr_as_strv_uncached(name: string): string[] | null;
|
|
551
557
|
|
|
@@ -567,6 +573,7 @@ export namespace GUdev {
|
|
|
567
573
|
* Before version 238 the uncached getters would not strip trailing newlines.
|
|
568
574
|
* @param name Name of the sysfs attribute.
|
|
569
575
|
* @returns The value of the sysfs attribute or 0 if there is no such attribute.
|
|
576
|
+
* @since 234
|
|
570
577
|
*/
|
|
571
578
|
get_sysfs_attr_as_uint64_uncached(name: string): number;
|
|
572
579
|
|
|
@@ -583,6 +590,7 @@ export namespace GUdev {
|
|
|
583
590
|
* Before version 238 the uncached getters would not strip trailing newlines.
|
|
584
591
|
* @param name Name of the sysfs attribute.
|
|
585
592
|
* @returns The value of the sysfs attribute or `null` if there is no such attribute. Do not free this string, it is owned by `device`.
|
|
593
|
+
* @since 234
|
|
586
594
|
*/
|
|
587
595
|
get_sysfs_attr_uncached(name: string): string | null;
|
|
588
596
|
|
|
@@ -595,6 +603,7 @@ export namespace GUdev {
|
|
|
595
603
|
/**
|
|
596
604
|
* Gets all tags for `device`.
|
|
597
605
|
* @returns A `null` terminated string array of tags. This array is owned by `device` and should not be freed by the caller.
|
|
606
|
+
* @since 165
|
|
598
607
|
*/
|
|
599
608
|
get_tags(): string[];
|
|
600
609
|
|
|
@@ -604,6 +613,7 @@ export namespace GUdev {
|
|
|
604
613
|
* This only works for devices with properties in the udev
|
|
605
614
|
* database. All other devices return 0.
|
|
606
615
|
* @returns Number of micro-seconds since `device` was initialized or 0 if unknown.
|
|
616
|
+
* @since 165
|
|
607
617
|
*/
|
|
608
618
|
get_usec_since_initialized(): number;
|
|
609
619
|
|
|
@@ -633,6 +643,7 @@ export namespace GUdev {
|
|
|
633
643
|
* functions.
|
|
634
644
|
* @param key Name of sysfs attribute.
|
|
635
645
|
* @returns `true` only if the value for `key` exist.
|
|
646
|
+
* @since 234
|
|
636
647
|
*/
|
|
637
648
|
has_sysfs_attr_uncached(key: string): boolean;
|
|
638
649
|
}
|
|
@@ -699,6 +710,7 @@ export namespace GUdev {
|
|
|
699
710
|
/**
|
|
700
711
|
* All returned devices will be initialized.
|
|
701
712
|
* @returns The passed in `enumerator`.
|
|
713
|
+
* @since 165
|
|
702
714
|
*/
|
|
703
715
|
add_match_is_initialized(): Enumerator;
|
|
704
716
|
|
|
@@ -706,6 +718,7 @@ export namespace GUdev {
|
|
|
706
718
|
* All returned devices will match the given `name`.
|
|
707
719
|
* @param name Wildcard filter for kernel name e.g. "sda*".
|
|
708
720
|
* @returns The passed in `enumerator`.
|
|
721
|
+
* @since 165
|
|
709
722
|
*/
|
|
710
723
|
add_match_name(name: string): Enumerator;
|
|
711
724
|
|
|
@@ -714,6 +727,7 @@ export namespace GUdev {
|
|
|
714
727
|
* @param name Wildcard filter for property name.
|
|
715
728
|
* @param value Wildcard filter for property value.
|
|
716
729
|
* @returns The passed in `enumerator`.
|
|
730
|
+
* @since 165
|
|
717
731
|
*/
|
|
718
732
|
add_match_property(name: string, value: string): Enumerator;
|
|
719
733
|
|
|
@@ -721,6 +735,7 @@ export namespace GUdev {
|
|
|
721
735
|
* All returned devices will match the given `subsystem`.
|
|
722
736
|
* @param subsystem Wildcard for subsystem name e.g. 'scsi' or 'a*'.
|
|
723
737
|
* @returns The passed in `enumerator`.
|
|
738
|
+
* @since 165
|
|
724
739
|
*/
|
|
725
740
|
add_match_subsystem(subsystem: string): Enumerator;
|
|
726
741
|
|
|
@@ -729,6 +744,7 @@ export namespace GUdev {
|
|
|
729
744
|
* @param name Wildcard filter for sysfs attribute key.
|
|
730
745
|
* @param value Wildcard filter for sysfs attribute value.
|
|
731
746
|
* @returns The passed in `enumerator`.
|
|
747
|
+
* @since 165
|
|
732
748
|
*/
|
|
733
749
|
add_match_sysfs_attr(name: string, value: string): Enumerator;
|
|
734
750
|
|
|
@@ -736,6 +752,7 @@ export namespace GUdev {
|
|
|
736
752
|
* All returned devices will match the given `tag`.
|
|
737
753
|
* @param tag A udev tag e.g. "udev-acl".
|
|
738
754
|
* @returns The passed in `enumerator`.
|
|
755
|
+
* @since 165
|
|
739
756
|
*/
|
|
740
757
|
add_match_tag(tag: string): Enumerator;
|
|
741
758
|
|
|
@@ -743,6 +760,7 @@ export namespace GUdev {
|
|
|
743
760
|
* All returned devices will not match the given `subsystem`.
|
|
744
761
|
* @param subsystem Wildcard for subsystem name e.g. 'scsi' or 'a*'.
|
|
745
762
|
* @returns The passed in `enumerator`.
|
|
763
|
+
* @since 165
|
|
746
764
|
*/
|
|
747
765
|
add_nomatch_subsystem(subsystem: string): Enumerator;
|
|
748
766
|
|
|
@@ -751,6 +769,7 @@ export namespace GUdev {
|
|
|
751
769
|
* @param name Wildcard filter for sysfs attribute key.
|
|
752
770
|
* @param value Wildcard filter for sysfs attribute value.
|
|
753
771
|
* @returns The passed in `enumerator`.
|
|
772
|
+
* @since 165
|
|
754
773
|
*/
|
|
755
774
|
add_nomatch_sysfs_attr(name: string, value: string): Enumerator;
|
|
756
775
|
|
|
@@ -758,12 +777,14 @@ export namespace GUdev {
|
|
|
758
777
|
* Add a device to the list of devices, to retrieve it back sorted in dependency order.
|
|
759
778
|
* @param sysfs_path A sysfs path, e.g. "/sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda"
|
|
760
779
|
* @returns The passed in `enumerator`.
|
|
780
|
+
* @since 165
|
|
761
781
|
*/
|
|
762
782
|
add_sysfs_path(sysfs_path: string): Enumerator;
|
|
763
783
|
|
|
764
784
|
/**
|
|
765
785
|
* Executes the query in `enumerator`.
|
|
766
786
|
* @returns A list of {@link GUdev.Device} objects. The caller should free the result by using `g_object_unref()` on each element in the list and then `g_list_free()` on the list.
|
|
787
|
+
* @since 165
|
|
767
788
|
*/
|
|
768
789
|
execute(): Device[];
|
|
769
790
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gudev-1.0",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for GUdev-1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gudev-1.0.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/gjs": "^4.
|
|
35
|
-
"@girs/gobject-2.0": "^4.
|
|
36
|
-
"@girs/glib-2.0": "^4.
|
|
34
|
+
"@girs/gjs": "^4.4.0",
|
|
35
|
+
"@girs/gobject-2.0": "^4.4.0",
|
|
36
|
+
"@girs/glib-2.0": "^4.4.0" },
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"typescript": "*"
|
|
39
39
|
},
|